OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef TestWithGC_h | |
6 #define TestWithGC_h | |
7 | |
8 #include "platform/heap/Heap.h" | |
9 #include <gtest/gtest.h> | |
10 | |
11 namespace WebCore { | |
12 | |
13 class TestWithGC : public ::testing::Test { | |
14 public: | |
15 virtual ~TestWithGC() | |
16 { | |
17 v8::Isolate::GetCurrent()->RequestGarbageCollectionForTesting(v8::Isolat e::kFullGarbageCollection); | |
18 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
| |
19 } | |
20 }; | |
21 | |
22 } // namespace WebCore | |
23 | |
24 #endif // TestWithGC_h | |
OLD | NEW |