зеркало из https://github.com/mozilla/moz-skia.git
Unbreak -z. The LocalReporter shim layer was forcing the pathops options back to defaults.
BUG= R=caryclark@google.com Author: mtklein@google.com Review URL: https://chromiumcodereview.appspot.com/13849013 git-svn-id: http://skia.googlecode.com/svn/trunk@8804 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
0506b9d7d5
Коммит
e1c5429027
|
@ -60,7 +60,7 @@ const char* Test::getName() {
|
||||||
namespace {
|
namespace {
|
||||||
class LocalReporter : public Reporter {
|
class LocalReporter : public Reporter {
|
||||||
public:
|
public:
|
||||||
LocalReporter() {}
|
explicit LocalReporter(const Reporter& reporterToMimic) : fReporter(reporterToMimic) {}
|
||||||
|
|
||||||
int failure_size() const { return fFailures.count(); }
|
int failure_size() const { return fFailures.count(); }
|
||||||
const char* failure(int i) const { return fFailures[i].c_str(); }
|
const char* failure(int i) const { return fFailures[i].c_str(); }
|
||||||
|
@ -72,7 +72,16 @@ namespace {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool allowExtendedTest() const SK_OVERRIDE {
|
||||||
|
return fReporter.allowExtendedTest();
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual bool allowThreaded() const SK_OVERRIDE {
|
||||||
|
return fReporter.allowThreaded();
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
const Reporter& fReporter;
|
||||||
SkTArray<SkString> fFailures;
|
SkTArray<SkString> fFailures;
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
@ -84,7 +93,7 @@ void Test::run() {
|
||||||
const SkMSec start = SkTime::GetMSecs();
|
const SkMSec start = SkTime::GetMSecs();
|
||||||
// Run the test into a LocalReporter so we know if it's passed or failed without interference
|
// Run the test into a LocalReporter so we know if it's passed or failed without interference
|
||||||
// from other tests that might share fReporter.
|
// from other tests that might share fReporter.
|
||||||
LocalReporter local;
|
LocalReporter local(*fReporter);
|
||||||
this->onRun(&local);
|
this->onRun(&local);
|
||||||
fPassed = local.failure_size() == 0;
|
fPassed = local.failure_size() == 0;
|
||||||
fElapsed = SkTime::GetMSecs() - start;
|
fElapsed = SkTime::GetMSecs() - start;
|
||||||
|
|
|
@ -73,11 +73,11 @@ public:
|
||||||
fTotal = total;
|
fTotal = total;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool allowExtendedTest() const {
|
virtual bool allowExtendedTest() const SK_OVERRIDE {
|
||||||
return fAllowExtendedTest;
|
return fAllowExtendedTest;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool allowThreaded() const {
|
virtual bool allowThreaded() const SK_OVERRIDE {
|
||||||
return fAllowThreaded;
|
return fAllowThreaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче