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

Unified Diff: ppapi/tests/test_utils.cc

Issue 10790078: PPAPI: Make PPB_MessageLoop_Dev::GetForMainThread work (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: review comments Created 8 years, 4 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 | « ppapi/tests/test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_utils.cc
diff --git a/ppapi/tests/test_utils.cc b/ppapi/tests/test_utils.cc
index b1744dccc993da376b25132e66f6c8d65325ceb7..9776e3459556dcd20287552b6085fd94d7f8bdd9 100644
--- a/ppapi/tests/test_utils.cc
+++ b/ppapi/tests/test_utils.cc
@@ -89,6 +89,14 @@ void NestedEvent::Signal() {
GetTestingInterface()->QuitMessageLoop(instance_);
}
+void NestedEvent::Reset() {
+ // It doesn't make sense to reset when we're still waiting.
+ PP_DCHECK(!waiting_);
+ // We must have already been Signalled().
+ PP_DCHECK(signalled_);
+ signalled_ = false;
+}
+
TestCompletionCallback::TestCompletionCallback(PP_Instance instance)
: wait_for_result_called_(false),
have_result_(false),
« no previous file with comments | « ppapi/tests/test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698