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

Side by Side Diff: tests/Test.cpp

Issue 19374003: harden and speed up path op unit tests (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rename threaded to single Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « tests/PathOpsTestCommon.cpp ('k') | tests/skia_test.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "Test.h" 8 #include "Test.h"
9 9
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 78
79 virtual bool allowThreaded() const SK_OVERRIDE { 79 virtual bool allowThreaded() const SK_OVERRIDE {
80 return fReporter->allowThreaded(); 80 return fReporter->allowThreaded();
81 } 81 }
82 82
83 virtual void bumpTestCount() SK_OVERRIDE { 83 virtual void bumpTestCount() SK_OVERRIDE {
84 fReporter->bumpTestCount(); 84 fReporter->bumpTestCount();
85 } 85 }
86 86
87 virtual bool verbose() const SK_OVERRIDE {
88 return fReporter->verbose();
89 }
90
87 private: 91 private:
88 Reporter* fReporter; // Unowned. 92 Reporter* fReporter; // Unowned.
89 SkTArray<SkString> fFailures; 93 SkTArray<SkString> fFailures;
90 }; 94 };
91 } // namespace 95 } // namespace
92 96
93 void Test::run() { 97 void Test::run() {
94 // Clear the Skia error callback before running any test, to ensure that tes ts 98 // Clear the Skia error callback before running any test, to ensure that tes ts
95 // don't have unintended side effects when running more than one. 99 // don't have unintended side effects when running more than one.
96 SkSetErrorCallback( NULL, NULL ); 100 SkSetErrorCallback( NULL, NULL );
(...skipping 30 matching lines...) Expand all
127 #else 131 #else
128 return NULL; 132 return NULL;
129 #endif 133 #endif
130 } 134 }
131 135
132 void GpuTest::DestroyContexts() { 136 void GpuTest::DestroyContexts() {
133 #if SK_SUPPORT_GPU 137 #if SK_SUPPORT_GPU
134 gGrContextFactory.destroyContexts(); 138 gGrContextFactory.destroyContexts();
135 #endif 139 #endif
136 } 140 }
OLDNEW
« no previous file with comments | « tests/PathOpsTestCommon.cpp ('k') | tests/skia_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698