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

Unified Diff: chrome/browser/after_startup_task_utils_unittest.cc

Issue 1456703003: AfterStartupTask: Use ForTesting() method rather than friends. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « chrome/browser/after_startup_task_utils.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/after_startup_task_utils_unittest.cc
diff --git a/chrome/browser/after_startup_task_utils_unittest.cc b/chrome/browser/after_startup_task_utils_unittest.cc
index adc5dba47a880a4c345062ed143f3753afce2eb8..5d51db4c07a47575bbac8efc9ad775b8726c8704 100644
--- a/chrome/browser/after_startup_task_utils_unittest.cc
+++ b/chrome/browser/after_startup_task_utils_unittest.cc
@@ -139,7 +139,7 @@ TEST_F(AfterStartupTaskTest, IsStartupComplete) {
// the DCHECK in CancellationFlag::Set().
EXPECT_FALSE(GetIsBrowserStartupCompleteFromDBThread());
EXPECT_FALSE(AfterStartupTaskUtils::IsBrowserStartupComplete());
- AfterStartupTaskUtils::SetBrowserStartupIsComplete();
+ AfterStartupTaskUtils::SetBrowserStartupIsCompleteForTesting();
EXPECT_TRUE(AfterStartupTaskUtils::IsBrowserStartupComplete());
EXPECT_TRUE(GetIsBrowserStartupCompleteFromDBThread());
}
@@ -167,7 +167,7 @@ TEST_F(AfterStartupTaskTest, PostTask) {
EXPECT_EQ(0, db_thread_->total_task_count() + ui_thread_->total_task_count());
// Queued tasks should be posted upon setting the flag.
- AfterStartupTaskUtils::SetBrowserStartupIsComplete();
+ AfterStartupTaskUtils::SetBrowserStartupIsCompleteForTesting();
EXPECT_EQ(2, db_thread_->posted_task_count());
EXPECT_EQ(2, ui_thread_->posted_task_count());
FlushDBThread();
« no previous file with comments | « chrome/browser/after_startup_task_utils.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698