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/mock_media_stream_dependency_factory.h" | 5 #include "content/renderer/media/mock_media_stream_dependency_factory.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "content/renderer/media/mock_peer_connection_impl.h" | 9 #include "content/renderer/media/mock_peer_connection_impl.h" |
10 #include "content/renderer/media/webaudio_capturer_source.h" | 10 #include "content/renderer/media/webaudio_capturer_source.h" |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 return true; | 360 return true; |
361 } | 361 } |
362 | 362 |
363 private: | 363 private: |
364 std::string sdp_mid_; | 364 std::string sdp_mid_; |
365 int sdp_mline_index_; | 365 int sdp_mline_index_; |
366 std::string sdp_; | 366 std::string sdp_; |
367 }; | 367 }; |
368 | 368 |
369 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() | 369 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() |
370 : MediaStreamDependencyFactory(NULL, NULL), | 370 : MediaStreamDependencyFactory(NULL), |
371 mock_pc_factory_created_(false) { | 371 mock_pc_factory_created_(false) { |
372 } | 372 } |
373 | 373 |
374 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} | 374 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} |
375 | 375 |
376 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { | 376 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { |
377 mock_pc_factory_created_ = true; | 377 mock_pc_factory_created_ = true; |
378 return true; | 378 return true; |
379 } | 379 } |
380 | 380 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); | 477 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); |
478 } | 478 } |
479 | 479 |
480 scoped_refptr<WebRtcAudioCapturer> | 480 scoped_refptr<WebRtcAudioCapturer> |
481 MockMediaStreamDependencyFactory::MaybeCreateAudioCapturer( | 481 MockMediaStreamDependencyFactory::MaybeCreateAudioCapturer( |
482 int render_view_id, const StreamDeviceInfo& device_info) { | 482 int render_view_id, const StreamDeviceInfo& device_info) { |
483 return WebRtcAudioCapturer::CreateCapturer(); | 483 return WebRtcAudioCapturer::CreateCapturer(); |
484 } | 484 } |
485 | 485 |
486 } // namespace content | 486 } // namespace content |
OLD | NEW |