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

Side by Side Diff: webrtc/stats/rtcstatsreport.cc

Issue 2514553003: Change rtc::TimeNanos and rtc::TimeMicros return value from uint64_t to int64_t. (Closed)
Patch Set: Rebased, on top of fixed BoringSSL TimeCallback.' Created 4 years 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
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const RTCStatsReport::ConstIterator& other) const { 50 const RTCStatsReport::ConstIterator& other) const {
51 return it_ == other.it_; 51 return it_ == other.it_;
52 } 52 }
53 53
54 bool RTCStatsReport::ConstIterator::operator!=( 54 bool RTCStatsReport::ConstIterator::operator!=(
55 const RTCStatsReport::ConstIterator& other) const { 55 const RTCStatsReport::ConstIterator& other) const {
56 return !(*this == other); 56 return !(*this == other);
57 } 57 }
58 58
59 rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Create( 59 rtc::scoped_refptr<RTCStatsReport> RTCStatsReport::Create(
60 uint64_t timestamp_us) { 60 int64_t timestamp_us) {
61 return rtc::scoped_refptr<RTCStatsReport>( 61 return rtc::scoped_refptr<RTCStatsReport>(
62 new rtc::RefCountedObject<RTCStatsReport>(timestamp_us)); 62 new rtc::RefCountedObject<RTCStatsReport>(timestamp_us));
63 } 63 }
64 64
65 RTCStatsReport::RTCStatsReport(uint64_t timestamp_us) 65 RTCStatsReport::RTCStatsReport(int64_t timestamp_us)
66 : timestamp_us_(timestamp_us) { 66 : timestamp_us_(timestamp_us) {
67 } 67 }
68 68
69 RTCStatsReport::~RTCStatsReport() { 69 RTCStatsReport::~RTCStatsReport() {
70 } 70 }
71 71
72 bool RTCStatsReport::AddStats(std::unique_ptr<const RTCStats> stats) { 72 bool RTCStatsReport::AddStats(std::unique_ptr<const RTCStats> stats) {
73 return !stats_.insert(std::make_pair(std::string(stats->id()), 73 return !stats_.insert(std::make_pair(std::string(stats->id()),
74 std::move(stats))).second; 74 std::move(stats))).second;
75 } 75 }
(...skipping 30 matching lines...) Expand all
106 if (it != end()) { 106 if (it != end()) {
107 oss << it->ToString(); 107 oss << it->ToString();
108 for (++it; it != end(); ++it) { 108 for (++it; it != end(); ++it) {
109 oss << '\n' << it->ToString(); 109 oss << '\n' << it->ToString();
110 } 110 }
111 } 111 }
112 return oss.str(); 112 return oss.str();
113 } 113 }
114 114
115 } // namespace webrtc 115 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698