diff options
Diffstat (limited to 'ppapi/tests/test_transport.cc')
-rw-r--r-- | ppapi/tests/test_transport.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ppapi/tests/test_transport.cc b/ppapi/tests/test_transport.cc index 6e520c5..d2d2850 100644 --- a/ppapi/tests/test_transport.cc +++ b/ppapi/tests/test_transport.cc @@ -144,6 +144,7 @@ std::string TestTransport::Connect() { ASSERT_EQ(transport1_->ReceiveRemoteAddress(address2), PP_OK); ASSERT_EQ(transport2_->ReceiveRemoteAddress(address1), PP_OK); + ASSERT_EQ(connect_cb1.WaitForResult(), PP_OK); ASSERT_EQ(connect_cb2.WaitForResult(), PP_OK); @@ -181,8 +182,11 @@ std::string TestTransport::TestSetProperty() { pp::Var("ralay.example.com:80")), PP_OK); ASSERT_EQ(transport1_->SetProperty( - PP_TRANSPORTPROPERTY_RELAY_TOKEN, - pp::Var("INVALID_TOKEN")), PP_OK); + PP_TRANSPORTPROPERTY_RELAY_USERNAME, + pp::Var("USERNAME")), PP_OK); + ASSERT_EQ(transport1_->SetProperty( + PP_TRANSPORTPROPERTY_RELAY_PASSWORD, + pp::Var("PASSWORD")), PP_OK); // Try changing TCP window size. ASSERT_EQ(transport1_->SetProperty(PP_TRANSPORTPROPERTY_TCP_RECEIVE_WINDOW, |