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

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

Issue 1721273002: MediaStream audio object graph untangling and clean-ups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 return false; 774 return false;
775 #endif 775 #endif
776 } 776 }
777 777
778 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack( 778 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack(
779 blink::WebMediaStream* stream) { 779 blink::WebMediaStream* stream) {
780 DCHECK(stream); 780 DCHECK(stream);
781 #if defined(ENABLE_WEBRTC) 781 #if defined(ENABLE_WEBRTC)
782 return AddAudioTrackToMediaStream( 782 return AddAudioTrackToMediaStream(
783 make_scoped_refptr(new MockAudioCapturerSource()), 783 make_scoped_refptr(new MockAudioCapturerSource()),
784 false /* is_remote */, false /* is_readonly */, stream); 784 48000 /* sample rate */, media::CHANNEL_LAYOUT_STEREO,
785 480 /* sample frames per buffer */, false /* is_remote */,
786 false /* is_readonly */, stream);
785 #else 787 #else
786 return false; 788 return false;
787 #endif 789 #endif
788 } 790 }
789 791
790 // RenderViewObserver -------------------------------------------------------- 792 // RenderViewObserver --------------------------------------------------------
791 793
792 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { 794 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) {
793 WebTestingSupport::injectInternalsObject(frame); 795 WebTestingSupport::injectInternalsObject(frame);
794 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( 796 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo(
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 get_bluetooth_events_callbacks_.pop_front(); 1033 get_bluetooth_events_callbacks_.pop_front();
1032 callback.Run(events); 1034 callback.Run(events);
1033 } 1035 }
1034 1036
1035 void BlinkTestRunner::ReportLeakDetectionResult( 1037 void BlinkTestRunner::ReportLeakDetectionResult(
1036 const LeakDetectionResult& report) { 1038 const LeakDetectionResult& report) {
1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1039 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1038 } 1040 }
1039 1041
1040 } // namespace content 1042 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698