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

Side by Side Diff: content/renderer/media/rtc_peer_connection_handler_unittest.cc

Issue 2972553002: Remove MediaStreamVideoSource::GetCurrentSupportedFormats() (Closed)
Patch Set: remove extra use in media_stream_video_capturer_source_unittest.cc Created 3 years, 5 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/renderer/media/rtc_peer_connection_handler.h" 5 #include "content/renderer/media/rtc_peer_connection_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 mock_dependency_factory_.get()); 306 mock_dependency_factory_.get());
307 audio_source->SetAllowInvalidRenderFrameIdForTesting(true); 307 audio_source->SetAllowInvalidRenderFrameIdForTesting(true);
308 blink_audio_source.SetExtraData(audio_source); // Takes ownership. 308 blink_audio_source.SetExtraData(audio_source); // Takes ownership.
309 309
310 blink::WebMediaStreamSource video_source; 310 blink::WebMediaStreamSource video_source;
311 video_source.Initialize(blink::WebString::FromUTF8(video_track_label), 311 video_source.Initialize(blink::WebString::FromUTF8(video_track_label),
312 blink::WebMediaStreamSource::kTypeVideo, 312 blink::WebMediaStreamSource::kTypeVideo,
313 blink::WebString::FromUTF8("video_track"), 313 blink::WebString::FromUTF8("video_track"),
314 false /* remote */); 314 false /* remote */);
315 MockMediaStreamVideoSource* native_video_source = 315 MockMediaStreamVideoSource* native_video_source =
316 new MockMediaStreamVideoSource(false); 316 new MockMediaStreamVideoSource();
317 video_source.SetExtraData(native_video_source); 317 video_source.SetExtraData(native_video_source);
318 318
319 blink::WebVector<blink::WebMediaStreamTrack> audio_tracks( 319 blink::WebVector<blink::WebMediaStreamTrack> audio_tracks(
320 static_cast<size_t>(1)); 320 static_cast<size_t>(1));
321 audio_tracks[0].Initialize(blink_audio_source.Id(), blink_audio_source); 321 audio_tracks[0].Initialize(blink_audio_source.Id(), blink_audio_source);
322 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(), 322 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(),
323 Initialize(_, _, -1)); 323 Initialize(_, _, -1));
324 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(), 324 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(),
325 SetAutomaticGainControl(true)); 325 SetAutomaticGainControl(true));
326 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(), Start()); 326 EXPECT_CALL(*mock_audio_device_factory_.mock_capturer_source(), Start());
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 testing::Ref(tracks[0]))); 1460 testing::Ref(tracks[0])));
1461 1461
1462 std::unique_ptr<blink::WebRTCDTMFSenderHandler> sender( 1462 std::unique_ptr<blink::WebRTCDTMFSenderHandler> sender(
1463 pc_handler_->CreateDTMFSender(tracks[0])); 1463 pc_handler_->CreateDTMFSender(tracks[0]));
1464 EXPECT_TRUE(sender.get()); 1464 EXPECT_TRUE(sender.get());
1465 1465
1466 StopAllTracks(local_stream); 1466 StopAllTracks(local_stream);
1467 } 1467 }
1468 1468
1469 } // namespace content 1469 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/pepper_to_video_track_adapter.cc ('k') | content/renderer/media/user_media_client_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698