summaryrefslogtreecommitdiffstats
path: root/ppapi/tests
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 02:44:44 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-24 02:44:44 +0000
commit8a825a77279ce099a99fc1a1c2157ddf4f3fde1a (patch)
treed75bcf1be6ace0db0f661105159226358076e8fe /ppapi/tests
parenta7c03d4f3c5b36df2375ff24d5e279221ae65ed1 (diff)
downloadchromium_src-8a825a77279ce099a99fc1a1c2157ddf4f3fde1a.zip
chromium_src-8a825a77279ce099a99fc1a1c2157ddf4f3fde1a.tar.gz
chromium_src-8a825a77279ce099a99fc1a1c2157ddf4f3fde1a.tar.bz2
WebSocket Pepper API: SetBinaryType() returned unexpected PP_FALSE
Usually, the websocket_ doesn't have an object when SetBinaryType() is called. BUG=87310 TEST=ui_tests --gtest_filter='*WebSocket_CcInterfaces' Review URL: http://codereview.chromium.org/9193013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests')
-rw-r--r--ppapi/tests/test_websocket.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/tests/test_websocket.cc b/ppapi/tests/test_websocket.cc
index f129420..c0073eb 100644
--- a/ppapi/tests/test_websocket.cc
+++ b/ppapi/tests/test_websocket.cc
@@ -572,7 +572,7 @@ std::string TestWebSocket::TestCcInterfaces() {
ASSERT_TRUE(AreEqualWithString(ws.GetURL().pp_var(), ""));
// Check communication interfaces (connect, send, receive, and close).
- ws.SetBinaryType(PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV);
+ ASSERT_TRUE(ws.SetBinaryType(PP_WEBSOCKETBINARYTYPE_ARRAYBUFFER_DEV));
TestCompletionCallback connect_callback(instance_->pp_instance());
int32_t result = ws.Connect(pp::Var(std::string(kCloseServerURL)), NULL, 0U,
connect_callback);