OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |