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