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" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
17 #include "base/platform_file.h" | |
18 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
19 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
20 #include "base/time/time.h" | 19 #include "base/time/time.h" |
21 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 20 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
22 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" | 21 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" |
23 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" | 22 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" |
24 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" | 23 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h" |
25 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 24 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
26 #include "chrome/common/media_galleries/picasa_types.h" | 25 #include "chrome/common/media_galleries/picasa_types.h" |
27 #include "chrome/common/media_galleries/pmp_constants.h" | 26 #include "chrome/common/media_galleries/pmp_constants.h" |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 operation_runner()->CreateSnapshotFile( | 591 operation_runner()->CreateSnapshotFile( |
593 CreateURL(std::string(kPicasaDirAlbums) + | 592 CreateURL(std::string(kPicasaDirAlbums) + |
594 "/albumname 2013-04-16/mapped_name.jpg"), | 593 "/albumname 2013-04-16/mapped_name.jpg"), |
595 snapshot_callback); | 594 snapshot_callback); |
596 loop.Run(); | 595 loop.Run(); |
597 EXPECT_EQ(base::File::FILE_OK, error); | 596 EXPECT_EQ(base::File::FILE_OK, error); |
598 EXPECT_EQ(image_path, platform_path_result); | 597 EXPECT_EQ(image_path, platform_path_result); |
599 } | 598 } |
600 | 599 |
601 } // namespace picasa | 600 } // namespace picasa |
OLD | NEW |