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 WebCore::Heap::collectAllGarbage(); |
| 19 } |
| 20 }; |
| 21 |
| 22 } // namespace WebCore |
| 23 |
| 24 #endif // #ifndef TestWithGC_h |
OLD | NEW |