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

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

Issue 329853010: Additional methods for chrome.logPrivate API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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_peer_connection_impl.h" 5 #include "content/renderer/media/mock_peer_connection_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory. h" 10 #include "content/renderer/media/webrtc/mock_peer_connection_dependency_factory. h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 "trackvalue" 279 "trackvalue"
280 }; 280 };
281 report.values.push_back(value); 281 report.values.push_back(value);
282 // If selector is given, we pass back one report. 282 // If selector is given, we pass back one report.
283 // If selector is not given, we pass back two. 283 // If selector is not given, we pass back two.
284 if (!track) { 284 if (!track) {
285 webrtc::StatsReport& report2 = reports[1]; 285 webrtc::StatsReport& report2 = reports[1];
286 report2.id = "nontrack"; 286 report2.id = "nontrack";
287 report2.type = "generic"; 287 report2.type = "generic";
288 report2.timestamp = 44; 288 report2.timestamp = 44;
289 report2.values.push_back(value); 289 report2.values.push_back(value);
290 webrtc::StatsReport::Value value2 = { 290 webrtc::StatsReport::Value value2 = {
291 webrtc::StatsReport::kStatsValueNameFingerprintAlgorithm, 291 webrtc::StatsReport::kStatsValueNameFingerprintAlgorithm,
292 "somevalue" 292 "somevalue"
293 }; 293 };
294 report2.values.push_back(value2); 294 report2.values.push_back(value2);
295 } 295 }
296 // Note that the callback is synchronous, not asynchronous; it will 296 // Note that the callback is synchronous, not asynchronous; it will
297 // happen before the request call completes. 297 // happen before the request call completes.
298 observer->OnComplete(reports); 298 observer->OnComplete(reports);
299 return true; 299 return true;
300 } 300 }
301 301
302 const webrtc::SessionDescriptionInterface* 302 const webrtc::SessionDescriptionInterface*
303 MockPeerConnectionImpl::local_description() const { 303 MockPeerConnectionImpl::local_description() const {
304 return local_desc_.get(); 304 return local_desc_.get();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 sdp_mline_index_ = candidate->sdp_mline_index(); 357 sdp_mline_index_ = candidate->sdp_mline_index();
358 return candidate->ToString(&ice_sdp_); 358 return candidate->ToString(&ice_sdp_);
359 } 359 }
360 360
361 void MockPeerConnectionImpl::RegisterUMAObserver( 361 void MockPeerConnectionImpl::RegisterUMAObserver(
362 webrtc::UMAObserver* observer) { 362 webrtc::UMAObserver* observer) {
363 NOTIMPLEMENTED(); 363 NOTIMPLEMENTED();
364 } 364 }
365 365
366 } // namespace content 366 } // namespace content
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_debug_daemon_client.cc ('k') | extensions/browser/api/api_resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698