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

Unified Diff: chrome/utility/image_writer/image_writer_unittest.cc

Issue 294163008: Adds USB writing for OS X. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@list-devices
Patch Set: Creates a location for code shared between browser and utility process. Created 6 years, 6 months 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
Index: chrome/utility/image_writer/image_writer_unittest.cc
diff --git a/chrome/utility/image_writer/image_writer_unittest.cc b/chrome/utility/image_writer/image_writer_unittest.cc
index 0cc0c5bc9518119298e583b366aedad910a32312..0df210b7642d0cfb49a383ff1ec39daae34ce423 100644
--- a/chrome/utility/image_writer/image_writer_unittest.cc
+++ b/chrome/utility/image_writer/image_writer_unittest.cc
@@ -227,4 +227,18 @@ TEST_F(ImageWriterUtilityTest, WriteWithVerifySuccessful) {
base::RunLoop().RunUntilIdle();
}
+TEST_F(ImageWriterUtilityTest, UnmountMac) {
+ base::RunLoop loop;
+ const base::Closure quit_closure = loop.QuitClosure();
+
+ VerifyingHandler mock_handler;
+ ImageWriter image_writer(&mock_handler, image_path_, base::FilePath("disk3"));
+
+ mock_handler.image_writer_ = &image_writer;
+
+ image_writer.UnmountVolumes(quit_closure);
+
+ loop.Run();
+}
+
} // namespace image_writer

Powered by Google App Engine
This is Rietveld 408576698