summaryrefslogtreecommitdiffstats
path: root/chrome/common/ipc_test_sink.cc
diff options
context:
space:
mode:
authorneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-05 17:35:01 +0000
committerneb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-05 17:35:01 +0000
commit90b721e6713f6429a24fe03d4f0dbab588f7dc46 (patch)
tree51d7864d9870feccdf0be9cf1fe63129fa7e66c3 /chrome/common/ipc_test_sink.cc
parentc847d9f297af987bf24a5ccf17c3a29675f582aa (diff)
downloadchromium_src-90b721e6713f6429a24fe03d4f0dbab588f7dc46.zip
chromium_src-90b721e6713f6429a24fe03d4f0dbab588f7dc46.tar.gz
chromium_src-90b721e6713f6429a24fe03d4f0dbab588f7dc46.tar.bz2
Pepper audio basic functionality unit test, take 3.
Also changed TestSink to be derived from IPC::Channel and made MockRenderThread service AddFilter/RemoveFilter, so that it can be used by MessageFilters. Review URL: http://codereview.chromium.org/1591009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_test_sink.cc')
-rw-r--r--chrome/common/ipc_test_sink.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/common/ipc_test_sink.cc b/chrome/common/ipc_test_sink.cc
index 6a0e45b..04fd065 100644
--- a/chrome/common/ipc_test_sink.cc
+++ b/chrome/common/ipc_test_sink.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -12,6 +12,12 @@ TestSink::TestSink() {
TestSink::~TestSink() {
}
+bool TestSink::Send(IPC::Message* message) {
+ OnMessageReceived(*message);
+ delete message;
+ return true;
+}
+
void TestSink::OnMessageReceived(const Message& msg) {
messages_.push_back(Message(msg));
}