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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1647773002: MediaStream audio sourcing: Bypass audio processing for non-WebRTC cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT FOR REVIEW -- This will be broken-up across multiple CLs. Created 4 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/renderer/media/webrtc_local_audio_track_unittest.cc ('k') | media/base/BUILD.gn » ('j') | 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 #include "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <clocale> 9 #include <clocale>
10 #include <cmath> 10 #include <cmath>
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 return false; 773 return false;
774 #endif 774 #endif
775 } 775 }
776 776
777 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack( 777 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack(
778 blink::WebMediaStream* stream) { 778 blink::WebMediaStream* stream) {
779 DCHECK(stream); 779 DCHECK(stream);
780 #if defined(ENABLE_WEBRTC) 780 #if defined(ENABLE_WEBRTC)
781 return AddAudioTrackToMediaStream( 781 return AddAudioTrackToMediaStream(
782 make_scoped_refptr(new MockAudioCapturerSource()), 782 make_scoped_refptr(new MockAudioCapturerSource()),
783 false /* is_remote */, false /* is_readonly */, stream); 783 48000 /* sample rate */, media::CHANNEL_LAYOUT_STEREO,
784 480 /* sample frames per buffer */, false /* is_remote */,
785 false /* is_readonly */, stream);
784 #else 786 #else
785 return false; 787 return false;
786 #endif 788 #endif
787 } 789 }
788 790
789 // RenderViewObserver -------------------------------------------------------- 791 // RenderViewObserver --------------------------------------------------------
790 792
791 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { 793 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) {
792 WebTestingSupport::injectInternalsObject(frame); 794 WebTestingSupport::injectInternalsObject(frame);
793 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( 795 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo(
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 get_bluetooth_events_callbacks_.pop_front(); 1032 get_bluetooth_events_callbacks_.pop_front();
1031 callback.Run(events); 1033 callback.Run(events);
1032 } 1034 }
1033 1035
1034 void BlinkTestRunner::ReportLeakDetectionResult( 1036 void BlinkTestRunner::ReportLeakDetectionResult(
1035 const LeakDetectionResult& report) { 1037 const LeakDetectionResult& report) {
1036 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1038 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1037 } 1039 }
1038 1040
1039 } // namespace content 1041 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_local_audio_track_unittest.cc ('k') | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698