summaryrefslogtreecommitdiffstats
path: root/ppapi/tests
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 18:43:00 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 18:43:00 +0000
commit21c7ff9afa9017603dd43007ce98939c2676a2c6 (patch)
treeb340f9f95dafba7c33eb0658376de29021cb736d /ppapi/tests
parentd952a0583a393551b3f08fb77bd8cd49dde6c446 (diff)
downloadchromium_src-21c7ff9afa9017603dd43007ce98939c2676a2c6.zip
chromium_src-21c7ff9afa9017603dd43007ce98939c2676a2c6.tar.gz
chromium_src-21c7ff9afa9017603dd43007ce98939c2676a2c6.tar.bz2
Add TCP configuration parameters for Transport API.
BUG=91439 TEST=None Review URL: http://codereview.chromium.org/7820008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99776 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests')
-rw-r--r--ppapi/tests/test_transport.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ppapi/tests/test_transport.cc b/ppapi/tests/test_transport.cc
index 0df56cf..8e06f85 100644
--- a/ppapi/tests/test_transport.cc
+++ b/ppapi/tests/test_transport.cc
@@ -195,6 +195,14 @@ std::string TestTransport::TestSetProperty() {
ASSERT_EQ(transport1_->SetProperty(PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW,
pp::Var(10000000)), PP_ERROR_BADARGUMENT);
+ ASSERT_EQ(transport1_->SetProperty(PP_TRANSPORTPROPERTY_TCP_NO_DELAY,
+ pp::Var(true)), PP_OK);
+
+ ASSERT_EQ(transport1_->SetProperty(PP_TRANSPORTPROPERTY_TCP_ACK_DELAY,
+ pp::Var(10)), PP_OK);
+ ASSERT_EQ(transport1_->SetProperty(PP_TRANSPORTPROPERTY_TCP_SEND_WINDOW,
+ pp::Var(10000)), PP_ERROR_BADARGUMENT);
+
TestCompletionCallback connect_cb(instance_->pp_instance());
ASSERT_EQ(transport1_->Connect(connect_cb), PP_OK_COMPLETIONPENDING);