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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 FileSystemContext* file_system_context() { | 789 FileSystemContext* file_system_context() { |
790 return sandbox_file_system_.file_system_context(); | 790 return sandbox_file_system_.file_system_context(); |
791 } | 791 } |
792 | 792 |
793 const base::FilePath& data_dir_path() const { | 793 const base::FilePath& data_dir_path() const { |
794 return data_dir_.path(); | 794 return data_dir_.path(); |
795 } | 795 } |
796 | 796 |
797 protected: | 797 protected: |
798 base::ScopedTempDir data_dir_; | 798 base::ScopedTempDir data_dir_; |
799 base::MessageLoop message_loop_; | 799 base::MessageLoopForIO message_loop_; |
800 scoped_refptr<MockSpecialStoragePolicy> storage_policy_; | 800 scoped_refptr<MockSpecialStoragePolicy> storage_policy_; |
801 scoped_refptr<storage::QuotaManager> quota_manager_; | 801 scoped_refptr<storage::QuotaManager> quota_manager_; |
802 scoped_refptr<FileSystemContext> file_system_context_; | 802 scoped_refptr<FileSystemContext> file_system_context_; |
803 GURL origin_; | 803 GURL origin_; |
804 storage::FileSystemType type_; | 804 storage::FileSystemType type_; |
805 base::WeakPtrFactory<ObfuscatedFileUtilTest> weak_factory_; | 805 base::WeakPtrFactory<ObfuscatedFileUtilTest> weak_factory_; |
806 SandboxFileSystemTestHelper sandbox_file_system_; | 806 SandboxFileSystemTestHelper sandbox_file_system_; |
807 storage::QuotaStatusCode quota_status_; | 807 storage::QuotaStatusCode quota_status_; |
808 int64 usage_; | 808 int64 usage_; |
809 storage::MockFileChangeObserver change_observer_; | 809 storage::MockFileChangeObserver change_observer_; |
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2444 false /* exclusive */, | 2444 false /* exclusive */, |
2445 true /* recursive */)); | 2445 true /* recursive */)); |
2446 ASSERT_EQ(base::File::FILE_ERROR_NOT_A_DIRECTORY, | 2446 ASSERT_EQ(base::File::FILE_ERROR_NOT_A_DIRECTORY, |
2447 ofu()->CreateDirectory(UnlimitedContext().get(), | 2447 ofu()->CreateDirectory(UnlimitedContext().get(), |
2448 path_in_file_in_file, | 2448 path_in_file_in_file, |
2449 false /* exclusive */, | 2449 false /* exclusive */, |
2450 true /* recursive */)); | 2450 true /* recursive */)); |
2451 } | 2451 } |
2452 | 2452 |
2453 } // namespace content | 2453 } // namespace content |
OLD | NEW |