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

Unified Diff: chrome/common/important_file_writer_unittest.cc

Issue 8873032: Removing MessageLoop::QuitTask() from chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert 3 more problematic files Created 9 years 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/webdata/web_data_service_unittest.cc ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/important_file_writer_unittest.cc
diff --git a/chrome/common/important_file_writer_unittest.cc b/chrome/common/important_file_writer_unittest.cc
index 37012d7ed70f22833a012efb632801dce8e54739..9326cd967a9532a5a2d3204babf2e4b964a8bea2 100644
--- a/chrome/common/important_file_writer_unittest.cc
+++ b/chrome/common/important_file_writer_unittest.cc
@@ -76,7 +76,7 @@ TEST_F(ImportantFileWriterTest, ScheduleWrite) {
writer.ScheduleWrite(&serializer);
EXPECT_TRUE(writer.HasPendingWrite());
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- new MessageLoop::QuitTask(), 100);
+ MessageLoop::QuitClosure(), 100);
MessageLoop::current()->Run();
EXPECT_FALSE(writer.HasPendingWrite());
ASSERT_TRUE(file_util::PathExists(writer.path()));
@@ -92,7 +92,7 @@ TEST_F(ImportantFileWriterTest, DoScheduledWrite) {
EXPECT_TRUE(writer.HasPendingWrite());
writer.DoScheduledWrite();
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- new MessageLoop::QuitTask(), 100);
+ MessageLoop::QuitClosure(), 100);
MessageLoop::current()->Run();
EXPECT_FALSE(writer.HasPendingWrite());
ASSERT_TRUE(file_util::PathExists(writer.path()));
@@ -108,7 +108,7 @@ TEST_F(ImportantFileWriterTest, BatchingWrites) {
writer.ScheduleWrite(&bar);
writer.ScheduleWrite(&baz);
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- new MessageLoop::QuitTask(), 100);
+ MessageLoop::QuitClosure(), 100);
MessageLoop::current()->Run();
ASSERT_TRUE(file_util::PathExists(writer.path()));
EXPECT_EQ("baz", GetFileContent(writer.path()));
« no previous file with comments | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/common/service_process_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698