Chromium Code Reviews| 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; |