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_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ | 5 #ifndef V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ |
6 #define V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ | 6 #define V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ |
7 | 7 |
8 #include "include/v8.h" | 8 #include "include/v8.h" |
9 #include "src/zone.h" | 9 #include "src/zone.h" |
10 #include "testing/gtest-support.h" | 10 #include "testing/gtest-support.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 static void TearDownTestCase(); | 66 static void TearDownTestCase(); |
67 | 67 |
68 private: | 68 private: |
69 static v8::Isolate* isolate_; | 69 static v8::Isolate* isolate_; |
70 v8::Isolate::Scope isolate_scope_; | 70 v8::Isolate::Scope isolate_scope_; |
71 v8::HandleScope handle_scope_; | 71 v8::HandleScope handle_scope_; |
72 v8::Context::Scope context_scope_; | 72 v8::Context::Scope context_scope_; |
73 Zone zone_; | 73 Zone zone_; |
74 }; | 74 }; |
75 | 75 |
| 76 |
| 77 template <typename T> |
| 78 class CompilerTestWithParam : public CompilerTest, |
| 79 public ::testing::WithParamInterface<T> {}; |
| 80 |
76 } // namespace compiler | 81 } // namespace compiler |
77 } // namespace internal | 82 } // namespace internal |
78 } // namespace v8 | 83 } // namespace v8 |
79 | 84 |
80 #endif // V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ | 85 #endif // V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ |
OLD | NEW |