summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_transport.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 22:16:02 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-15 22:16:02 +0000
commit6d3ad505c8e8173e98045d845a910f77fab9ffcf (patch)
treee996bba53b108dabdcb9b0af89eab2e4664a0bf5 /ppapi/tests/test_transport.cc
parentb0f146ff51b2b37a2e3549c875fb42365ded7a21 (diff)
downloadchromium_src-6d3ad505c8e8173e98045d845a910f77fab9ffcf.zip
chromium_src-6d3ad505c8e8173e98045d845a910f77fab9ffcf.tar.gz
chromium_src-6d3ad505c8e8173e98045d845a910f77fab9ffcf.tar.bz2
Relay server support for P2P Transport API.
BUG=41776 TEST=None Review URL: http://codereview.chromium.org/7791008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_transport.cc')
-rw-r--r--ppapi/tests/test_transport.cc8
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,