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

Unified Diff: tests/Test.h

Issue 13983011: Also proxy bumpTestCount. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/Test.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/Test.h
diff --git a/tests/Test.h b/tests/Test.h
index a4baf5b13c6606b48e299da02639223410d41357..dfa12a6dfcd57f4f34169fbe1959f4ac5cd4d01b 100644
--- a/tests/Test.h
+++ b/tests/Test.h
@@ -32,14 +32,16 @@ namespace skiatest {
kLastResult = kFailed
};
- void bumpTestCount() { sk_atomic_inc(&fTestCount); }
int countTests() const { return fTestCount; }
void startTest(Test*);
void report(const char testDesc[], Result);
void endTest(Test*);
+
virtual bool allowExtendedTest() const { return false; }
virtual bool allowThreaded() const { return false; }
+ virtual void bumpTestCount() { sk_atomic_inc(&fTestCount); }
+
// helpers for tests
void reportFailed(const char desc[]) {
this->report(desc, kFailed);
« no previous file with comments | « no previous file | tests/Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698