| 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/zone.h" | 10 #include "src/zone.h" |
| 11 #include "testing/gtest-support.h" | 11 #include "testing/gtest-support.h" |
| 12 | 12 |
| 13 namespace v8 { | 13 namespace v8 { |
| 14 | 14 |
| 15 std::ostream& operator<<(std::ostream&, ExternalArrayType); |
| 16 |
| 17 |
| 15 class TestWithIsolate : public ::testing::Test { | 18 class TestWithIsolate : public ::testing::Test { |
| 16 public: | 19 public: |
| 17 TestWithIsolate(); | 20 TestWithIsolate(); |
| 18 virtual ~TestWithIsolate(); | 21 virtual ~TestWithIsolate(); |
| 19 | 22 |
| 20 Isolate* isolate() const { return isolate_; } | 23 Isolate* isolate() const { return isolate_; } |
| 21 | 24 |
| 22 static void SetUpTestCase(); | 25 static void SetUpTestCase(); |
| 23 static void TearDownTestCase(); | 26 static void TearDownTestCase(); |
| 24 | 27 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 private: | 80 private: |
| 78 Zone zone_; | 81 Zone zone_; |
| 79 | 82 |
| 80 DISALLOW_COPY_AND_ASSIGN(TestWithZone); | 83 DISALLOW_COPY_AND_ASSIGN(TestWithZone); |
| 81 }; | 84 }; |
| 82 | 85 |
| 83 } // namespace internal | 86 } // namespace internal |
| 84 } // namespace v8 | 87 } // namespace v8 |
| 85 | 88 |
| 86 #endif // V8_UNITTESTS_TEST_UTILS_H_ | 89 #endif // V8_UNITTESTS_TEST_UTILS_H_ |
| OLD | NEW |