| Index: chrome/browser/extensions/api/image_writer_private/operation_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/image_writer_private/operation_unittest.cc b/chrome/browser/extensions/api/image_writer_private/operation_unittest.cc
|
| index d835836318cb2d46eed716fdf8d57a2cebaeb259..dfae3f1bd0c798b6d08c5660a93ad604dd6a8ea0 100644
|
| --- a/chrome/browser/extensions/api/image_writer_private/operation_unittest.cc
|
| +++ b/chrome/browser/extensions/api/image_writer_private/operation_unittest.cc
|
| @@ -89,10 +89,11 @@ class ImageWriterOperationTest : public ImageWriterUnitTestBase {
|
|
|
| } // namespace
|
|
|
| -#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
| +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN)
|
| // Tests a successful unzip.
|
| TEST_F(ImageWriterOperationTest, Unzip) {
|
| - MockOperationManager manager;
|
| + base::RunLoop loop;
|
| + QuittingMockManager manager(loop.QuitClosure());
|
|
|
| scoped_refptr<OperationForTest> operation(
|
| new OperationForTest(manager.AsWeakPtr(),
|
| @@ -128,9 +129,9 @@ TEST_F(ImageWriterOperationTest, Unzip) {
|
| operation,
|
| base::Passed(&zip_file)));
|
|
|
| - base::RunLoop().RunUntilIdle();
|
| + loop.Run();
|
|
|
| - EXPECT_TRUE(base::ContentsEqual(image_file_, test_device_path_));
|
| + EXPECT_TRUE(ImageWrittenToDevice(image_file_, test_device_path_));
|
| }
|
| #endif
|
|
|
|
|