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

Unified Diff: ppapi/tests/test_net_address_private_untrusted.cc

Issue 14139012: PPAPI: More test cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Provide a message loop for "background thread" test so we can use a REQUIRED callback Created 7 years, 8 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_host_resolver_private_disallowed.cc ('k') | ppapi/tests/test_tcp_server_socket_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_net_address_private_untrusted.cc
diff --git a/ppapi/tests/test_net_address_private_untrusted.cc b/ppapi/tests/test_net_address_private_untrusted.cc
index 7ad64e2fcd925b8a413b7e5c08a25db5464b96cf..06db002788e73b5ff2f2ee6e08c14fa7a5908947 100644
--- a/ppapi/tests/test_net_address_private_untrusted.cc
+++ b/ppapi/tests/test_net_address_private_untrusted.cc
@@ -57,10 +57,9 @@ int32_t TestNetAddressPrivateUntrusted::Connect(TCPSocketPrivate* socket,
uint16_t port) {
TestCompletionCallback callback(instance_->pp_instance(), false);
- int32_t rv = socket->Connect(host.c_str(), port, callback.GetCallback());
- if (rv == PP_OK_COMPLETIONPENDING)
- rv = callback.WaitForResult();
- return rv;
+ callback.WaitForResult(
+ socket->Connect(host.c_str(), port, callback.GetCallback()));
+ return callback.result();
}
std::string TestNetAddressPrivateUntrusted::TestAreEqual() {
« no previous file with comments | « ppapi/tests/test_host_resolver_private_disallowed.cc ('k') | ppapi/tests/test_tcp_server_socket_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698