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.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 new TestITunesFileUtil(media_path_filter_.get(), | 175 new TestITunesFileUtil(media_path_filter_.get(), |
176 itunes_data_provider_.get()))); | 176 itunes_data_provider_.get()))); |
177 | 177 |
178 file_system_context_ = new fileapi::FileSystemContext( | 178 file_system_context_ = new fileapi::FileSystemContext( |
179 base::MessageLoopProxy::current().get(), | 179 base::MessageLoopProxy::current().get(), |
180 base::MessageLoopProxy::current().get(), | 180 base::MessageLoopProxy::current().get(), |
181 fileapi::ExternalMountPoints::CreateRefCounted().get(), | 181 fileapi::ExternalMountPoints::CreateRefCounted().get(), |
182 storage_policy.get(), | 182 storage_policy.get(), |
183 NULL, | 183 NULL, |
184 additional_providers.Pass(), | 184 additional_providers.Pass(), |
185 std::vector<fileapi::URLRequestAutoMountHandler>(), | |
186 profile_dir_.path(), | 185 profile_dir_.path(), |
187 content::CreateAllowFileAccessOptions()); | 186 content::CreateAllowFileAccessOptions()); |
188 } | 187 } |
189 | 188 |
190 protected: | 189 protected: |
191 void TestNonexistentFolder(const std::string& path_append) { | 190 void TestNonexistentFolder(const std::string& path_append) { |
192 FileSystemOperation::FileEntryList contents; | 191 FileSystemOperation::FileEntryList contents; |
193 FileSystemURL url = CreateURL(path_append); | 192 FileSystemURL url = CreateURL(path_append); |
194 bool completed = false; | 193 bool completed = false; |
195 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 194 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 completed = false; | 335 completed = false; |
337 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); | 336 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); |
338 ASSERT_TRUE(completed); | 337 ASSERT_TRUE(completed); |
339 ASSERT_EQ(1u, contents.size()); | 338 ASSERT_EQ(1u, contents.size()); |
340 EXPECT_FALSE(contents.front().is_directory); | 339 EXPECT_FALSE(contents.front().is_directory); |
341 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(), | 340 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(), |
342 contents.front().name); | 341 contents.front().name); |
343 } | 342 } |
344 | 343 |
345 } // namespace itunes | 344 } // namespace itunes |
OLD | NEW |