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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 880393002: Fix webrtcAudioPrivate API to handle requests from <webview>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 int GetActiveViewCount(); 105 int GetActiveViewCount();
106 106
107 void set_is_isolated_guest(bool is_isolated_guest) { 107 void set_is_isolated_guest(bool is_isolated_guest) {
108 is_isolated_guest_ = is_isolated_guest; 108 is_isolated_guest_ = is_isolated_guest;
109 } 109 }
110 110
111 void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) { 111 void SetProcessHandle(scoped_ptr<base::ProcessHandle> new_handle) {
112 process_handle = new_handle.Pass(); 112 process_handle = new_handle.Pass();
113 } 113 }
114 114
115 void GetAudioOutputControllers(
116 const GetAudioOutputControllersCallback& callback) const override {}
117
115 private: 118 private:
116 // Stores IPC messages that would have been sent to the renderer. 119 // Stores IPC messages that would have been sent to the renderer.
117 IPC::TestSink sink_; 120 IPC::TestSink sink_;
118 int bad_msg_count_; 121 int bad_msg_count_;
119 const MockRenderProcessHostFactory* factory_; 122 const MockRenderProcessHostFactory* factory_;
120 int id_; 123 int id_;
121 BrowserContext* browser_context_; 124 BrowserContext* browser_context_;
122 ObserverList<RenderProcessHostObserver> observers_; 125 ObserverList<RenderProcessHostObserver> observers_;
123 126
124 IDMap<RenderWidgetHost> render_widget_hosts_; 127 IDMap<RenderWidgetHost> render_widget_hosts_;
(...skipping 26 matching lines...) Expand all
151 // for deleting all MockRenderProcessHosts that have not deleted by a test in 154 // for deleting all MockRenderProcessHosts that have not deleted by a test in
152 // the destructor and prevent them from being leaked. 155 // the destructor and prevent them from being leaked.
153 mutable ScopedVector<MockRenderProcessHost> processes_; 156 mutable ScopedVector<MockRenderProcessHost> processes_;
154 157
155 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 158 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
156 }; 159 };
157 160
158 } // namespace content 161 } // namespace content
159 162
160 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 163 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698