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

Side by Side Diff: tests/Test.h

Issue 1916093002: SkDocument/PDF: new API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-04-26 (Tuesday) 15:55:33 EDT Created 4 years, 7 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/PDFPrimitivesTest.cpp ('k') | no next file » | 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 reporter, context_info) 175 reporter, context_info)
176 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info) \ 176 #define DEF_GPUTEST_FOR_ALL_GL_CONTEXTS(name, reporter, context_info) \
177 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, reporter, con text_info) 177 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsGLContextType, reporter, con text_info)
178 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info) \ 178 #define DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(name, reporter, context_info) \
179 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, repo rter, context_info) 179 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsRenderingGLContextType, repo rter, context_info)
180 #define DEF_GPUTEST_FOR_NULLGL_CONTEXT(name, reporter, context_info) \ 180 #define DEF_GPUTEST_FOR_NULLGL_CONTEXT(name, reporter, context_info) \
181 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsNullGLContextType, reporter, context_info) 181 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsNullGLContextType, reporter, context_info)
182 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \ 182 #define DEF_GPUTEST_FOR_VULKAN_CONTEXT(name, reporter, context_info) \
183 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter, context_info) 183 DEF_GPUTEST_FOR_CONTEXTS(name, &skiatest::IsVulkanContextType, reporter, context_info)
184 184
185 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \ 185 #define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER) \
186 do { \ 186 do { \
187 SkDynamicMemoryWStream testStream; \ 187 SkDynamicMemoryWStream testStream; \
188 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \ 188 sk_sp<SkDocument> testDoc(SkDocument::MakePDF(&testStream)); \
189 if (!testDoc) { \ 189 if (!testDoc) { \
190 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ 190 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \
191 return; \ 191 return; \
192 } \ 192 } \
193 } while (false) 193 } while (false)
194 194
195 #endif 195 #endif
OLDNEW
« no previous file with comments | « tests/PDFPrimitivesTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698