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

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

Issue 206253002: Revert of 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: 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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698