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

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

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments and address some review comments Created 7 years, 7 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/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/utf_string_conversions.h" 8 #include "base/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 "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 10 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 return true; 394 return true;
395 } 395 }
396 396
397 private: 397 private:
398 std::string sdp_mid_; 398 std::string sdp_mid_;
399 int sdp_mline_index_; 399 int sdp_mline_index_;
400 std::string sdp_; 400 std::string sdp_;
401 }; 401 };
402 402
403 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() 403 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory()
404 : MediaStreamDependencyFactory(NULL, NULL), 404 : MediaStreamDependencyFactory(NULL, NULL, NULL),
405 mock_pc_factory_created_(false) { 405 mock_pc_factory_created_(false) {
406 } 406 }
407 407
408 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} 408 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {}
409 409
410 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { 410 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() {
411 mock_pc_factory_created_ = true; 411 mock_pc_factory_created_ = true;
412 return true; 412 return true;
413 } 413 }
414 414
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 webrtc::IceCandidateInterface* 506 webrtc::IceCandidateInterface*
507 MockMediaStreamDependencyFactory::CreateIceCandidate( 507 MockMediaStreamDependencyFactory::CreateIceCandidate(
508 const std::string& sdp_mid, 508 const std::string& sdp_mid,
509 int sdp_mline_index, 509 int sdp_mline_index,
510 const std::string& sdp) { 510 const std::string& sdp) {
511 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); 511 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp);
512 } 512 }
513 513
514 } // namespace content 514 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698