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

Unified Diff: chrome/browser/notifications/extension_welcome_notification_unittest.cc

Issue 2335153002: Use TestSimpleTaskRunner::NumPendingTasks instead of GetPendingTasks().size() (Closed)
Patch Set: rebase Created 4 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/task/cancelable_task_tracker_unittest.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/extension_welcome_notification_unittest.cc
diff --git a/chrome/browser/notifications/extension_welcome_notification_unittest.cc b/chrome/browser/notifications/extension_welcome_notification_unittest.cc
index 44a5c8bcf74f00713350d61100847bb87fb0e2e0..1feb4c318635c9adda84d00b703bb45be350556a 100644
--- a/chrome/browser/notifications/extension_welcome_notification_unittest.cc
+++ b/chrome/browser/notifications/extension_welcome_notification_unittest.cc
@@ -482,7 +482,7 @@ TEST_F(ExtensionWelcomeNotificationTest, TimeExpiredNotification) {
base::TimeDelta::FromDays(
ExtensionWelcomeNotification::kRequestedShowTimeDays);
- EXPECT_EQ(task_runner()->GetPendingTasks().size(), 1U);
+ EXPECT_EQ(task_runner()->NumPendingTasks(), 1U);
EXPECT_EQ(task_runner()->NextPendingTaskDelay(), requested_show_time);
EXPECT_EQ(message_center()->add_notification_calls(), 1);
« no previous file with comments | « base/task/cancelable_task_tracker_unittest.cc ('k') | extensions/common/one_shot_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698