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/blob/shareable_file_reference.h" |
31 #include "storage/browser/fileapi/async_file_util.h" | 32 #include "storage/browser/fileapi/async_file_util.h" |
32 #include "storage/browser/fileapi/external_mount_points.h" | 33 #include "storage/browser/fileapi/external_mount_points.h" |
33 #include "storage/browser/fileapi/file_system_context.h" | 34 #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_context.h" |
35 #include "storage/browser/fileapi/file_system_operation_runner.h" | 36 #include "storage/browser/fileapi/file_system_operation_runner.h" |
36 #include "storage/browser/fileapi/isolated_context.h" | 37 #include "storage/browser/fileapi/isolated_context.h" |
37 #include "storage/common/blob/shareable_file_reference.h" | |
38 #include "testing/gtest/include/gtest/gtest.h" | 38 #include "testing/gtest/include/gtest/gtest.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 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 operation_runner()->CreateSnapshotFile( | 590 operation_runner()->CreateSnapshotFile( |
591 CreateURL(std::string(kPicasaDirAlbums) + | 591 CreateURL(std::string(kPicasaDirAlbums) + |
592 "/albumname 2013-04-16/mapped_name.jpg"), | 592 "/albumname 2013-04-16/mapped_name.jpg"), |
593 snapshot_callback); | 593 snapshot_callback); |
594 loop.Run(); | 594 loop.Run(); |
595 EXPECT_EQ(base::File::FILE_OK, error); | 595 EXPECT_EQ(base::File::FILE_OK, error); |
596 EXPECT_EQ(image_path, platform_path_result); | 596 EXPECT_EQ(image_path, platform_path_result); |
597 } | 597 } |
598 | 598 |
599 } // namespace picasa | 599 } // namespace picasa |
OLD | NEW |