Chromium Code Reviews| 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..02fb023a702afe85fa1846634dceeec10d256025 |
| --- /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); |
| + WebCore::Heap::collectAllGarbage(); |
|
tyoshino (SeeGerritForStatus)
2014/07/18 07:14:47
WebCore:: needed?
yhirano
2014/07/18 07:44:36
Done.
|
| + } |
| +}; |
| + |
| +} // namespace WebCore |
| + |
| +#endif // TestWithGC_h |