Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: ppapi/tests/test_websocket.cc

Issue 8989046: WebSocket Pepper API: add interfaces to handle binaryType attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/2011/2012/g Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/tests/test_websocket.cc
diff --git a/ppapi/tests/test_websocket.cc b/ppapi/tests/test_websocket.cc
index 311ce84e7bf1a46d085bffe30fa90670d9f7b31f..f7ce6a9dde26d168c4bee5e02268ca4b7a0bb014 100644
--- a/ppapi/tests/test_websocket.cc
+++ b/ppapi/tests/test_websocket.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -62,6 +62,7 @@ bool TestWebSocket::Init() {
}
void TestWebSocket::RunTests(const std::string& filter) {
+ RUN_TEST_WITH_REFERENCE_CHECK(Interface_0_1, filter);
RUN_TEST_WITH_REFERENCE_CHECK(IsWebSocket, filter);
RUN_TEST_WITH_REFERENCE_CHECK(UninitializedPropertiesAccess, filter);
RUN_TEST_WITH_REFERENCE_CHECK(InvalidConnect, filter);
@@ -139,6 +140,14 @@ PP_Resource TestWebSocket::Connect(
return ws;
}
+std::string TestWebSocket::TestInterface_0_1() {
+ const PPB_WebSocket_Dev_0_1* interface =
+ static_cast<const PPB_WebSocket_Dev_0_1*>(
+ pp::Module::Get()->GetBrowserInterface(PPB_WEBSOCKET_DEV_INTERFACE));
dmichael (off chromium) 2012/01/11 04:53:41 I don't think you really need to support backwards
Takashi Toyoshima 2012/01/11 05:25:49 OK, I remove this test.
+ ASSERT_TRUE(interface);
+ PASS();
+}
+
std::string TestWebSocket::TestIsWebSocket() {
// Test that a NULL resource isn't a websocket.
pp::Resource null_resource;

Powered by Google App Engine
This is Rietveld 408576698