| 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/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |