| 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 "chrome/browser/media_galleries/fileapi/picasa_file_util.h" | 5 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
| 26 #include "base/threading/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
| 27 #include "base/time/time.h" | 27 #include "base/time/time.h" |
| 28 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 28 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 29 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" | 29 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" |
| 30 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" | 30 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" |
| 31 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 31 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
| 32 #include "chrome/common/media_galleries/picasa_types.h" | 32 #include "chrome/common/media_galleries/picasa_types.h" |
| 33 #include "chrome/common/media_galleries/pmp_constants.h" | 33 #include "chrome/common/media_galleries/pmp_constants.h" |
| 34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
| 35 #include "content/public/test/mock_special_storage_policy.h" | |
| 36 #include "content/public/test/test_browser_thread.h" | 35 #include "content/public/test/test_browser_thread.h" |
| 37 #include "content/public/test/test_file_system_options.h" | |
| 38 #include "storage/browser/blob/shareable_file_reference.h" | 36 #include "storage/browser/blob/shareable_file_reference.h" |
| 39 #include "storage/browser/fileapi/async_file_util.h" | 37 #include "storage/browser/fileapi/async_file_util.h" |
| 40 #include "storage/browser/fileapi/external_mount_points.h" | 38 #include "storage/browser/fileapi/external_mount_points.h" |
| 41 #include "storage/browser/fileapi/file_system_context.h" | 39 #include "storage/browser/fileapi/file_system_context.h" |
| 42 #include "storage/browser/fileapi/file_system_operation_context.h" | 40 #include "storage/browser/fileapi/file_system_operation_context.h" |
| 43 #include "storage/browser/fileapi/file_system_operation_runner.h" | 41 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 44 #include "storage/browser/fileapi/isolated_context.h" | 42 #include "storage/browser/fileapi/isolated_context.h" |
| 43 #include "storage/browser/test/mock_special_storage_policy.h" |
| 44 #include "storage/browser/test/test_file_system_options.h" |
| 45 #include "testing/gtest/include/gtest/gtest.h" | 45 #include "testing/gtest/include/gtest/gtest.h" |
| 46 | 46 |
| 47 using storage::FileSystemOperationContext; | 47 using storage::FileSystemOperationContext; |
| 48 using storage::FileSystemOperation; | 48 using storage::FileSystemOperation; |
| 49 using storage::FileSystemURL; | 49 using storage::FileSystemURL; |
| 50 | 50 |
| 51 namespace picasa { | 51 namespace picasa { |
| 52 | 52 |
| 53 namespace { | 53 namespace { |
| 54 | 54 |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 operation_runner()->CreateSnapshotFile( | 593 operation_runner()->CreateSnapshotFile( |
| 594 CreateURL(std::string(kPicasaDirAlbums) + | 594 CreateURL(std::string(kPicasaDirAlbums) + |
| 595 "/albumname 2013-04-16/mapped_name.jpg"), | 595 "/albumname 2013-04-16/mapped_name.jpg"), |
| 596 snapshot_callback); | 596 snapshot_callback); |
| 597 loop.Run(); | 597 loop.Run(); |
| 598 EXPECT_EQ(base::File::FILE_OK, error); | 598 EXPECT_EQ(base::File::FILE_OK, error); |
| 599 EXPECT_EQ(image_path, platform_path_result); | 599 EXPECT_EQ(image_path, platform_path_result); |
| 600 } | 600 } |
| 601 | 601 |
| 602 } // namespace picasa | 602 } // namespace picasa |
| OLD | NEW |