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

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: nitfixes 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 void set_is_process_backgrounded(bool is_process_backgrounded) { 135 void set_is_process_backgrounded(bool is_process_backgrounded) {
136 is_process_backgrounded_ = is_process_backgrounded; 136 is_process_backgrounded_ = is_process_backgrounded;
137 } 137 }
138 138
139 void SetProcessHandle(std::unique_ptr<base::ProcessHandle> new_handle) { 139 void SetProcessHandle(std::unique_ptr<base::ProcessHandle> new_handle) {
140 process_handle = std::move(new_handle); 140 process_handle = std::move(new_handle);
141 } 141 }
142 142
143 void GetAudioOutputControllers(
144 const GetAudioOutputControllersCallback& callback) const override {}
145
146 void SetRemoteInterfaces( 143 void SetRemoteInterfaces(
147 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces) { 144 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces) {
148 remote_interfaces_ = std::move(remote_interfaces); 145 remote_interfaces_ = std::move(remote_interfaces);
149 } 146 }
150 147
151 private: 148 private:
152 // Stores IPC messages that would have been sent to the renderer. 149 // Stores IPC messages that would have been sent to the renderer.
153 IPC::TestSink sink_; 150 IPC::TestSink sink_;
154 int bad_msg_count_; 151 int bad_msg_count_;
155 const MockRenderProcessHostFactory* factory_; 152 const MockRenderProcessHostFactory* factory_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // for deleting all MockRenderProcessHosts that have not deleted by a test in 190 // for deleting all MockRenderProcessHosts that have not deleted by a test in
194 // the destructor and prevent them from being leaked. 191 // the destructor and prevent them from being leaked.
195 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_; 192 mutable std::vector<std::unique_ptr<MockRenderProcessHost>> processes_;
196 193
197 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
198 }; 195 };
199 196
200 } // namespace content 197 } // namespace content
201 198
202 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698