Fix redefined-macro warning on non-UNIX platforms.
Change-Id: Ib22d104212f5b728938a87baae43c4a0884bf6ff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/449358 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Julia Lavrova <jlavrova@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
f1977ec56f
commit
2844d3d479
@ -37,11 +37,14 @@ struct GrContextOptions;
|
||||
#define TestCanvasHeight 600
|
||||
|
||||
#if !defined(SK_BUILD_FOR_UNIX)
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { /* SkDebugf("Disabled:"#name "\n"); */ } \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#undef DEF_TEST
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
|
||||
/* SkDebugf("Disabled:"#name "\n"); */ \
|
||||
} \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#endif
|
||||
|
||||
using namespace skia::text;
|
||||
|
@ -37,11 +37,14 @@ struct GrContextOptions;
|
||||
#define TestCanvasHeight 600
|
||||
|
||||
#if !defined(SK_BUILD_FOR_UNIX)
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { /* SkDebugf("Disabled:"#name "\n"); */ } \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#undef DEF_TEST
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
|
||||
/* SkDebugf("Disabled:"#name "\n"); */ \
|
||||
} \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#endif
|
||||
|
||||
using namespace skia::text;
|
||||
|
@ -36,11 +36,14 @@ struct GrContextOptions;
|
||||
#define TestCanvasHeight 600
|
||||
|
||||
#if !defined(SK_BUILD_FOR_UNIX)
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { /* SkDebugf("Disabled:"#name "\n"); */ } \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#undef DEF_TEST
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
|
||||
/* SkDebugf("Disabled:"#name "\n"); */ \
|
||||
} \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#endif
|
||||
|
||||
using namespace skia::text;
|
||||
|
@ -37,11 +37,14 @@ struct GrContextOptions;
|
||||
#define TestCanvasHeight 600
|
||||
|
||||
#if !defined(SK_BUILD_FOR_UNIX)
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { /* SkDebugf("Disabled:"#name "\n"); */ } \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#undef DEF_TEST
|
||||
#define DEF_TEST(name, reporter) \
|
||||
static void test_##name(skiatest::Reporter* reporter, const GrContextOptions&); \
|
||||
skiatest::TestRegistry name##TestRegistry(skiatest::Test(#name, false, test_##name)); \
|
||||
void test_##name(skiatest::Reporter* reporter, const GrContextOptions&) { \
|
||||
/* SkDebugf("Disabled:"#name "\n"); */ \
|
||||
} \
|
||||
void disabled_##name(skiatest::Reporter* reporter, const GrContextOptions&)
|
||||
#endif
|
||||
using namespace skia::text;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user