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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 profile_dir_.path(), | 217 profile_dir_.path(), |
218 fileapi::CreateAllowFileAccessOptions()); | 218 content::CreateAllowFileAccessOptions()); |
219 } | 219 } |
220 | 220 |
221 protected: | 221 protected: |
222 void TestNonexistentFolder(const std::string& path_append) { | 222 void TestNonexistentFolder(const std::string& path_append) { |
223 FileSystemOperation::FileEntryList contents; | 223 FileSystemOperation::FileEntryList contents; |
224 FileSystemURL url = CreateURL(path_append); | 224 FileSystemURL url = CreateURL(path_append); |
225 bool completed = false; | 225 bool completed = false; |
226 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 226 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
227 | 227 |
228 ASSERT_FALSE(completed); | 228 ASSERT_FALSE(completed); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 completed = false; | 337 completed = false; |
338 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 338 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
339 ASSERT_TRUE(completed); | 339 ASSERT_TRUE(completed); |
340 ASSERT_EQ(1u, contents.size()); | 340 ASSERT_EQ(1u, contents.size()); |
341 | 341 |
342 EXPECT_FALSE(contents.front().is_directory); | 342 EXPECT_FALSE(contents.front().is_directory); |
343 EXPECT_EQ("a.jpg", contents.front().name); | 343 EXPECT_EQ("a.jpg", contents.front().name); |
344 } | 344 } |
345 | 345 |
346 } // namespace iphoto | 346 } // namespace iphoto |
OLD | NEW |