| 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 <set> | 5 #include <set> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 void SetUp() { | 205 void SetUp() { |
| 206 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); | 206 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); |
| 207 special_storage_policy_ = new quota::MockSpecialStoragePolicy; | 207 special_storage_policy_ = new quota::MockSpecialStoragePolicy; |
| 208 } | 208 } |
| 209 | 209 |
| 210 protected: | 210 protected: |
| 211 void SetupNewContext(const FileSystemOptions& options) { | 211 void SetupNewContext(const FileSystemOptions& options) { |
| 212 file_system_context_ = new FileSystemContext( | 212 file_system_context_ = new FileSystemContext( |
| 213 base::MessageLoopProxy::current(), | 213 base::MessageLoopProxy::current(), |
| 214 base::MessageLoopProxy::current(), | 214 base::MessageLoopProxy::current(), |
| 215 base::MessageLoopProxy::current(), |
| 215 special_storage_policy_, | 216 special_storage_policy_, |
| 216 NULL, | 217 NULL, |
| 217 data_dir_.path(), | 218 data_dir_.path(), |
| 218 options); | 219 options); |
| 219 #if defined(OS_CHROMEOS) | 220 #if defined(OS_CHROMEOS) |
| 220 ExternalFileSystemMountPointProvider* external_provider = | 221 ExternalFileSystemMountPointProvider* external_provider = |
| 221 file_system_context_->external_provider(); | 222 file_system_context_->external_provider(); |
| 222 external_provider->AddLocalMountPoint(FilePath(kMountPoint)); | 223 external_provider->AddLocalMountPoint(FilePath(kMountPoint)); |
| 223 #endif | 224 #endif |
| 224 } | 225 } |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 FilePath virtual_unused; | 406 FilePath virtual_unused; |
| 406 EXPECT_TRUE(external_provider->GetVirtualPath(FilePath(kMountPoint), | 407 EXPECT_TRUE(external_provider->GetVirtualPath(FilePath(kMountPoint), |
| 407 &virtual_unused)); | 408 &virtual_unused)); |
| 408 external_provider->RemoveMountPoint(FilePath(kMountPoint)); | 409 external_provider->RemoveMountPoint(FilePath(kMountPoint)); |
| 409 EXPECT_FALSE(external_provider->GetVirtualPath(FilePath(kMountPoint), | 410 EXPECT_FALSE(external_provider->GetVirtualPath(FilePath(kMountPoint), |
| 410 &virtual_unused)); | 411 &virtual_unused)); |
| 411 } | 412 } |
| 412 #endif | 413 #endif |
| 413 | 414 |
| 414 } // namespace fileapi | 415 } // namespace fileapi |
| OLD | NEW |