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

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

Issue 19534002: Make RendererGpuVideoDecoderFactories live on arbitrary threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 7 years, 5 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/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/webrtc_audio_capturer.h" 10 #include "content/renderer/media/webrtc_audio_capturer.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 return true; 357 return true;
358 } 358 }
359 359
360 private: 360 private:
361 std::string sdp_mid_; 361 std::string sdp_mid_;
362 int sdp_mline_index_; 362 int sdp_mline_index_;
363 std::string sdp_; 363 std::string sdp_;
364 }; 364 };
365 365
366 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory() 366 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory()
367 : MediaStreamDependencyFactory(NULL, NULL), 367 : MediaStreamDependencyFactory(NULL, NULL, NULL),
368 mock_pc_factory_created_(false) { 368 mock_pc_factory_created_(false) {
369 } 369 }
370 370
371 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} 371 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {}
372 372
373 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() { 373 bool MockMediaStreamDependencyFactory::EnsurePeerConnectionFactory() {
374 mock_pc_factory_created_ = true; 374 mock_pc_factory_created_ = true;
375 return true; 375 return true;
376 } 376 }
377 377
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 webrtc::IceCandidateInterface* 469 webrtc::IceCandidateInterface*
470 MockMediaStreamDependencyFactory::CreateIceCandidate( 470 MockMediaStreamDependencyFactory::CreateIceCandidate(
471 const std::string& sdp_mid, 471 const std::string& sdp_mid,
472 int sdp_mline_index, 472 int sdp_mline_index,
473 const std::string& sdp) { 473 const std::string& sdp) {
474 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); 474 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp);
475 } 475 }
476 476
477 } // namespace content 477 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698