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

Unified Diff: webrtc/base/fakeclock.h

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, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/api/stats/rtcstatsreport.h ('k') | webrtc/base/fakeclock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/fakeclock.h
diff --git a/webrtc/base/fakeclock.h b/webrtc/base/fakeclock.h
index 4aecc54cc4ffee3e894cd4fef97760fce69338e8..7fa101558fc741311e19a1a1ca93abcc056a93df 100644
--- a/webrtc/base/fakeclock.h
+++ b/webrtc/base/fakeclock.h
@@ -26,18 +26,18 @@ class FakeClock : public ClockInterface {
~FakeClock() override {}
// ClockInterface implementation.
- uint64_t TimeNanos() const override;
+ int64_t TimeNanos() const override;
// Methods that can be used by the test to control the time.
// Should only be used to set a time in the future.
- void SetTimeNanos(uint64_t nanos);
+ void SetTimeNanos(int64_t nanos);
void AdvanceTime(TimeDelta delta);
private:
CriticalSection lock_;
- uint64_t time_ GUARDED_BY(lock_) = 0u;
+ int64_t time_ GUARDED_BY(lock_) = 0;
};
// Helper class that sets itself as the global clock in its constructor and
« no previous file with comments | « webrtc/api/stats/rtcstatsreport.h ('k') | webrtc/base/fakeclock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698