OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_UNITTESTS_COMPILER_COMPILER_H_ |
| 6 #define V8_UNITTESTS_COMPILER_COMPILER_H_ |
| 7 |
| 8 #include "src/compiler/pipeline.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 |
| 11 // The COMPILER_TEST(Case, Name) macro works just like |
| 12 // TEST(Case, Name), except that the test is disabled |
| 13 // if the platform is not a supported TurboFan target. |
| 14 #if V8_TURBOFAN_TARGET |
| 15 #define COMPILER_TEST(Case, Name) TEST(Case, Name) |
| 16 #else // V8_TURBOFAN_TARGET |
| 17 #define COMPILER_TEST(Case, Name) TEST(Case, DISABLED_##Name) |
| 18 #endif // V8_TURBOFAN_TARGET |
| 19 |
| 20 |
| 21 // The COMPILER_TEST_F(Case, Name) macro works just like |
| 22 // TEST_F(Case, Name), except that the test is disabled |
| 23 // if the platform is not a supported TurboFan target. |
| 24 #if V8_TURBOFAN_TARGET |
| 25 #define COMPILER_TEST_F(Case, Name) TEST_F(Case, Name) |
| 26 #else // V8_TURBOFAN_TARGET |
| 27 #define COMPILER_TEST_F(Case, Name) TEST_F(Case, DISABLED_##Name) |
| 28 #endif // V8_TURBOFAN_TARGET |
| 29 |
| 30 #endif // V8_UNITTESTS_COMPILER_COMPILER_H_ |
OLD | NEW |