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

Side by Side Diff: content/browser/fileapi/obfuscated_file_util_unittest.cc

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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/file_util.h" 10 #include "base/file_util.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 new SandboxFileSystemTestHelper(origin, type); 229 new SandboxFileSystemTestHelper(origin, type);
230 230
231 file_system->SetUp(file_system_context_.get()); 231 file_system->SetUp(file_system_context_.get());
232 return file_system; 232 return file_system;
233 } 233 }
234 234
235 scoped_ptr<ObfuscatedFileUtil> CreateObfuscatedFileUtil( 235 scoped_ptr<ObfuscatedFileUtil> CreateObfuscatedFileUtil(
236 quota::SpecialStoragePolicy* storage_policy) { 236 quota::SpecialStoragePolicy* storage_policy) {
237 return scoped_ptr<ObfuscatedFileUtil>( 237 return scoped_ptr<ObfuscatedFileUtil>(
238 ObfuscatedFileUtil::CreateForTesting( 238 ObfuscatedFileUtil::CreateForTesting(
239 storage_policy, data_dir_path(), 239 storage_policy, data_dir_path(), NULL,
240 base::MessageLoopProxy::current().get())); 240 base::MessageLoopProxy::current().get()));
241 } 241 }
242 242
243 ObfuscatedFileUtil* ofu() { 243 ObfuscatedFileUtil* ofu() {
244 return static_cast<ObfuscatedFileUtil*>(sandbox_file_system_.file_util()); 244 return static_cast<ObfuscatedFileUtil*>(sandbox_file_system_.file_util());
245 } 245 }
246 246
247 const base::FilePath& test_directory() const { 247 const base::FilePath& test_directory() const {
248 return data_dir_.path(); 248 return data_dir_.path();
249 } 249 }
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 false /* exclusive */, 2484 false /* exclusive */,
2485 true /* recursive */)); 2485 true /* recursive */));
2486 ASSERT_EQ(base::File::FILE_ERROR_NOT_A_DIRECTORY, 2486 ASSERT_EQ(base::File::FILE_ERROR_NOT_A_DIRECTORY,
2487 ofu()->CreateDirectory(UnlimitedContext().get(), 2487 ofu()->CreateDirectory(UnlimitedContext().get(),
2488 path_in_file_in_file, 2488 path_in_file_in_file,
2489 false /* exclusive */, 2489 false /* exclusive */,
2490 true /* recursive */)); 2490 true /* recursive */));
2491 } 2491 }
2492 2492
2493 } // namespace content 2493 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/browser_file_system_helper.cc ('k') | content/public/test/test_file_system_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698