| 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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 return false; | 787 return false; |
| 788 #endif | 788 #endif |
| 789 } | 789 } |
| 790 | 790 |
| 791 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack( | 791 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack( |
| 792 blink::WebMediaStream* stream) { | 792 blink::WebMediaStream* stream) { |
| 793 DCHECK(stream); | 793 DCHECK(stream); |
| 794 #if defined(ENABLE_WEBRTC) | 794 #if defined(ENABLE_WEBRTC) |
| 795 return AddAudioTrackToMediaStream( | 795 return AddAudioTrackToMediaStream( |
| 796 make_scoped_refptr(new MockAudioCapturerSource()), | 796 make_scoped_refptr(new MockAudioCapturerSource()), |
| 797 false /* is_remote */, false /* is_readonly */, stream); | 797 48000 /* sample rate */, media::CHANNEL_LAYOUT_STEREO, |
| 798 480 /* sample frames per buffer */, false /* is_remote */, |
| 799 false /* is_readonly */, stream); |
| 798 #else | 800 #else |
| 799 return false; | 801 return false; |
| 800 #endif | 802 #endif |
| 801 } | 803 } |
| 802 | 804 |
| 803 // RenderViewObserver -------------------------------------------------------- | 805 // RenderViewObserver -------------------------------------------------------- |
| 804 | 806 |
| 805 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { | 807 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { |
| 806 WebTestingSupport::injectInternalsObject(frame); | 808 WebTestingSupport::injectInternalsObject(frame); |
| 807 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( | 809 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 get_bluetooth_events_callbacks_.pop_front(); | 1008 get_bluetooth_events_callbacks_.pop_front(); |
| 1007 callback.Run(events); | 1009 callback.Run(events); |
| 1008 } | 1010 } |
| 1009 | 1011 |
| 1010 void BlinkTestRunner::ReportLeakDetectionResult( | 1012 void BlinkTestRunner::ReportLeakDetectionResult( |
| 1011 const LeakDetectionResult& report) { | 1013 const LeakDetectionResult& report) { |
| 1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 1014 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 1013 } | 1015 } |
| 1014 | 1016 |
| 1015 } // namespace content | 1017 } // namespace content |
| OLD | NEW |