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" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 new TestIPhotoFileUtil(media_path_filter_.get(), | 207 new TestIPhotoFileUtil(media_path_filter_.get(), |
208 iphoto_data_provider_.get()))); | 208 iphoto_data_provider_.get()))); |
209 | 209 |
210 file_system_context_ = new fileapi::FileSystemContext( | 210 file_system_context_ = new fileapi::FileSystemContext( |
211 base::MessageLoopProxy::current().get(), | 211 base::MessageLoopProxy::current().get(), |
212 base::MessageLoopProxy::current().get(), | 212 base::MessageLoopProxy::current().get(), |
213 fileapi::ExternalMountPoints::CreateRefCounted().get(), | 213 fileapi::ExternalMountPoints::CreateRefCounted().get(), |
214 storage_policy.get(), | 214 storage_policy.get(), |
215 NULL, | 215 NULL, |
216 additional_providers.Pass(), | 216 additional_providers.Pass(), |
217 std::vector<fileapi::URLRequestAutoMountHandler>(), | |
218 profile_dir_.path(), | 217 profile_dir_.path(), |
219 content::CreateAllowFileAccessOptions()); | 218 content::CreateAllowFileAccessOptions()); |
220 } | 219 } |
221 | 220 |
222 protected: | 221 protected: |
223 void TestNonexistentFolder(const std::string& path_append) { | 222 void TestNonexistentFolder(const std::string& path_append) { |
224 FileSystemOperation::FileEntryList contents; | 223 FileSystemOperation::FileEntryList contents; |
225 FileSystemURL url = CreateURL(path_append); | 224 FileSystemURL url = CreateURL(path_append); |
226 bool completed = false; | 225 bool completed = false; |
227 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 226 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 completed = false; | 337 completed = false; |
339 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 338 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
340 ASSERT_TRUE(completed); | 339 ASSERT_TRUE(completed); |
341 ASSERT_EQ(1u, contents.size()); | 340 ASSERT_EQ(1u, contents.size()); |
342 | 341 |
343 EXPECT_FALSE(contents.front().is_directory); | 342 EXPECT_FALSE(contents.front().is_directory); |
344 EXPECT_EQ("a.jpg", contents.front().name); | 343 EXPECT_EQ("a.jpg", contents.front().name); |
345 } | 344 } |
346 | 345 |
347 } // namespace iphoto | 346 } // namespace iphoto |
OLD | NEW |