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

Side by Side Diff: dm/DM.cpp

Issue 1733113002: Unit Tests: eliminate stray SkDebugf()s. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « no previous file | tests/AAClipTest.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 2013 Google Inc. 2 * Copyright 2013 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 "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
11 #include "DMSrcSinkAndroid.h" 11 #include "DMSrcSinkAndroid.h"
12 #include "ProcStats.h" 12 #include "ProcStats.h"
13 #include "Resources.h"
13 #include "SkBBHFactory.h" 14 #include "SkBBHFactory.h"
14 #include "SkChecksum.h" 15 #include "SkChecksum.h"
15 #include "SkCodec.h" 16 #include "SkCodec.h"
16 #include "SkCommonFlags.h" 17 #include "SkCommonFlags.h"
17 #include "SkCommonFlagsConfig.h" 18 #include "SkCommonFlagsConfig.h"
18 #include "SkFontMgr.h" 19 #include "SkFontMgr.h"
19 #include "SkForceLinking.h" 20 #include "SkForceLinking.h"
20 #include "SkGraphics.h" 21 #include "SkGraphics.h"
21 #include "SkMD5.h" 22 #include "SkMD5.h"
22 #include "SkMutex.h" 23 #include "SkMutex.h"
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 1139
1139 int dm_main(); 1140 int dm_main();
1140 int dm_main() { 1141 int dm_main() {
1141 setup_crash_handler(); 1142 setup_crash_handler();
1142 1143
1143 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing. 1144 JsonWriter::DumpJson(); // It's handy for the bots to assume this is ~never missing.
1144 SkAutoGraphics ag; 1145 SkAutoGraphics ag;
1145 SkTaskGroup::Enabler enabled(FLAGS_threads); 1146 SkTaskGroup::Enabler enabled(FLAGS_threads);
1146 gCreateTypefaceDelegate = &create_from_name; 1147 gCreateTypefaceDelegate = &create_from_name;
1147 1148
1149 {
1150 SkString testResourcePath = GetResourcePath("color_wheel.png");
1151 SkFILEStream testResource(testResourcePath.c_str());
1152 if (!testResource.isValid()) {
1153 SkDebugf("Some resources are missing. Do you need to set --resource Path?\n");
1154 }
1155 }
1148 gather_gold(); 1156 gather_gold();
1149 gather_uninteresting_hashes(); 1157 gather_uninteresting_hashes();
1150 1158
1151 if (!gather_srcs()) { 1159 if (!gather_srcs()) {
1152 return 1; 1160 return 1;
1153 } 1161 }
1154 gather_sinks(); 1162 gather_sinks();
1155 gather_tests(); 1163 gather_tests();
1156 1164
1157 gPending = gSrcs.count() * gSinks.count() + gParallelTests.count() + gSerial Tests.count(); 1165 gPending = gSrcs.count() * gSinks.count() + gParallelTests.count() + gSerial Tests.count();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 Reporter* reporter, 1308 Reporter* reporter,
1301 GrContextFactory* fac tory); 1309 GrContextFactory* fac tory);
1302 } // namespace skiatest 1310 } // namespace skiatest
1303 1311
1304 #if !defined(SK_BUILD_FOR_IOS) 1312 #if !defined(SK_BUILD_FOR_IOS)
1305 int main(int argc, char** argv) { 1313 int main(int argc, char** argv) {
1306 SkCommandLineFlags::Parse(argc, argv); 1314 SkCommandLineFlags::Parse(argc, argv);
1307 return dm_main(); 1315 return dm_main();
1308 } 1316 }
1309 #endif 1317 #endif
OLDNEW
« no previous file with comments | « no previous file | tests/AAClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698