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

Unified Diff: webrtc/base/fakeclock.h

Issue 2680233002: Use fake clock in some more networks tests. (Closed)
Patch Set: Use a different fake clock thing. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/base/gunit.h » ('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 eb78cf864de57b6267948c0c4e7dc83fc3ac0d13..fcdfc0bc2575fc24e5a37213ee0e64cd4ecf463f 100644
--- a/webrtc/base/fakeclock.h
+++ b/webrtc/base/fakeclock.h
@@ -56,6 +56,16 @@ class ScopedFakeClock : public FakeClock {
ClockInterface* prev_clock_;
};
+// Helper class to "undo" the fake clock temporarily.
+class ScopedRealClock {
+ public:
+ ScopedRealClock();
+ ~ScopedRealClock();
+
+ private:
+ ClockInterface* prev_clock_;
+};
+
} // namespace rtc
#endif // WEBRTC_BASE_FAKECLOCK_H_
« no previous file with comments | « no previous file | webrtc/base/gunit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698