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

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

Issue 2784563003: WebRTC Audio private API: removing WebRtcAudioPrivate(Set/Get)ActiveSinkFunction (Closed)
Patch Set: updated api version Created 3 years, 8 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <memory> 10 #include <memory>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 void set_is_process_backgrounded(bool is_process_backgrounded) { 141 void set_is_process_backgrounded(bool is_process_backgrounded) {
142 is_process_backgrounded_ = is_process_backgrounded; 142 is_process_backgrounded_ = is_process_backgrounded;
143 } 143 }
144 144
145 void SetProcessHandle(std::unique_ptr<base::ProcessHandle> new_handle) { 145 void SetProcessHandle(std::unique_ptr<base::ProcessHandle> new_handle) {
146 process_handle = std::move(new_handle); 146 process_handle = std::move(new_handle);
147 } 147 }
148 148
149 void GetAudioOutputControllers(
150 const GetAudioOutputControllersCallback& callback) const override {}
151
152 void OverrideBinderForTesting(const std::string& interface_name, 149 void OverrideBinderForTesting(const std::string& interface_name,
153 const InterfaceBinder& binder); 150 const InterfaceBinder& binder);
154 151
155 private: 152 private:
156 // Stores IPC messages that would have been sent to the renderer. 153 // Stores IPC messages that would have been sent to the renderer.
157 IPC::TestSink sink_; 154 IPC::TestSink sink_;
158 int bad_msg_count_; 155 int bad_msg_count_;
159 const MockRenderProcessHostFactory* factory_; 156 const MockRenderProcessHostFactory* factory_;
160 int id_; 157 int id_;
161 bool has_connection_; 158 bool has_connection_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // for deleting all MockRenderProcessHosts that have not deleted by a test in 194 // for deleting all MockRenderProcessHosts that have not deleted by a test in
198 // the destructor and prevent them from being leaked. 195 // the destructor and prevent them from being leaked.
199 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_; 196 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_;
200 197
201 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 198 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
202 }; 199 };
203 200
204 } // namespace content 201 } // namespace content
205 202
206 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 203 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_process_host.h ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698