| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |