diff options
author | neb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 17:44:57 +0000 |
---|---|---|
committer | neb@chromium.org <neb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-31 17:44:57 +0000 |
commit | 74f275448f43dac31331495148e832c376b18344 (patch) | |
tree | 4448da9862f7aa9607e7987c5f2c632365503c66 /chrome/common/ipc_test_sink.cc | |
parent | 224d21b895ef373bdaaf12960004e2b5d4e2b1b5 (diff) | |
download | chromium_src-74f275448f43dac31331495148e832c376b18344.zip chromium_src-74f275448f43dac31331495148e832c376b18344.tar.gz chromium_src-74f275448f43dac31331495148e832c376b18344.tar.bz2 |
Add a Pepper audio basic functionality unit test, take 2.
Also changed TestSink to be derived from IPC::Channel and made MockRenderThread service AddFilter/RemoveFilter, so that it can be used by MessageFilters.
Also removed some logging because it triggers Valgrind errors.
Review URL: http://codereview.chromium.org/1466001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/ipc_test_sink.cc')
-rw-r--r-- | chrome/common/ipc_test_sink.cc | 8 |
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)); } |