| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 the V8 project 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 V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_ | |
| 6 #define V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_ | |
| 7 | |
| 8 #include "include/v8.h" | |
| 9 #include "src/zone.h" | |
| 10 #include "testing/gtest-support.h" | |
| 11 | |
| 12 namespace v8 { | |
| 13 namespace internal { | |
| 14 | |
| 15 // Forward declarations. | |
| 16 class Factory; | |
| 17 class Heap; | |
| 18 | |
| 19 class RuntimeTest : public ::testing::Test { | |
| 20 public: | |
| 21 RuntimeTest(); | |
| 22 virtual ~RuntimeTest(); | |
| 23 | |
| 24 Factory* factory() const; | |
| 25 Heap* heap() const; | |
| 26 Isolate* isolate() const { return reinterpret_cast<Isolate*>(isolate_); } | |
| 27 Zone* zone() { return &zone_; } | |
| 28 | |
| 29 static void SetUpTestCase(); | |
| 30 static void TearDownTestCase(); | |
| 31 | |
| 32 private: | |
| 33 static v8::Isolate* isolate_; | |
| 34 v8::Isolate::Scope isolate_scope_; | |
| 35 v8::HandleScope handle_scope_; | |
| 36 Zone zone_; | |
| 37 }; | |
| 38 | |
| 39 } // namespace internal | |
| 40 } // namespace v8 | |
| 41 | |
| 42 #endif // V8_RUNTIME_UNITTESTS_RUNTIME_UNITTESTS_H_ | |
| OLD | NEW |