Index: ppapi/tests/test_udp_socket_private_shared.cc |
diff --git a/ppapi/tests/test_udp_socket_private_shared.cc b/ppapi/tests/test_udp_socket_private_shared.cc |
index 2de64778cce0de3ddd81e4cfcbf3b4245c263aaf..8b4d9910beca724bcbac8f0b348b110d0aac94b0 100644 |
--- a/ppapi/tests/test_udp_socket_private_shared.cc |
+++ b/ppapi/tests/test_udp_socket_private_shared.cc |
@@ -75,7 +75,7 @@ std::string TestUDPSocketPrivateShared::GenerateNetAddress( |
} |
std::string TestUDPSocketPrivateShared::CreateAndBindUDPSocket( |
- const PP_NetAddress_Private *address, |
+ PP_NetAddress_Private *address, |
PP_Resource *socket) { |
*socket = udp_socket_private_interface_->Create(instance_->pp_instance()); |
if (0 == *socket) |
@@ -95,6 +95,9 @@ std::string TestUDPSocketPrivateShared::CreateAndBindUDPSocket( |
if (rv != PP_OK) |
return ReportError("PPB_UDPSocket_Private::Bind", rv); |
+ if( !udp_socket_private_interface_->GetBoundAddress(*socket, address)) |
yzshen1
2012/02/07 18:14:59
Space before '(' but not after:
"if (!..."
mtilburg1
2012/02/07 22:08:14
Done.
|
+ return "PPB_UDPSocket_Private::GetBoundAddress: Failed"; |
+ |
PASS(); |
} |
@@ -125,15 +128,15 @@ std::string TestUDPSocketPrivateShared::TestConnect() { |
if (!error_message.empty()) |
return error_message; |
error_message = GenerateNetAddress(&tcp_socket_client, &client_address); |
- if (error_message.empty()) |
+ if (!error_message.empty()) |
return error_message; |
PP_Resource socket_server, socket_client; |
error_message = CreateAndBindUDPSocket(&server_address, &socket_server); |
- if (error_message.empty()) |
+ if (!error_message.empty()) |
return error_message; |
error_message = CreateAndBindUDPSocket(&client_address, &socket_client); |
- if (error_message.empty()) |
+ if (!error_message.empty()) |
return error_message; |
static const char* const kMessage = |