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

Side by Side Diff: tests/skia_test.cpp

Issue 943453002: Avoid wrong memory access due to double substitution and %% (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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/PathOpsSkpClipTest.cpp ('k') | tools/render_pictures_main.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 7
8 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "OverwriteLine.h" 9 #include "OverwriteLine.h"
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 } 157 }
158 #ifdef SK_DEBUG 158 #ifdef SK_DEBUG
159 header.append(" SK_DEBUG"); 159 header.append(" SK_DEBUG");
160 #else 160 #else
161 header.append(" SK_RELEASE"); 161 header.append(" SK_RELEASE");
162 #endif 162 #endif
163 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8); 163 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8);
164 if (FLAGS_veryVerbose) { 164 if (FLAGS_veryVerbose) {
165 header.appendf("\n"); 165 header.appendf("\n");
166 } 166 }
167 SkDebugf(header.c_str()); 167 SkDebugf("%s", header.c_str());
168 } 168 }
169 169
170 170
171 // Count tests first. 171 // Count tests first.
172 int total = 0; 172 int total = 0;
173 int toRun = 0; 173 int toRun = 0;
174 174
175 for (const TestRegistry* iter = TestRegistry::Head(); iter; 175 for (const TestRegistry* iter = TestRegistry::Head(); iter;
176 iter = iter->next()) { 176 iter = iter->next()) {
177 const Test& test = iter->factory(); 177 const Test& test = iter->factory();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 SkDebugf("\n"); 228 SkDebugf("\n");
229 return (status.failCount() == 0) ? 0 : 1; 229 return (status.failCount() == 0) ? 0 : 1;
230 } 230 }
231 231
232 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 232 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
233 int main(int argc, char** argv) { 233 int main(int argc, char** argv) {
234 SkCommandLineFlags::Parse(argc, argv); 234 SkCommandLineFlags::Parse(argc, argv);
235 return test_main(); 235 return test_main();
236 } 236 }
237 #endif 237 #endif
OLDNEW
« no previous file with comments | « tests/PathOpsSkpClipTest.cpp ('k') | tools/render_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698