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.cc

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix Created 4 years, 1 month 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 #include "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "content/common/frame_messages.h" 22 #include "content/common/frame_messages.h"
23 #include "content/common/renderer.mojom.h" 23 #include "content/common/renderer.mojom.h"
24 #include "content/public/browser/browser_context.h" 24 #include "content/public/browser/browser_context.h"
25 #include "content/public/browser/global_request_id.h" 25 #include "content/public/browser/global_request_id.h"
26 #include "content/public/browser/notification_details.h" 26 #include "content/public/browser/notification_details.h"
27 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "content/public/browser/notification_source.h" 28 #include "content/public/browser/notification_source.h"
29 #include "content/public/browser/notification_types.h" 29 #include "content/public/browser/notification_types.h"
30 #include "content/public/browser/render_widget_host_iterator.h" 30 #include "content/public/browser/render_widget_host_iterator.h"
31 #include "content/public/browser/storage_partition.h" 31 #include "content/public/browser/storage_partition.h"
32 #include "media/media_features.h"
32 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" 33 #include "mojo/public/cpp/bindings/associated_interface_ptr.h"
33 34
34 namespace content { 35 namespace content {
35 36
36 MockRenderProcessHost::MockRenderProcessHost(BrowserContext* browser_context) 37 MockRenderProcessHost::MockRenderProcessHost(BrowserContext* browser_context)
37 : bad_msg_count_(0), 38 : bad_msg_count_(0),
38 factory_(NULL), 39 factory_(NULL),
39 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()), 40 id_(ChildProcessHostImpl::GenerateChildProcessUniqueId()),
40 has_connection_(false), 41 has_connection_(false),
41 browser_context_(browser_context), 42 browser_context_(browser_context),
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 renderer_interface_.reset(new mojom::RendererAssociatedPtr); 308 renderer_interface_.reset(new mojom::RendererAssociatedPtr);
308 mojo::GetDummyProxyForTesting(renderer_interface_.get()); 309 mojo::GetDummyProxyForTesting(renderer_interface_.get());
309 } 310 }
310 return renderer_interface_->get(); 311 return renderer_interface_->get();
311 } 312 }
312 313
313 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) { 314 void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
314 RenderProcessHostImpl::FilterURL(this, empty_allowed, url); 315 RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
315 } 316 }
316 317
317 #if defined(ENABLE_WEBRTC) 318 #if BUILDFLAG(ENABLE_WEBRTC)
318 void MockRenderProcessHost::EnableAudioDebugRecordings( 319 void MockRenderProcessHost::EnableAudioDebugRecordings(
319 const base::FilePath& file) { 320 const base::FilePath& file) {
320 } 321 }
321 322
322 void MockRenderProcessHost::DisableAudioDebugRecordings() {} 323 void MockRenderProcessHost::DisableAudioDebugRecordings() {}
323 324
324 bool MockRenderProcessHost::StartWebRTCEventLog( 325 bool MockRenderProcessHost::StartWebRTCEventLog(
325 const base::FilePath& file_path) { 326 const base::FilePath& file_path) {
326 return false; 327 return false;
327 } 328 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 384 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
384 it != processes_.end(); ++it) { 385 it != processes_.end(); ++it) {
385 if (*it == host) { 386 if (*it == host) {
386 processes_.weak_erase(it); 387 processes_.weak_erase(it);
387 break; 388 break;
388 } 389 }
389 } 390 }
390 } 391 }
391 392
392 } // namespace content 393 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/renderer/media/rtc_certificate_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698