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

Unified Diff: cc/test/test_now_source.cc

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « cc/test/test_now_source.h ('k') | cc/test/test_task_graph_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_now_source.cc
diff --git a/cc/test/test_now_source.cc b/cc/test/test_now_source.cc
index 0576d06b4fdf8a1765fabc810040024ca2c61455..e1a633f166283fb0592687894a047333e3daf772 100644
--- a/cc/test/test_now_source.cc
+++ b/cc/test/test_now_source.cc
@@ -23,17 +23,21 @@ scoped_refptr<TestNowSource> TestNowSource::Create(int64_t initial) {
}
TestNowSource::TestNowSource()
- : initial_(base::TimeTicks::FromInternalValue(10000)), now_() {
+ : initial_(base::TimeTicks::FromInternalValue(10000)),
+ now_(),
+ num_now_calls_(0) {
Reset();
}
TestNowSource::TestNowSource(base::TimeTicks initial)
- : initial_(initial), now_() {
+ : initial_(initial), now_(), num_now_calls_(0) {
Reset();
}
TestNowSource::TestNowSource(int64_t initial)
- : initial_(base::TimeTicks::FromInternalValue(initial)), now_() {
+ : initial_(base::TimeTicks::FromInternalValue(initial)),
+ now_(),
+ num_now_calls_(0) {
Reset();
}
@@ -53,6 +57,7 @@ void TestNowSource::Reset() {
}
base::TimeTicks TestNowSource::Now() const {
+ num_now_calls_++;
return now_;
}
« no previous file with comments | « cc/test/test_now_source.h ('k') | cc/test/test_task_graph_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698