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

Unified Diff: base/tracked_objects_unittest.cc

Issue 10071030: Fix timings in TrackedObjects unit test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects_unittest.cc
diff --git a/base/tracked_objects_unittest.cc b/base/tracked_objects_unittest.cc
index f364c2b80af3de09128060e587c927776e63fe14..1e64508030826ab1caee7e0fb9c6dfeee04593bf 100644
--- a/base/tracked_objects_unittest.cc
+++ b/base/tracked_objects_unittest.cc
@@ -157,11 +157,12 @@ TEST_F(TrackedObjectsTest, TinyStartupShutdown) {
// Now instigate another birth, while we are timing the run of the first
// execution.
- TrackedTime start_time = ThreadData::NowForStartOfRun(first_birth);
+ ThreadData::NowForStartOfRun(first_birth);
// Create a child (using the same birth location).
// TrackingInfo will call TallyABirth() during construction.
base::TimeTicks kBogusBirthTime;
base::TrackingInfo pending_task(location, kBogusBirthTime);
+ TrackedTime start_time(pending_task.time_posted);
// Finally conclude the outer run.
TrackedTime end_time = ThreadData::NowForEndOfRun();
ThreadData::TallyRunOnNamedThreadIfTracking(pending_task, start_time,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698