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

Unified Diff: base/tracked_objects_unittest.cc

Issue 483: Eliminate the TimerManager by pulling its priority queue into MessageLoop.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « base/tracked.h ('k') | base/worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects_unittest.cc
===================================================================
--- base/tracked_objects_unittest.cc (revision 1824)
+++ base/tracked_objects_unittest.cc (working copy)
@@ -51,17 +51,15 @@
ThreadData::ShutdownSingleThreadedCleanup();
}
-class NoopTask : public Task {
- public:
- void Run() {}
+class NoopTracked : public tracked_objects::Tracked {
};
TEST_F(TrackedObjectsTest, TinyStartupShutdown) {
if (!ThreadData::StartTracking(true))
return;
- // Instigate tracking on a single task, or our thread.
- NoopTask task;
+ // Instigate tracking on a single tracked object, or our thread.
+ NoopTracked tracked;
const ThreadData* data = ThreadData::first();
EXPECT_TRUE(data);
@@ -77,7 +75,7 @@
// Now instigate a birth, and a death.
- delete new NoopTask;
+ delete new NoopTracked;
birth_map.clear();
data->SnapshotBirthMap(&birth_map);
« no previous file with comments | « base/tracked.h ('k') | base/worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698