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

Unified Diff: ppapi/tests/test_message_handler.h

Issue 674203005: PPAPI: Make TestMessageHandler.Exceptions work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | ppapi/tests/test_message_handler.cc » ('j') | ppapi/tests/test_message_handler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_message_handler.h
diff --git a/ppapi/tests/test_message_handler.h b/ppapi/tests/test_message_handler.h
index d64314e332db48fb3b275c3875b86627578431ec..51d231741c0d877dcf3cd1b4a7702564c268c3fc 100644
--- a/ppapi/tests/test_message_handler.h
+++ b/ppapi/tests/test_message_handler.h
@@ -28,12 +28,14 @@ class TestMessageHandler : public TestCase {
std::string TestPostMessageAndAwaitResponse();
std::string TestExceptions();
+ // Wait for HandleMessage to be called, and return the Var it received.
+ pp::Var WaitForMessage();
+ NestedEvent message_received_;
+ pp::Var last_message_;
+
const PPB_Messaging_1_2* ppb_messaging_if_;
pp::SimpleThread handler_thread_;
- // For TestExceptions():
- NestedEvent message_received_;
- std::string last_message_;
};
#endif // PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
« no previous file with comments | « no previous file | ppapi/tests/test_message_handler.cc » ('j') | ppapi/tests/test_message_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698