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

Unified Diff: ppapi/tests/test_case.h

Issue 19790011: Fix a defect on a test runner for ppapi tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a build error 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_case.h
diff --git a/ppapi/tests/test_case.h b/ppapi/tests/test_case.h
index 2c8177489ddb410bb85c287c5d4cb3c5942298de..4491c767f985546061a1f9c6bf0f0a4dc7b5207b 100644
--- a/ppapi/tests/test_case.h
+++ b/ppapi/tests/test_case.h
@@ -187,7 +187,9 @@ class TestCase {
private:
void Run() {
- PP_DCHECK(PP_OK == loop_.AttachToCurrentThread());
+ int32_t result = loop_.AttachToCurrentThread();
+ static_cast<void>(result); // result is not used in the RELEASE build.
+ PP_DCHECK(PP_OK == result);
result_ = (test_case_->*test_to_run_)();
// Now give the loop a chance to clean up.
loop_.PostQuit(true /* should_destroy */);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698