OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/fileapi/sandbox_mount_point_provider.h" | 5 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } | 137 } |
138 | 138 |
139 void SetUp() { | 139 void SetUp() { |
140 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); | 140 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); |
141 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = | 141 scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = |
142 new quota::MockSpecialStoragePolicy; | 142 new quota::MockSpecialStoragePolicy; |
143 special_storage_policy->SetAllUnlimited(true); | 143 special_storage_policy->SetAllUnlimited(true); |
144 file_system_context_ = new FileSystemContext( | 144 file_system_context_ = new FileSystemContext( |
145 base::MessageLoopProxy::current(), | 145 base::MessageLoopProxy::current(), |
146 base::MessageLoopProxy::current(), | 146 base::MessageLoopProxy::current(), |
| 147 base::MessageLoopProxy::current(), |
147 special_storage_policy, | 148 special_storage_policy, |
148 NULL, | 149 NULL, |
149 data_dir_.path(), | 150 data_dir_.path(), |
150 CreateAllowFileAccessOptions()); | 151 CreateAllowFileAccessOptions()); |
151 } | 152 } |
152 | 153 |
153 SandboxMountPointProvider* sandbox_provider() { | 154 SandboxMountPointProvider* sandbox_provider() { |
154 return file_system_context_->sandbox_provider(); | 155 return file_system_context_->sandbox_provider(); |
155 } | 156 } |
156 | 157 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 389 |
389 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { | 390 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod8) { |
390 RunMigrationTest(8); | 391 RunMigrationTest(8); |
391 } | 392 } |
392 | 393 |
393 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { | 394 TEST_F(SandboxMountPointProviderMigrationTest, TestMigrateViaMethod9) { |
394 RunMigrationTest(9); | 395 RunMigrationTest(9); |
395 } | 396 } |
396 | 397 |
397 } // namespace fileapi | 398 } // namespace fileapi |
OLD | NEW |