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

Unified Diff: components/filesystem/directory_impl_unittest.cc

Issue 2604843002: Fix crash in DirectoryImpl::Flush() (Closed)
Patch Set: Created 4 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 | « components/filesystem/directory_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/directory_impl_unittest.cc
diff --git a/components/filesystem/directory_impl_unittest.cc b/components/filesystem/directory_impl_unittest.cc
index 250c6de2e1932906034ffc5413389409705f98ab..771749704782693554407a40b3417d8f1ae6a204 100644
--- a/components/filesystem/directory_impl_unittest.cc
+++ b/components/filesystem/directory_impl_unittest.cc
@@ -276,6 +276,18 @@ TEST_F(DirectoryImplTest, CantWriteFileOnADirectory) {
}
}
+TEST_F(DirectoryImplTest, Flush) {
+ mojom::DirectoryPtr directory;
+ GetTemporaryRoot(&directory);
+ mojom::FileError error;
+
+ {
+ bool handled = directory->Flush(&error);
+ ASSERT_TRUE(handled);
+ EXPECT_EQ(mojom::FileError::OK, error);
+ }
+}
+
// TODO(vtl): Test delete flags.
} // namespace
« no previous file with comments | « components/filesystem/directory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698