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

Unified Diff: cc/test/test_now_source.h

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/ordered_simple_task_runner.cc ('k') | cc/test/test_now_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_now_source.h
diff --git a/cc/test/test_now_source.h b/cc/test/test_now_source.h
index 54e5a28494bf52c814d6dcab32f6bfa391d32346..9b46bbe70f1d42ef7be6a7bd3a30ca4093216056 100644
--- a/cc/test/test_now_source.h
+++ b/cc/test/test_now_source.h
@@ -37,6 +37,8 @@ class TestNowSource : public base::RefCounted<TestNowSource> {
void AsValueInto(base::trace_event::TracedValue* state) const;
std::string ToString() const;
+ int NumNowCalls() const { return num_now_calls_; }
+
protected:
TestNowSource();
explicit TestNowSource(int64_t initial);
@@ -44,6 +46,7 @@ class TestNowSource : public base::RefCounted<TestNowSource> {
base::TimeTicks initial_;
base::TimeTicks now_;
+ mutable int num_now_calls_;
private:
friend class base::RefCounted<TestNowSource>;
« no previous file with comments | « cc/test/ordered_simple_task_runner.cc ('k') | cc/test/test_now_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698