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

Unified Diff: ppapi/tests/test_websocket.cc

Issue 9227008: WebSocket Pepper API: SRPC proxy implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win32 build Created 8 years, 11 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
Index: ppapi/tests/test_websocket.cc
diff --git a/ppapi/tests/test_websocket.cc b/ppapi/tests/test_websocket.cc
index da09d82eb2547497cbc232f58960bd4f513d93fb..0857ad678d37ccb947a7554614927206574d2c0b 100644
--- a/ppapi/tests/test_websocket.cc
+++ b/ppapi/tests/test_websocket.cc
@@ -245,8 +245,12 @@ std::string TestWebSocket::TestProtocols() {
PP_Resource ws = websocket_interface_->Create(instance_->pp_instance());
ASSERT_TRUE(ws);
+ TestCompletionCallback callback(instance_->pp_instance(), force_async_);
int32_t result = websocket_interface_->Connect(
- ws, url, bad_protocols, 2U, PP_BlockUntilComplete());
+ ws, url, bad_protocols, 2U,
+ static_cast<pp::CompletionCallback>(callback).pp_completion_callback());
+ if (result == PP_OK_COMPLETIONPENDING)
+ result = callback.WaitForResult();
ASSERT_EQ(PP_ERROR_BADARGUMENT, result);
core_interface_->ReleaseResource(ws);

Powered by Google App Engine
This is Rietveld 408576698