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

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

Issue 2425703002: Remove |remote| and |readonly| members of MediaStreamTrack (Closed)
Patch Set: Remove |remote| and |readonly| members of MediaStreamTrack Created 4 years, 2 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 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 741
742 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) { 742 void BlinkTestRunner::RunIdleTasks(const base::Closure& callback) {
743 SchedulerRunIdleTasks(callback); 743 SchedulerRunIdleTasks(callback);
744 } 744 }
745 745
746 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( 746 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack(
747 blink::WebMediaStream* stream) { 747 blink::WebMediaStream* stream) {
748 DCHECK(stream); 748 DCHECK(stream);
749 #if defined(ENABLE_WEBRTC) 749 #if defined(ENABLE_WEBRTC)
750 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(), 750 return AddVideoTrackToMediaStream(base::MakeUnique<MockVideoCapturerSource>(),
751 false, // is_remote
752 false, // is_readonly
753 stream); 751 stream);
754 #else 752 #else
755 return false; 753 return false;
756 #endif 754 #endif
757 } 755 }
758 756
759 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack( 757 bool BlinkTestRunner::AddMediaStreamAudioSourceAndTrack(
760 blink::WebMediaStream* stream) { 758 blink::WebMediaStream* stream) {
761 DCHECK(stream); 759 DCHECK(stream);
762 #if defined(ENABLE_WEBRTC) 760 #if defined(ENABLE_WEBRTC)
763 return AddAudioTrackToMediaStream( 761 return AddAudioTrackToMediaStream(
764 make_scoped_refptr(new MockAudioCapturerSource()), 762 make_scoped_refptr(new MockAudioCapturerSource()),
765 48000, // sample rate 763 48000, // sample rate
766 media::CHANNEL_LAYOUT_STEREO, 764 media::CHANNEL_LAYOUT_STEREO,
767 480, // sample frames per buffer 765 480, // sample frames per buffer
768 false, // is_remote
769 false, // is_readonly
770 stream); 766 stream);
771 #else 767 #else
772 return false; 768 return false;
773 #endif 769 #endif
774 } 770 }
775 771
776 // RenderViewObserver -------------------------------------------------------- 772 // RenderViewObserver --------------------------------------------------------
777 773
778 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { 774 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) {
779 WebTestingSupport::injectInternalsObject(frame); 775 WebTestingSupport::injectInternalsObject(frame);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 void BlinkTestRunner::ReportLeakDetectionResult( 1022 void BlinkTestRunner::ReportLeakDetectionResult(
1027 const LeakDetectionResult& report) { 1023 const LeakDetectionResult& report) {
1028 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1024 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1029 } 1025 }
1030 1026
1031 void BlinkTestRunner::OnDestruct() { 1027 void BlinkTestRunner::OnDestruct() {
1032 delete this; 1028 delete this;
1033 } 1029 }
1034 1030
1035 } // namespace content 1031 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698