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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 if (!audio_track_label.empty()) { | 280 if (!audio_track_label.empty()) { |
281 scoped_refptr<WebRtcAudioCapturer> capturer; | 281 scoped_refptr<WebRtcAudioCapturer> capturer; |
282 scoped_refptr<webrtc::AudioTrackInterface> audio_track( | 282 scoped_refptr<webrtc::AudioTrackInterface> audio_track( |
283 WebRtcLocalAudioTrackAdapter::Create(audio_track_label, NULL)); | 283 WebRtcLocalAudioTrackAdapter::Create(audio_track_label, NULL)); |
284 stream->AddTrack(audio_track.get()); | 284 stream->AddTrack(audio_track.get()); |
285 } | 285 } |
286 mock_peer_connection_->AddRemoteStream(stream.get()); | 286 mock_peer_connection_->AddRemoteStream(stream.get()); |
287 return stream; | 287 return stream; |
288 } | 288 } |
289 | 289 |
| 290 base::MessageLoop message_loop_; |
290 scoped_ptr<ChildProcess> child_process_; | 291 scoped_ptr<ChildProcess> child_process_; |
291 scoped_ptr<MockWebRTCPeerConnectionHandlerClient> mock_client_; | 292 scoped_ptr<MockWebRTCPeerConnectionHandlerClient> mock_client_; |
292 scoped_ptr<MockMediaStreamDependencyFactory> mock_dependency_factory_; | 293 scoped_ptr<MockMediaStreamDependencyFactory> mock_dependency_factory_; |
293 scoped_ptr<NiceMock<MockPeerConnectionTracker> > mock_tracker_; | 294 scoped_ptr<NiceMock<MockPeerConnectionTracker> > mock_tracker_; |
294 scoped_ptr<RTCPeerConnectionHandlerUnderTest> pc_handler_; | 295 scoped_ptr<RTCPeerConnectionHandlerUnderTest> pc_handler_; |
295 | 296 |
296 // Weak reference to the mocked native peer connection implementation. | 297 // Weak reference to the mocked native peer connection implementation. |
297 MockPeerConnectionImpl* mock_peer_connection_; | 298 MockPeerConnectionImpl* mock_peer_connection_; |
298 }; | 299 }; |
299 | 300 |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
856 EXPECT_CALL(*mock_tracker_.get(), | 857 EXPECT_CALL(*mock_tracker_.get(), |
857 TrackCreateDTMFSender(pc_handler_.get(), | 858 TrackCreateDTMFSender(pc_handler_.get(), |
858 testing::Ref(tracks[0]))); | 859 testing::Ref(tracks[0]))); |
859 | 860 |
860 scoped_ptr<blink::WebRTCDTMFSenderHandler> sender( | 861 scoped_ptr<blink::WebRTCDTMFSenderHandler> sender( |
861 pc_handler_->createDTMFSender(tracks[0])); | 862 pc_handler_->createDTMFSender(tracks[0])); |
862 EXPECT_TRUE(sender.get()); | 863 EXPECT_TRUE(sender.get()); |
863 } | 864 } |
864 | 865 |
865 } // namespace content | 866 } // namespace content |
OLD | NEW |