Index: base/files/important_file_writer_unittest.cc |
diff --git a/base/files/important_file_writer_unittest.cc b/base/files/important_file_writer_unittest.cc |
index d376cdc35ab33cd2491bb69c114f4981ad3eabf1..71900c93d5e7c63326b6b96fb5e852c0a1e92afc 100644 |
--- a/base/files/important_file_writer_unittest.cc |
+++ b/base/files/important_file_writer_unittest.cc |
@@ -145,8 +145,9 @@ TEST_F(ImportantFileWriterTest, BasicWithSuccessfulWriteObserver) { |
} |
TEST_F(ImportantFileWriterTest, ScheduleWrite) { |
- ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); |
- writer.set_commit_interval(TimeDelta::FromMilliseconds(25)); |
+ ImportantFileWriter writer(file_, |
+ ThreadTaskRunnerHandle::Get(), |
+ TimeDelta::FromMilliseconds(25)); |
EXPECT_FALSE(writer.HasPendingWrite()); |
DataSerializer serializer("foo"); |
writer.ScheduleWrite(&serializer); |
@@ -177,8 +178,9 @@ TEST_F(ImportantFileWriterTest, DoScheduledWrite) { |
} |
TEST_F(ImportantFileWriterTest, BatchingWrites) { |
- ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); |
- writer.set_commit_interval(TimeDelta::FromMilliseconds(25)); |
+ ImportantFileWriter writer(file_, |
+ ThreadTaskRunnerHandle::Get(), |
+ TimeDelta::FromMilliseconds(25)); |
DataSerializer foo("foo"), bar("bar"), baz("baz"); |
writer.ScheduleWrite(&foo); |
writer.ScheduleWrite(&bar); |