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

Unified Diff: chrome/renderer/mock_render_thread.cc

Issue 1591009: Pepper audio basic functionality unit test, take 3. (Closed)
Patch Set: Created 10 years, 9 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
« no previous file with comments | « chrome/renderer/mock_render_thread.h ('k') | chrome/renderer/pepper_devices.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_render_thread.cc
diff --git a/chrome/renderer/mock_render_thread.cc b/chrome/renderer/mock_render_thread.cc
index 1fa513fe0c138533696645b82c5d0681fcc71958..cda4fefe5dd5c94e0e35c7f559b5555aa92849bb 100644
--- a/chrome/renderer/mock_render_thread.cc
+++ b/chrome/renderer/mock_render_thread.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.
@@ -34,6 +34,16 @@ void MockRenderThread::RemoveRoute(int32 routing_id) {
widget_ = NULL;
}
+// Called by, for example, RenderView::Init(), when adding a new message filter.
+void MockRenderThread::AddFilter(IPC::ChannelProxy::MessageFilter* filter) {
+ filter->OnFilterAdded(&sink());
+}
+
+// Called when the filter is removed.
+void MockRenderThread::RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) {
+ filter->OnFilterRemoved();
+}
+
// Called by the Widget. Used to send messages to the browser.
// We short-circuit the mechanim and handle the messages right here on this
// class.
« no previous file with comments | « chrome/renderer/mock_render_thread.h ('k') | chrome/renderer/pepper_devices.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698