OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_path.h" | 8 #include "base/files/file_path.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/foundation_util.h" | 11 #include "base/mac/foundation_util.h" |
12 #include "base/mac/sdk_forward_declarations.h" | 12 #include "base/mac/sdk_forward_declarations.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "components/storage_monitor/image_capture_device.h" | 15 #include "components/storage_monitor/image_capture_device.h" |
16 #include "components/storage_monitor/image_capture_device_manager.h" | 16 #include "components/storage_monitor/image_capture_device_manager.h" |
17 #include "components/storage_monitor/test_storage_monitor.h" | 17 #include "components/storage_monitor/test_storage_monitor.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/test/test_browser_thread_bundle.h" | 19 #include "content/public/test/test_browser_thread_bundle.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 char file_contents[5]; | 417 char file_contents[5]; |
418 ASSERT_EQ(4, base::ReadFile(temp_file, file_contents, | 418 ASSERT_EQ(4, base::ReadFile(temp_file, file_contents, |
419 strlen(kTestFileContents))); | 419 strlen(kTestFileContents))); |
420 EXPECT_EQ(kTestFileContents, | 420 EXPECT_EQ(kTestFileContents, |
421 std::string(file_contents, strlen(kTestFileContents))); | 421 std::string(file_contents, strlen(kTestFileContents))); |
422 | 422 |
423 [camera didRemoveDevice:device]; | 423 [camera didRemoveDevice:device]; |
424 } | 424 } |
425 | 425 |
426 } // namespace storage_monitor | 426 } // namespace storage_monitor |
OLD | NEW |