| 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/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" | 24 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.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/test_browser_thread.h" | 28 #include "content/public/test/test_browser_thread.h" |
| 29 #include "content/public/test/test_file_system_options.h" | 29 #include "content/public/test/test_file_system_options.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 #include "webkit/browser/fileapi/async_file_util.h" | 31 #include "webkit/browser/fileapi/async_file_util.h" |
| 32 #include "webkit/browser/fileapi/external_mount_points.h" | 32 #include "webkit/browser/fileapi/external_mount_points.h" |
| 33 #include "webkit/browser/fileapi/file_system_context.h" | 33 #include "webkit/browser/fileapi/file_system_context.h" |
| 34 #include "webkit/browser/fileapi/file_system_file_util.h" | |
| 35 #include "webkit/browser/fileapi/file_system_operation_context.h" | 34 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 36 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 35 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
| 37 #include "webkit/browser/fileapi/isolated_context.h" | 36 #include "webkit/browser/fileapi/isolated_context.h" |
| 38 #include "webkit/browser/quota/mock_special_storage_policy.h" | 37 #include "webkit/browser/quota/mock_special_storage_policy.h" |
| 39 #include "webkit/common/blob/shareable_file_reference.h" | 38 #include "webkit/common/blob/shareable_file_reference.h" |
| 40 | 39 |
| 41 using fileapi::FileSystemFileUtil; | |
| 42 using fileapi::FileSystemOperationContext; | 40 using fileapi::FileSystemOperationContext; |
| 43 using fileapi::FileSystemOperation; | 41 using fileapi::FileSystemOperation; |
| 44 using fileapi::FileSystemURL; | 42 using fileapi::FileSystemURL; |
| 45 | 43 |
| 46 namespace picasa { | 44 namespace picasa { |
| 47 | 45 |
| 48 namespace { | 46 namespace { |
| 49 | 47 |
| 50 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 }; |
| 51 | 49 |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 operation_runner()->CreateSnapshotFile( | 587 operation_runner()->CreateSnapshotFile( |
| 590 CreateURL(std::string(kPicasaDirAlbums) + | 588 CreateURL(std::string(kPicasaDirAlbums) + |
| 591 "/albumname 2013-04-16/mapped_name.jpg"), | 589 "/albumname 2013-04-16/mapped_name.jpg"), |
| 592 snapshot_callback); | 590 snapshot_callback); |
| 593 loop.Run(); | 591 loop.Run(); |
| 594 EXPECT_EQ(base::PLATFORM_FILE_OK, error); | 592 EXPECT_EQ(base::PLATFORM_FILE_OK, error); |
| 595 EXPECT_EQ(image_path, platform_path_result); | 593 EXPECT_EQ(image_path, platform_path_result); |
| 596 } | 594 } |
| 597 | 595 |
| 598 } // namespace picasa | 596 } // namespace picasa |
| OLD | NEW |