| 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" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 |
| 15 // Forward declarations. |
| 16 class Factory; |
| 17 |
| 18 |
| 14 namespace compiler { | 19 namespace compiler { |
| 15 | 20 |
| 16 // The TARGET_TEST(Case, Name) macro works just like | 21 // The TARGET_TEST(Case, Name) macro works just like |
| 17 // TEST(Case, Name), except that the test is disabled | 22 // TEST(Case, Name), except that the test is disabled |
| 18 // if the platform is not a supported TurboFan target. | 23 // if the platform is not a supported TurboFan target. |
| 19 #if V8_TURBOFAN_TARGET | 24 #if V8_TURBOFAN_TARGET |
| 20 #define TARGET_TEST(Case, Name) TEST(Case, Name) | 25 #define TARGET_TEST(Case, Name) TEST(Case, Name) |
| 21 #else | 26 #else |
| 22 #define TARGET_TEST(Case, Name) TEST(Case, DISABLED_##Name) | 27 #define TARGET_TEST(Case, Name) TEST(Case, DISABLED_##Name) |
| 23 #endif | 28 #endif |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 81 |
| 77 template <typename T> | 82 template <typename T> |
| 78 class CompilerTestWithParam : public CompilerTest, | 83 class CompilerTestWithParam : public CompilerTest, |
| 79 public ::testing::WithParamInterface<T> {}; | 84 public ::testing::WithParamInterface<T> {}; |
| 80 | 85 |
| 81 } // namespace compiler | 86 } // namespace compiler |
| 82 } // namespace internal | 87 } // namespace internal |
| 83 } // namespace v8 | 88 } // namespace v8 |
| 84 | 89 |
| 85 #endif // V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ | 90 #endif // V8_COMPILER_UNITTESTS_COMPILER_UNITTESTS_H_ |
| OLD | NEW |