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 "Test.h" | 8 #include "Test.h" |
9 | 9 |
10 #include "SkCommandLineFlags.h" | 10 #include "SkCommandLineFlags.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 protected: | 68 protected: |
69 virtual void onReportFailed(const SkString& desc) SK_OVERRIDE { | 69 virtual void onReportFailed(const SkString& desc) SK_OVERRIDE { |
70 fFailures.push_back(desc); | 70 fFailures.push_back(desc); |
71 } | 71 } |
72 | 72 |
73 // Proxy down to fReporter. We assume these calls are threadsafe. | 73 // Proxy down to fReporter. We assume these calls are threadsafe. |
74 virtual bool allowExtendedTest() const SK_OVERRIDE { | 74 virtual bool allowExtendedTest() const SK_OVERRIDE { |
75 return fReporter->allowExtendedTest(); | 75 return fReporter->allowExtendedTest(); |
76 } | 76 } |
77 | 77 |
| 78 virtual bool allowThreaded() const SK_OVERRIDE { |
| 79 return fReporter->allowThreaded(); |
| 80 } |
| 81 |
78 virtual void bumpTestCount() SK_OVERRIDE { | 82 virtual void bumpTestCount() SK_OVERRIDE { |
79 fReporter->bumpTestCount(); | 83 fReporter->bumpTestCount(); |
80 } | 84 } |
81 | 85 |
82 virtual bool verbose() const SK_OVERRIDE { | 86 virtual bool verbose() const SK_OVERRIDE { |
83 return fReporter->verbose(); | 87 return fReporter->verbose(); |
84 } | 88 } |
85 | 89 |
86 private: | 90 private: |
87 Reporter* fReporter; // Unowned. | 91 Reporter* fReporter; // Unowned. |
(...skipping 21 matching lines...) Expand all Loading... |
109 fReporter->reportFailed(local.failure(i)); | 113 fReporter->reportFailed(local.failure(i)); |
110 } | 114 } |
111 fReporter->endTest(this); | 115 fReporter->endTest(this); |
112 | 116 |
113 } | 117 } |
114 | 118 |
115 SkString Test::GetTmpDir() { | 119 SkString Test::GetTmpDir() { |
116 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0]; | 120 const char* tmpDir = FLAGS_tmpDir.isEmpty() ? NULL : FLAGS_tmpDir[0]; |
117 return SkString(tmpDir); | 121 return SkString(tmpDir); |
118 } | 122 } |
OLD | NEW |