Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
[gecko.git] / dom / base / TestUtils.h
blob0b29f71f988843a68d8660348e4c70eafbad9afe
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/. */
7 #ifndef DOM_TESTING_TESTUTILS_H_
8 #define DOM_TESTING_TESTUTILS_H_
10 #include "mozilla/ErrorResult.h"
11 #include "mozilla/dom/BindingDeclarations.h"
12 #include "nsCycleCollectionParticipant.h"
13 #include "nsWrapperCache.h"
15 class nsIGlobalObject;
17 namespace mozilla::dom {
19 class TestUtils {
20 public:
21 static already_AddRefed<Promise> Gc(const GlobalObject& aGlobal,
22 ErrorResult& aRv);
24 private:
25 ~TestUtils() = delete;
28 } // namespace mozilla::dom
30 #endif // DOM_TESTING_TESTUTILS_H_