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_COMPILER_TEST_UTILS_H_ | 5 #ifndef V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_ |
6 #define V8_COMPILER_COMPILER_TEST_UTILS_H_ | 6 #define V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_ |
7 | 7 |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 namespace compiler { | 12 namespace compiler { |
13 | 13 |
14 // The TARGET_TEST(Case, Name) macro works just like | 14 // The TARGET_TEST(Case, Name) macro works just like |
15 // TEST(Case, Name), except that the test is disabled | 15 // TEST(Case, Name), except that the test is disabled |
16 // if the platform is not a supported TurboFan target. | 16 // if the platform is not a supported TurboFan target. |
(...skipping 30 matching lines...) Expand all Loading... |
47 #if V8_TURBOFAN_TARGET | 47 #if V8_TURBOFAN_TARGET |
48 #define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, Name) | 48 #define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, Name) |
49 #else | 49 #else |
50 #define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, DISABLED_##Name) | 50 #define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, DISABLED_##Name) |
51 #endif | 51 #endif |
52 | 52 |
53 } // namespace compiler | 53 } // namespace compiler |
54 } // namespace internal | 54 } // namespace internal |
55 } // namespace v8 | 55 } // namespace v8 |
56 | 56 |
57 #endif // V8_COMPILER_COMPILER_TEST_UTILS_H_ | 57 #endif // V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_ |
OLD | NEW |