| 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 "chrome/browser/chromeos/drive/fake_file_system.h" | 5 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 const FileOperationCallback& callback) { | 215 const FileOperationCallback& callback) { |
| 216 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 216 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void FakeFileSystem::GetCacheEntry( | 219 void FakeFileSystem::GetCacheEntry( |
| 220 const base::FilePath& drive_file_path, | 220 const base::FilePath& drive_file_path, |
| 221 const GetCacheEntryCallback& callback) { | 221 const GetCacheEntryCallback& callback) { |
| 222 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 222 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 223 } | 223 } |
| 224 | 224 |
| 225 void FakeFileSystem::Reload(const FileOperationCallback& callback) { | 225 void FakeFileSystem::Reset(const FileOperationCallback& callback) { |
| 226 } | 226 } |
| 227 | 227 |
| 228 // Implementation of GetFileContent. | 228 // Implementation of GetFileContent. |
| 229 void FakeFileSystem::GetFileContentAfterGetResourceEntry( | 229 void FakeFileSystem::GetFileContentAfterGetResourceEntry( |
| 230 const GetFileContentInitializedCallback& initialized_callback, | 230 const GetFileContentInitializedCallback& initialized_callback, |
| 231 const google_apis::GetContentCallback& get_content_callback, | 231 const google_apis::GetContentCallback& get_content_callback, |
| 232 const FileOperationCallback& completion_callback, | 232 const FileOperationCallback& completion_callback, |
| 233 FileError error, | 233 FileError error, |
| 234 scoped_ptr<ResourceEntry> entry) { | 234 scoped_ptr<ResourceEntry> entry) { |
| 235 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 235 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 callback.Run(FILE_ERROR_OK, entry.Pass()); | 379 callback.Run(FILE_ERROR_OK, entry.Pass()); |
| 380 return; | 380 return; |
| 381 } | 381 } |
| 382 } | 382 } |
| 383 | 383 |
| 384 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); | 384 callback.Run(FILE_ERROR_NOT_FOUND, scoped_ptr<ResourceEntry>()); |
| 385 } | 385 } |
| 386 | 386 |
| 387 } // namespace test_util | 387 } // namespace test_util |
| 388 } // namespace drive | 388 } // namespace drive |
| OLD | NEW |