| Index: chrome/common/important_file_writer_unittest.cc
|
| ===================================================================
|
| --- chrome/common/important_file_writer_unittest.cc (revision 117824)
|
| +++ chrome/common/important_file_writer_unittest.cc (working copy)
|
| @@ -75,10 +75,8 @@
|
| DataSerializer serializer("foo");
|
| writer.ScheduleWrite(&serializer);
|
| EXPECT_TRUE(writer.HasPendingWrite());
|
| - MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - MessageLoop::QuitClosure(),
|
| - base::TimeDelta::FromMilliseconds(100));
|
| + MessageLoop::current()->PostDelayedTask(FROM_HERE,
|
| + MessageLoop::QuitClosure(), 100);
|
| MessageLoop::current()->Run();
|
| EXPECT_FALSE(writer.HasPendingWrite());
|
| ASSERT_TRUE(file_util::PathExists(writer.path()));
|
| @@ -93,10 +91,8 @@
|
| writer.ScheduleWrite(&serializer);
|
| EXPECT_TRUE(writer.HasPendingWrite());
|
| writer.DoScheduledWrite();
|
| - MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - MessageLoop::QuitClosure(),
|
| - base::TimeDelta::FromMilliseconds(100));
|
| + MessageLoop::current()->PostDelayedTask(FROM_HERE,
|
| + MessageLoop::QuitClosure(), 100);
|
| MessageLoop::current()->Run();
|
| EXPECT_FALSE(writer.HasPendingWrite());
|
| ASSERT_TRUE(file_util::PathExists(writer.path()));
|
| @@ -112,10 +108,8 @@
|
| writer.ScheduleWrite(&foo);
|
| writer.ScheduleWrite(&bar);
|
| writer.ScheduleWrite(&baz);
|
| - MessageLoop::current()->PostDelayedTask(
|
| - FROM_HERE,
|
| - MessageLoop::QuitClosure(),
|
| - base::TimeDelta::FromMilliseconds(100));
|
| + MessageLoop::current()->PostDelayedTask(FROM_HERE,
|
| + MessageLoop::QuitClosure(), 100);
|
| MessageLoop::current()->Run();
|
| ASSERT_TRUE(file_util::PathExists(writer.path()));
|
| EXPECT_EQ("baz", GetFileContent(writer.path()));
|
|
|