Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1971)

Unified Diff: Source/platform/testing/TestWithGC.h

Issue 407453002: ReadableStream initial implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/testing/TestWithGC.h
diff --git a/Source/platform/testing/TestWithGC.h b/Source/platform/testing/TestWithGC.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a36843aeb3b25e4ae9c0891599700c52b6cee90
--- /dev/null
+++ b/Source/platform/testing/TestWithGC.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef TestWithGC_h
+#define TestWithGC_h
+
+#include "platform/heap/Heap.h"
+#include <gtest/gtest.h>
+
+namespace WebCore {
+
+class TestWithGC : public ::testing::Test {
+public:
+ virtual ~TestWithGC()
+ {
+ v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolate::kFullGarbageCollection);
+ Heap::collectAllGarbage();
dcheng 2014/07/29 05:30:59 Does every test that might allocate objects on the
yhirano 2014/07/29 06:36:24 I moved these statements to Source/web/tests/RunAl
+ }
+};
+
+} // namespace WebCore
+
+#endif // TestWithGC_h
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698