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

Unified Diff: components/scheduler/base/test_count_uses_time_source.cc

Issue 1898233002: Report expected task queueing time via UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix perf test Created 4 years, 5 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
Index: components/scheduler/base/test_count_uses_time_source.cc
diff --git a/components/scheduler/base/test_always_fail_time_source.cc b/components/scheduler/base/test_count_uses_time_source.cc
similarity index 51%
rename from components/scheduler/base/test_always_fail_time_source.cc
rename to components/scheduler/base/test_count_uses_time_source.cc
index 254298453f9d51f22d7179d83276e13cfb3b0b41..58602c60063d9914aaaa6068701296659ce9f614 100644
--- a/components/scheduler/base/test_always_fail_time_source.cc
+++ b/components/scheduler/base/test_count_uses_time_source.cc
@@ -2,19 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/scheduler/base/test_always_fail_time_source.h"
+#include "components/scheduler/base/test_count_uses_time_source.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace scheduler {
-TestAlwaysFailTimeSource::TestAlwaysFailTimeSource() {
-}
+TestCountUsesTimeSource::TestCountUsesTimeSource() : now_calls_count_(0) {}
-TestAlwaysFailTimeSource::~TestAlwaysFailTimeSource() {
+TestCountUsesTimeSource::~TestCountUsesTimeSource() {
}
-base::TimeTicks TestAlwaysFailTimeSource::NowTicks() {
- ADD_FAILURE() << "NowTicks() was called!";
+base::TimeTicks TestCountUsesTimeSource::NowTicks() {
+ now_calls_count_++;
return base::TimeTicks();
}

Powered by Google App Engine
This is Rietveld 408576698