| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/file_util.h" | 5 #include "base/files/file_util.h" |
| 6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
| 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| 11 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 11 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 12 #include "chrome/browser/extensions/api/image_writer_private/test_utils.h" | 12 #include "chrome/browser/extensions/api/image_writer_private/test_utils.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 #endif | 260 #endif |
| 261 | 261 |
| 262 // Tests that on creation the operation_ has the expected state. | 262 // Tests that on creation the operation_ has the expected state. |
| 263 TEST_F(ImageWriterOperationTest, Creation) { | 263 TEST_F(ImageWriterOperationTest, Creation) { |
| 264 EXPECT_EQ(0, operation_->GetProgress()); | 264 EXPECT_EQ(0, operation_->GetProgress()); |
| 265 EXPECT_EQ(image_writer_api::STAGE_UNKNOWN, operation_->GetStage()); | 265 EXPECT_EQ(image_writer_api::STAGE_UNKNOWN, operation_->GetStage()); |
| 266 } | 266 } |
| 267 | 267 |
| 268 } // namespace image_writer | 268 } // namespace image_writer |
| 269 } // namespace extensions | 269 } // namespace extensions |
| OLD | NEW |