| 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_UNITTESTS_H_ | |
| 6 #define V8_UNITTESTS_UNITTESTS_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 namespace v8 { | |
| 31 namespace internal { | |
| 32 | |
| 33 class EngineTest : public ::testing::Test { | |
| 34 public: | |
| 35 virtual ~EngineTest() {} | |
| 36 | |
| 37 static void SetUpTestCase(); | |
| 38 static void TearDownTestCase(); | |
| 39 | |
| 40 private: | |
| 41 static v8::Platform* platform_; | |
| 42 }; | |
| 43 | |
| 44 } // namespace internal | |
| 45 } // namespace v8 | |
| 46 | |
| 47 #endif // V8_UNITTESTS_UNITTESTS_H_ | |
| OLD | NEW |