OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 #import <ImageCaptureCore/ImageCaptureCore.h> | 6 #import <ImageCaptureCore/ImageCaptureCore.h> |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/mac/cocoa_protocols.h" | 11 #include "base/mac/cocoa_protocols.h" |
12 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
13 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
14 #include "base/mac/sdk_forward_declarations.h" | 14 #include "base/mac/sdk_forward_declarations.h" |
| 15 #include "base/macros.h" |
15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
16 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
17 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
18 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
19 #include "base/test/sequenced_worker_pool_owner.h" | 20 #include "base/test/sequenced_worker_pool_owner.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 21 #include "base/threading/sequenced_worker_pool.h" |
21 #include "chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h" | 22 #include "chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h" |
22 #include "components/storage_monitor/image_capture_device_manager.h" | 23 #include "components/storage_monitor/image_capture_device_manager.h" |
23 #include "components/storage_monitor/test_storage_monitor.h" | 24 #include "components/storage_monitor/test_storage_monitor.h" |
24 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 temp_dir_.path().Append("target"))); | 544 temp_dir_.path().Append("target"))); |
544 | 545 |
545 EXPECT_EQ(base::File::FILE_OK, | 546 EXPECT_EQ(base::File::FILE_OK, |
546 DownloadFile(base::FilePath("/ic:id/filename"), | 547 DownloadFile(base::FilePath("/ic:id/filename"), |
547 temp_dir_.path().Append("target"))); | 548 temp_dir_.path().Append("target"))); |
548 std::string contents; | 549 std::string contents; |
549 EXPECT_TRUE(base::ReadFileToString(temp_dir_.path().Append("target"), | 550 EXPECT_TRUE(base::ReadFileToString(temp_dir_.path().Append("target"), |
550 &contents)); | 551 &contents)); |
551 EXPECT_EQ(kTestFileContents, contents); | 552 EXPECT_EQ(kTestFileContents, contents); |
552 } | 553 } |
OLD | NEW |