2014-08-08 07:04:07 +00:00
|
|
|
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-10-01 08:34:25 +00:00
|
|
|
#ifndef V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_
|
|
|
|
#define V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_
|
2014-08-08 07:04:07 +00:00
|
|
|
|
2014-09-04 08:44:03 +00:00
|
|
|
#include "testing/gtest/include/gtest/gtest.h"
|
2014-08-08 07:04:07 +00:00
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
namespace compiler {
|
|
|
|
|
2014-08-12 09:48:52 +00:00
|
|
|
// The TARGET_TEST(Case, Name) macro works just like
|
2014-08-08 07:04:07 +00:00
|
|
|
// TEST(Case, Name), except that the test is disabled
|
|
|
|
// if the platform is not a supported TurboFan target.
|
2014-08-12 09:48:52 +00:00
|
|
|
#define TARGET_TEST(Case, Name) TEST(Case, Name)
|
2014-08-08 07:04:07 +00:00
|
|
|
|
|
|
|
|
2014-08-12 09:48:52 +00:00
|
|
|
// The TARGET_TEST_F(Case, Name) macro works just like
|
2014-08-08 07:04:07 +00:00
|
|
|
// TEST_F(Case, Name), except that the test is disabled
|
|
|
|
// if the platform is not a supported TurboFan target.
|
2014-08-12 09:48:52 +00:00
|
|
|
#define TARGET_TEST_F(Case, Name) TEST_F(Case, Name)
|
2014-08-08 07:04:07 +00:00
|
|
|
|
|
|
|
|
2014-08-19 04:54:06 +00:00
|
|
|
// The TARGET_TEST_P(Case, Name) macro works just like
|
|
|
|
// TEST_P(Case, Name), except that the test is disabled
|
|
|
|
// if the platform is not a supported TurboFan target.
|
|
|
|
#define TARGET_TEST_P(Case, Name) TEST_P(Case, Name)
|
|
|
|
|
|
|
|
|
2014-08-12 09:52:39 +00:00
|
|
|
// The TARGET_TYPED_TEST(Case, Name) macro works just like
|
|
|
|
// TYPED_TEST(Case, Name), except that the test is disabled
|
|
|
|
// if the platform is not a supported TurboFan target.
|
|
|
|
#define TARGET_TYPED_TEST(Case, Name) TYPED_TEST(Case, Name)
|
|
|
|
|
2014-08-08 07:04:07 +00:00
|
|
|
} // namespace compiler
|
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
|
|
|
|
2014-10-01 08:34:25 +00:00
|
|
|
#endif // V8_UNITTESTS_COMPILER_COMPILER_TEST_UTILS_H_
|