summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 15:31:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-04 15:31:26 +0000
commit080f07a59772e45630ffb727035e89e23270bf18 (patch)
tree47f4472f800dfe13554061849e5a8e4204411672 /ppapi
parentaf9c1fa30f6d8c69f6c3f992d643c9f28da3bdb9 (diff)
downloadchromium_src-080f07a59772e45630ffb727035e89e23270bf18.zip
chromium_src-080f07a59772e45630ffb727035e89e23270bf18.tar.gz
chromium_src-080f07a59772e45630ffb727035e89e23270bf18.tar.bz2
Remove the host dispatcher unittest file. This test doesn't pass because the
behavior has changed, and what it tests is basically useless. TEST=none BUG=87647 Review URL: http://codereview.chromium.org/8116016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/ppapi_tests.gypi1
-rw-r--r--ppapi/proxy/host_dispatcher_unittest.cc42
2 files changed, 0 insertions, 43 deletions
diff --git a/ppapi/ppapi_tests.gypi b/ppapi/ppapi_tests.gypi
index 37b6440..c1abd06 100644
--- a/ppapi/ppapi_tests.gypi
+++ b/ppapi/ppapi_tests.gypi
@@ -205,7 +205,6 @@
'sources': [
'proxy/run_all_unittests.cc',
- 'proxy/host_dispatcher_unittest.cc',
'proxy/mock_resource.cc',
'proxy/mock_resource.h',
'proxy/plugin_dispatcher_unittest.cc',
diff --git a/ppapi/proxy/host_dispatcher_unittest.cc b/ppapi/proxy/host_dispatcher_unittest.cc
deleted file mode 100644
index 5ce8ba3..0000000
--- a/ppapi/proxy/host_dispatcher_unittest.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "base/memory/scoped_ptr.h"
-#include "ipc/ipc_message_utils.h"
-#include "ppapi/c/ppb_audio.h"
-#include "ppapi/c/ppp_instance.h"
-#include "ppapi/proxy/ppapi_messages.h"
-#include "ppapi/proxy/ppapi_proxy_test.h"
-
-namespace ppapi {
-namespace proxy {
-
-class HostDispatcherTest : public HostProxyTest {
- public:
- HostDispatcherTest() {}
-
- bool HasTargetProxy(InterfaceID id) {
- return !!host_dispatcher()->proxies_[id].get();
- }
-};
-
-// TODO(brettw): Make and register an implementation of TrackerBase for this
-// test. Possibly fix other failures too, once that's resolved.
-TEST_F(HostDispatcherTest, FAILS_PPBCreation) {
- RegisterTestInterface(PPB_AUDIO_INTERFACE,
- reinterpret_cast<void*>(0xdeadbeef));
-
- // Sending a PPB message out of the blue should create a target proxy for
- // that interface in the plugin.
- EXPECT_FALSE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO));
- PpapiMsg_PPBAudio_NotifyAudioStreamCreated audio_msg(
- INTERFACE_ID_PPB_AUDIO, HostResource(), 0,
- IPC::PlatformFileForTransit(), base::SharedMemoryHandle(), 0);
- host_dispatcher()->OnMessageReceived(audio_msg);
- EXPECT_TRUE(HasTargetProxy(INTERFACE_ID_PPB_AUDIO));
-}
-
-} // namespace proxy
-} // namespace ppapi
-