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

Side by Side Diff: tests/Test.h

Issue 1855993002: Remove 'native' context unit test macro. (Closed) Base URL: https://skia.googlesource.com/skia.git@fixx1
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « tests/ReadPixelsTest.cpp ('k') | tests/TestTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef skiatest_Test_DEFINED 7 #ifndef skiatest_Test_DEFINED
8 #define skiatest_Test_DEFINED 8 #define skiatest_Test_DEFINED
9 9
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 skiatest::TestRegistry name##TestRegistry( \ 166 skiatest::TestRegistry name##TestRegistry( \
167 skiatest::Test(#name, true, test_gpu_contexts_##name)); \ 167 skiatest::Test(#name, true, test_gpu_contexts_##name)); \
168 void test_##name(skiatest::Reporter* reporter, GPUTEST_CONTEXT_ARGS(__VA_ARG S__)) 168 void test_##name(skiatest::Reporter* reporter, GPUTEST_CONTEXT_ARGS(__VA_ARG S__))
169 169
170 #define DEF_GPUTEST_FOR_ALL_CONTEXTS(name, reporter, ...) \ 170 #define DEF_GPUTEST_FOR_ALL_CONTEXTS(name, reporter, ...) \
171 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAll_GPUTestContexts, reporter, __VA_ARGS__) 171 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAll_GPUTestContexts, reporter, __VA_ARGS__)
172 #define DEF_GPUTEST_FOR_RENDERING_CONTEXTS(name, reporter, ...) \ 172 #define DEF_GPUTEST_FOR_RENDERING_CONTEXTS(name, reporter, ...) \
173 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAllRendering_GPUTestContexts, reporter, __VA_ARGS__) 173 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kAllRendering_GPUTestContexts, reporter, __VA_ARGS__)
174 #define DEF_GPUTEST_FOR_NULL_CONTEXT(name, reporter, ...) \ 174 #define DEF_GPUTEST_FOR_NULL_CONTEXT(name, reporter, ...) \
175 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kNull_GPUTestContexts, reporter , __VA_ARGS__) 175 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kNull_GPUTestContexts, reporter , __VA_ARGS__)
176 #define DEF_GPUTEST_FOR_NATIVE_CONTEXT(name, reporter, ...) \
177 DEF_GPUTEST_FOR_CONTEXTS(name, skiatest::kNative_GPUTestContexts, report er, __VA_ARGS__)
178 176
179 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \ 177 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
180 do { \ 178 do { \
181 SkDynamicMemoryWStream testStream; \ 179 SkDynamicMemoryWStream testStream; \
182 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \ 180 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \
183 if (!testDoc) { \ 181 if (!testDoc) { \
184 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ 182 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \
185 return; \ 183 return; \
186 } \ 184 } \
187 } while (false) 185 } while (false)
188 186
189 #endif 187 #endif
OLDNEW
« no previous file with comments | « tests/ReadPixelsTest.cpp ('k') | tests/TestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698