Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: chrome/browser/media_galleries/fileapi/itunes_file_util_unittest.cc

Issue 195923002: Add mechanism to auto mount file systems in response to a URL request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix CrOS Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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>(),
185 profile_dir_.path(), 186 profile_dir_.path(),
186 content::CreateAllowFileAccessOptions()); 187 content::CreateAllowFileAccessOptions());
187 } 188 }
188 189
189 protected: 190 protected:
190 void TestNonexistentFolder(const std::string& path_append) { 191 void TestNonexistentFolder(const std::string& path_append) {
191 FileSystemOperation::FileEntryList contents; 192 FileSystemOperation::FileEntryList contents;
192 FileSystemURL url = CreateURL(path_append); 193 FileSystemURL url = CreateURL(path_append);
193 bool completed = false; 194 bool completed = false;
194 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); 195 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 completed = false; 336 completed = false;
336 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed); 337 ReadDirectoryTestHelper(operation_runner(), url, &contents, &completed);
337 ASSERT_TRUE(completed); 338 ASSERT_TRUE(completed);
338 ASSERT_EQ(1u, contents.size()); 339 ASSERT_EQ(1u, contents.size());
339 EXPECT_FALSE(contents.front().is_directory); 340 EXPECT_FALSE(contents.front().is_directory);
340 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(), 341 EXPECT_EQ(base::FilePath().AppendASCII("baz.ogg").value(),
341 contents.front().name); 342 contents.front().name);
342 } 343 }
343 344
344 } // namespace itunes 345 } // namespace itunes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698