Change rtc::TimeNanos and rtc::TimeMicros return value from uint64_t to int64_t.

Also updated types close to call sites.

BUG=webrtc:6733

Review-Url: https://codereview.webrtc.org/2514553003
Cr-Commit-Position: refs/heads/master@{#15255}
This commit is contained in:
nisse
2016-11-28 01:54:54 -08:00
committed by Commit bot
parent 71b9b58a3a
commit deb95f32f4
13 changed files with 46 additions and 45 deletions

View File

@ -52,12 +52,12 @@ class RTCStatsReport : public rtc::RefCountInterface {
// TODO(hbos): Remove "= 0" once Chromium unittest has been updated to call
// with a parameter. crbug.com/627816
static rtc::scoped_refptr<RTCStatsReport> Create(uint64_t timestamp_us = 0);
static rtc::scoped_refptr<RTCStatsReport> Create(int64_t timestamp_us = 0);
explicit RTCStatsReport(uint64_t timestamp_us);
explicit RTCStatsReport(int64_t timestamp_us);
RTCStatsReport(const RTCStatsReport& other) = delete;
uint64_t timestamp_us() const { return timestamp_us_; }
int64_t timestamp_us() const { return timestamp_us_; }
bool AddStats(std::unique_ptr<const RTCStats> stats);
const RTCStats* Get(const std::string& id) const;
size_t size() const { return stats_.size(); }
@ -90,7 +90,7 @@ class RTCStatsReport : public rtc::RefCountInterface {
private:
~RTCStatsReport() override;
uint64_t timestamp_us_;
int64_t timestamp_us_;
StatsMap stats_;
};