| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "webkit/browser/fileapi/file_system_context.h" | 5 #include "webkit/browser/fileapi/file_system_context.h" |
| 6 | 6 |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 FileSystemContextTest() {} | 45 FileSystemContextTest() {} |
| 46 | 46 |
| 47 virtual void SetUp() { | 47 virtual void SetUp() { |
| 48 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); | 48 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); |
| 49 | 49 |
| 50 storage_policy_ = new quota::MockSpecialStoragePolicy(); | 50 storage_policy_ = new quota::MockSpecialStoragePolicy(); |
| 51 | 51 |
| 52 mock_quota_manager_ = | 52 mock_quota_manager_ = |
| 53 new quota::MockQuotaManager(false /* is_incognito */, | 53 new quota::MockQuotaManager(false /* is_incognito */, |
| 54 data_dir_.path(), | 54 data_dir_.path(), |
| 55 base::MessageLoopProxy::current(), | 55 base::MessageLoopProxy::current().get(), |
| 56 base::MessageLoopProxy::current(), | 56 base::MessageLoopProxy::current().get(), |
| 57 storage_policy_.get()); | 57 storage_policy_.get()); |
| 58 } | 58 } |
| 59 | 59 |
| 60 protected: | 60 protected: |
| 61 FileSystemContext* CreateFileSystemContextForTest( | 61 FileSystemContext* CreateFileSystemContextForTest( |
| 62 ExternalMountPoints* external_mount_points) { | 62 ExternalMountPoints* external_mount_points) { |
| 63 return new FileSystemContext(FileSystemTaskRunners::CreateMockTaskRunners(), | 63 return new FileSystemContext(FileSystemTaskRunners::CreateMockTaskRunners(), |
| 64 external_mount_points, | 64 external_mount_points, |
| 65 storage_policy_.get(), | 65 storage_policy_.get(), |
| 66 mock_quota_manager_->proxy(), | 66 mock_quota_manager_->proxy(), |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 base::FilePath(DRIVE FPL("/test/isolated/root"))); | 319 base::FilePath(DRIVE FPL("/test/isolated/root"))); |
| 320 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("system"); | 320 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("system"); |
| 321 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("ext"); | 321 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem("ext"); |
| 322 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( | 322 ExternalMountPoints::GetSystemInstance()->RevokeFileSystem( |
| 323 kIsolatedFileSystemID); | 323 kIsolatedFileSystemID); |
| 324 } | 324 } |
| 325 | 325 |
| 326 } // namespace | 326 } // namespace |
| 327 | 327 |
| 328 } // namespace fileapi | 328 } // namespace fileapi |
| OLD | NEW |