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 <map> | 5 #include <map> |
6 #include <set> | 6 #include <set> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/macros.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
16 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
17 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
19 #include "chrome/browser/media_galleries/fileapi/iphoto_data_provider.h" | 20 #include "chrome/browser/media_galleries/fileapi/iphoto_data_provider.h" |
20 #include "chrome/browser/media_galleries/fileapi/iphoto_file_util.h" | 21 #include "chrome/browser/media_galleries/fileapi/iphoto_file_util.h" |
21 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 22 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
22 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" | 23 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" |
23 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" | 24 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 completed = false; | 345 completed = false; |
345 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 346 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
346 ASSERT_TRUE(completed); | 347 ASSERT_TRUE(completed); |
347 ASSERT_EQ(1u, contents.size()); | 348 ASSERT_EQ(1u, contents.size()); |
348 | 349 |
349 EXPECT_FALSE(contents.front().is_directory); | 350 EXPECT_FALSE(contents.front().is_directory); |
350 EXPECT_EQ("a.jpg", contents.front().name); | 351 EXPECT_EQ("a.jpg", contents.front().name); |
351 } | 352 } |
352 | 353 |
353 } // namespace iphoto | 354 } // namespace iphoto |
OLD | NEW |