OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 5 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/files/file.h" | 9 #include "base/files/file.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 } | 251 } |
252 | 252 |
253 void FakeProvidedFileSystem::CopyEntry( | 253 void FakeProvidedFileSystem::CopyEntry( |
254 const base::FilePath& source_path, | 254 const base::FilePath& source_path, |
255 const base::FilePath& target_path, | 255 const base::FilePath& target_path, |
256 const fileapi::AsyncFileUtil::StatusCallback& callback) { | 256 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
257 base::MessageLoopProxy::current()->PostTask( | 257 base::MessageLoopProxy::current()->PostTask( |
258 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); | 258 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
259 } | 259 } |
260 | 260 |
| 261 void FakeProvidedFileSystem::MoveEntry( |
| 262 const base::FilePath& source_path, |
| 263 const base::FilePath& target_path, |
| 264 const fileapi::AsyncFileUtil::StatusCallback& callback) { |
| 265 base::MessageLoopProxy::current()->PostTask( |
| 266 FROM_HERE, base::Bind(callback, base::File::FILE_OK)); |
| 267 } |
| 268 |
261 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() | 269 const ProvidedFileSystemInfo& FakeProvidedFileSystem::GetFileSystemInfo() |
262 const { | 270 const { |
263 return file_system_info_; | 271 return file_system_info_; |
264 } | 272 } |
265 | 273 |
266 RequestManager* FakeProvidedFileSystem::GetRequestManager() { | 274 RequestManager* FakeProvidedFileSystem::GetRequestManager() { |
267 NOTREACHED(); | 275 NOTREACHED(); |
268 return NULL; | 276 return NULL; |
269 } | 277 } |
270 | 278 |
271 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( | 279 ProvidedFileSystemInterface* FakeProvidedFileSystem::Create( |
272 Profile* profile, | 280 Profile* profile, |
273 const ProvidedFileSystemInfo& file_system_info) { | 281 const ProvidedFileSystemInfo& file_system_info) { |
274 return new FakeProvidedFileSystem(file_system_info); | 282 return new FakeProvidedFileSystem(file_system_info); |
275 } | 283 } |
276 | 284 |
277 base::WeakPtr<ProvidedFileSystemInterface> | 285 base::WeakPtr<ProvidedFileSystemInterface> |
278 FakeProvidedFileSystem::GetWeakPtr() { | 286 FakeProvidedFileSystem::GetWeakPtr() { |
279 return weak_ptr_factory_.GetWeakPtr(); | 287 return weak_ptr_factory_.GetWeakPtr(); |
280 } | 288 } |
281 | 289 |
282 } // namespace file_system_provider | 290 } // namespace file_system_provider |
283 } // namespace chromeos | 291 } // namespace chromeos |
OLD | NEW |