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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" | 21 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" |
22 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" | 22 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" |
23 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" | 23 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" |
24 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 24 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
25 #include "chrome/common/media_galleries/picasa_types.h" | 25 #include "chrome/common/media_galleries/picasa_types.h" |
26 #include "chrome/common/media_galleries/pmp_constants.h" | 26 #include "chrome/common/media_galleries/pmp_constants.h" |
27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/test/mock_special_storage_policy.h" | 28 #include "content/public/test/mock_special_storage_policy.h" |
29 #include "content/public/test/test_browser_thread.h" | 29 #include "content/public/test/test_browser_thread.h" |
30 #include "content/public/test/test_file_system_options.h" | 30 #include "content/public/test/test_file_system_options.h" |
| 31 #include "storage/browser/fileapi/async_file_util.h" |
| 32 #include "storage/browser/fileapi/external_mount_points.h" |
| 33 #include "storage/browser/fileapi/file_system_context.h" |
| 34 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 35 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 36 #include "storage/browser/fileapi/isolated_context.h" |
31 #include "storage/common/blob/shareable_file_reference.h" | 37 #include "storage/common/blob/shareable_file_reference.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.h" |
33 #include "webkit/browser/fileapi/async_file_util.h" | |
34 #include "webkit/browser/fileapi/external_mount_points.h" | |
35 #include "webkit/browser/fileapi/file_system_context.h" | |
36 #include "webkit/browser/fileapi/file_system_operation_context.h" | |
37 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
38 #include "webkit/browser/fileapi/isolated_context.h" | |
39 | 39 |
40 using storage::FileSystemOperationContext; | 40 using storage::FileSystemOperationContext; |
41 using storage::FileSystemOperation; | 41 using storage::FileSystemOperation; |
42 using storage::FileSystemURL; | 42 using storage::FileSystemURL; |
43 | 43 |
44 namespace picasa { | 44 namespace picasa { |
45 | 45 |
46 namespace { | 46 namespace { |
47 | 47 |
48 base::Time::Exploded test_date_exploded = { 2013, 4, 0, 16, 0, 0, 0, 0 }; | 48 base::Time::Exploded test_date_exploded = { 2013, 4, 0, 16, 0, 0, 0, 0 }; |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 operation_runner()->CreateSnapshotFile( | 592 operation_runner()->CreateSnapshotFile( |
593 CreateURL(std::string(kPicasaDirAlbums) + | 593 CreateURL(std::string(kPicasaDirAlbums) + |
594 "/albumname 2013-04-16/mapped_name.jpg"), | 594 "/albumname 2013-04-16/mapped_name.jpg"), |
595 snapshot_callback); | 595 snapshot_callback); |
596 loop.Run(); | 596 loop.Run(); |
597 EXPECT_EQ(base::File::FILE_OK, error); | 597 EXPECT_EQ(base::File::FILE_OK, error); |
598 EXPECT_EQ(image_path, platform_path_result); | 598 EXPECT_EQ(image_path, platform_path_result); |
599 } | 599 } |
600 | 600 |
601 } // namespace picasa | 601 } // namespace picasa |
OLD | NEW |