OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #ifndef skiatest_Test_DEFINED | 7 #ifndef skiatest_Test_DEFINED |
9 #define skiatest_Test_DEFINED | 8 #define skiatest_Test_DEFINED |
10 | 9 |
11 #include "SkString.h" | 10 #include "SkString.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 do { \ | 178 do { \ |
180 SkDynamicMemoryWStream testStream; \ | 179 SkDynamicMemoryWStream testStream; \ |
181 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \ | 180 SkAutoTUnref<SkDocument> testDoc(SkDocument::CreatePDF(&testStream)); \ |
182 if (!testDoc) { \ | 181 if (!testDoc) { \ |
183 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ | 182 INFOF(REPORTER, "PDF disabled; %s test skipped.", #TEST_NAME); \ |
184 return; \ | 183 return; \ |
185 } \ | 184 } \ |
186 } while (false) | 185 } while (false) |
187 | 186 |
188 #endif | 187 #endif |
OLD | NEW |