tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

TestUtils.h (851B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef DOM_TESTING_TESTUTILS_H_
      8 #define DOM_TESTING_TESTUTILS_H_
      9 
     10 #include "mozilla/ErrorResult.h"
     11 #include "mozilla/dom/BindingDeclarations.h"
     12 #include "nsCycleCollectionParticipant.h"
     13 #include "nsWrapperCache.h"
     14 
     15 class nsIGlobalObject;
     16 
     17 namespace mozilla::dom {
     18 
     19 class TestUtils {
     20 public:
     21  static already_AddRefed<Promise> Gc(const GlobalObject& aGlobal,
     22                                      ErrorResult& aRv);
     23 
     24 private:
     25  ~TestUtils() = delete;
     26 };
     27 
     28 }  // namespace mozilla::dom
     29 
     30 #endif  // DOM_TESTING_TESTUTILS_H_