Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: test/unittests/unittests.h

Issue 438243003: Revert "Initial import of unittests using GTest/GMock." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/unittests/testcfg.py ('k') | test/unittests/unittests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « test/unittests/testcfg.py ('k') | test/unittests/unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698