| 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/file_util.h" | |
| 9 #include "base/files/file.h" | 8 #include "base/files/file.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/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
| 18 #include "base/synchronization/waitable_event.h" | 18 #include "base/synchronization/waitable_event.h" |
| 19 #include "base/test/sequenced_worker_pool_owner.h" | 19 #include "base/test/sequenced_worker_pool_owner.h" |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 temp_dir_.path().Append("target"))); | 543 temp_dir_.path().Append("target"))); |
| 544 | 544 |
| 545 EXPECT_EQ(base::File::FILE_OK, | 545 EXPECT_EQ(base::File::FILE_OK, |
| 546 DownloadFile(base::FilePath("/ic:id/filename"), | 546 DownloadFile(base::FilePath("/ic:id/filename"), |
| 547 temp_dir_.path().Append("target"))); | 547 temp_dir_.path().Append("target"))); |
| 548 std::string contents; | 548 std::string contents; |
| 549 EXPECT_TRUE(base::ReadFileToString(temp_dir_.path().Append("target"), | 549 EXPECT_TRUE(base::ReadFileToString(temp_dir_.path().Append("target"), |
| 550 &contents)); | 550 &contents)); |
| 551 EXPECT_EQ(kTestFileContents, contents); | 551 EXPECT_EQ(kTestFileContents, contents); |
| 552 } | 552 } |
| OLD | NEW |