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