| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_UNITTESTS_TEST_UTILS_H_ | 5 #ifndef V8_UNITTESTS_TEST_UTILS_H_ |
| 6 #define V8_UNITTESTS_TEST_UTILS_H_ | 6 #define V8_UNITTESTS_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include "include/v8.h" | 8 #include "include/v8.h" |
| 9 #include "src/base/macros.h" | 9 #include "src/base/macros.h" |
| 10 #include "src/base/utils/random-number-generator.h" | 10 #include "src/base/utils/random-number-generator.h" |
| 11 #include "src/zone.h" | 11 #include "src/zone.h" |
| 12 #include "testing/gtest-support.h" | 12 #include "testing/gtest-support.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 | 15 |
| 16 std::ostream& operator<<(std::ostream&, ExternalArrayType); | 16 std::ostream& operator<<(std::ostream&, ExternalArrayType); |
| 17 | 17 |
| 18 | 18 |
| 19 class TestWithIsolate : public ::testing::Test { | 19 class TestWithIsolate : public virtual ::testing::Test { |
| 20 public: | 20 public: |
| 21 TestWithIsolate(); | 21 TestWithIsolate(); |
| 22 virtual ~TestWithIsolate(); | 22 virtual ~TestWithIsolate(); |
| 23 | 23 |
| 24 Isolate* isolate() const { return isolate_; } | 24 Isolate* isolate() const { return isolate_; } |
| 25 | 25 |
| 26 static void SetUpTestCase(); | 26 static void SetUpTestCase(); |
| 27 static void TearDownTestCase(); | 27 static void TearDownTestCase(); |
| 28 | 28 |
| 29 private: | 29 private: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 Zone zone_; | 115 Zone zone_; |
| 116 | 116 |
| 117 DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone); | 117 DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone); |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 | 120 |
| 121 } // namespace internal | 121 } // namespace internal |
| 122 } // namespace v8 | 122 } // namespace v8 |
| 123 | 123 |
| 124 #endif // V8_UNITTESTS_TEST_UTILS_H_ | 124 #endif // V8_UNITTESTS_TEST_UTILS_H_ |
| OLD | NEW |