| 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_drive_file_system.h" | 5 #include "chrome/browser/chromeos/drive/fake_drive_file_system.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 void FakeDriveFileSystem::AddObserver(DriveFileSystemObserver* observer) { | 37 void FakeDriveFileSystem::AddObserver(DriveFileSystemObserver* observer) { |
| 38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 38 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 void FakeDriveFileSystem::RemoveObserver(DriveFileSystemObserver* observer) { | 41 void FakeDriveFileSystem::RemoveObserver(DriveFileSystemObserver* observer) { |
| 42 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 42 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 void FakeDriveFileSystem::NotifyFileSystemMounted() { | |
| 46 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | |
| 47 } | |
| 48 | |
| 49 void FakeDriveFileSystem::NotifyFileSystemToBeUnmounted() { | |
| 50 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | |
| 51 } | |
| 52 | |
| 53 void FakeDriveFileSystem::CheckForUpdates() { | 45 void FakeDriveFileSystem::CheckForUpdates() { |
| 54 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 46 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 55 } | 47 } |
| 56 | 48 |
| 57 void FakeDriveFileSystem::GetEntryInfoByResourceId( | 49 void FakeDriveFileSystem::GetEntryInfoByResourceId( |
| 58 const std::string& resource_id, | 50 const std::string& resource_id, |
| 59 const GetEntryInfoWithFilePathCallback& callback) { | 51 const GetEntryInfoWithFilePathCallback& callback) { |
| 60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 61 | 53 |
| 62 drive_service_->GetResourceEntry( | 54 drive_service_->GetResourceEntry( |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 callback.Run(DRIVE_FILE_OK, entry.Pass()); | 387 callback.Run(DRIVE_FILE_OK, entry.Pass()); |
| 396 return; | 388 return; |
| 397 } | 389 } |
| 398 } | 390 } |
| 399 | 391 |
| 400 callback.Run(DRIVE_FILE_ERROR_NOT_FOUND, scoped_ptr<DriveEntryProto>()); | 392 callback.Run(DRIVE_FILE_ERROR_NOT_FOUND, scoped_ptr<DriveEntryProto>()); |
| 401 } | 393 } |
| 402 | 394 |
| 403 } // namespace test_util | 395 } // namespace test_util |
| 404 } // namespace drive | 396 } // namespace drive |
| OLD | NEW |