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" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 | 93 |
94 class TestWithZone : public virtual ::testing::Test { | 94 class TestWithZone : public virtual ::testing::Test { |
95 public: | 95 public: |
96 TestWithZone() {} | 96 TestWithZone() {} |
97 virtual ~TestWithZone(); | 97 virtual ~TestWithZone(); |
98 | 98 |
99 Zone* zone() { return &zone_; } | 99 Zone* zone() { return &zone_; } |
100 | 100 |
101 private: | 101 private: |
102 Zone zone_; | 102 ZoneForTesting zone_; |
103 | 103 |
104 DISALLOW_COPY_AND_ASSIGN(TestWithZone); | 104 DISALLOW_COPY_AND_ASSIGN(TestWithZone); |
105 }; | 105 }; |
106 | 106 |
107 | 107 |
108 class TestWithIsolateAndZone : public virtual TestWithIsolate { | 108 class TestWithIsolateAndZone : public virtual TestWithIsolate { |
109 public: | 109 public: |
110 TestWithIsolateAndZone() {} | 110 TestWithIsolateAndZone() {} |
111 virtual ~TestWithIsolateAndZone(); | 111 virtual ~TestWithIsolateAndZone(); |
112 | 112 |
113 Zone* zone() { return &zone_; } | 113 Zone* zone() { return &zone_; } |
114 | 114 |
115 private: | 115 private: |
116 Zone zone_; | 116 ZoneForTesting zone_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone); | 118 DISALLOW_COPY_AND_ASSIGN(TestWithIsolateAndZone); |
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 |