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 "content/renderer/media/mock_peer_connection_impl.h" | 8 #include "content/renderer/media/mock_peer_connection_impl.h" |
9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
10 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" | 10 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 return true; | 361 return true; |
362 } | 362 } |
363 | 363 |
364 private: | 364 private: |
365 std::string sdp_mid_; | 365 std::string sdp_mid_; |
366 int sdp_mline_index_; | 366 int sdp_mline_index_; |
367 std::string sdp_; | 367 std::string sdp_; |
368 }; | 368 }; |
369 | 369 |
370 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() | 370 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() |
371 : MediaStreamDependencyFactory(NULL, NULL), | 371 : MediaStreamDependencyFactory(NULL, NULL, NULL), |
372 mock_pc_factory_created_(false) { | 372 mock_pc_factory_created_(false) { |
373 } | 373 } |
374 | 374 |
375 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} | 375 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} |
376 | 376 |
377 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { | 377 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { |
378 mock_pc_factory_created_ = true; | 378 mock_pc_factory_created_ = true; |
379 return true; | 379 return true; |
380 } | 380 } |
381 | 381 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 458 |
459 webrtc::IceCandidateInterface* | 459 webrtc::IceCandidateInterface* |
460 MockMediaStreamDependencyFactory::CreateIceCandidate( | 460 MockMediaStreamDependencyFactory::CreateIceCandidate( |
461 const std::string& sdp_mid, | 461 const std::string& sdp_mid, |
462 int sdp_mline_index, | 462 int sdp_mline_index, |
463 const std::string& sdp) { | 463 const std::string& sdp) { |
464 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); | 464 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); |
465 } | 465 } |
466 | 466 |
467 } // namespace content | 467 } // namespace content |
OLD | NEW |