Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: chrome/browser/chromeos/drive/fake_drive_file_system.cc

Issue 14348016: chromeos: Add DriveFileSystem::Pin/Unpin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetEntryInfoByPathSync Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const FileOperationCallback& callback) { 107 const FileOperationCallback& callback) {
108 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 108 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
109 } 109 }
110 110
111 void FakeDriveFileSystem::CreateFile(const base::FilePath& file_path, 111 void FakeDriveFileSystem::CreateFile(const base::FilePath& file_path,
112 bool is_exclusive, 112 bool is_exclusive,
113 const FileOperationCallback& callback) { 113 const FileOperationCallback& callback) {
114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 114 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
115 } 115 }
116 116
117 void FakeDriveFileSystem::Pin(const base::FilePath& file_path,
118 const FileOperationCallback& callback) {
119 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
120 }
121
122 void FakeDriveFileSystem::Unpin(const base::FilePath& file_path,
123 const FileOperationCallback& callback) {
124 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
125 }
126
117 void FakeDriveFileSystem::GetFileByPath(const base::FilePath& file_path, 127 void FakeDriveFileSystem::GetFileByPath(const base::FilePath& file_path,
118 const GetFileCallback& callback) { 128 const GetFileCallback& callback) {
119 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 129 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
120 } 130 }
121 131
122 void FakeDriveFileSystem::GetFileByResourceId( 132 void FakeDriveFileSystem::GetFileByResourceId(
123 const std::string& resource_id, 133 const std::string& resource_id,
124 const DriveClientContext& context, 134 const DriveClientContext& context,
125 const GetFileCallback& get_file_callback, 135 const GetFileCallback& get_file_callback,
126 const google_apis::GetContentCallback& get_content_callback) { 136 const google_apis::GetContentCallback& get_content_callback) {
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 callback.Run(DRIVE_FILE_OK, entry.Pass()); 397 callback.Run(DRIVE_FILE_OK, entry.Pass());
388 return; 398 return;
389 } 399 }
390 } 400 }
391 401
392 callback.Run(DRIVE_FILE_ERROR_NOT_FOUND, scoped_ptr<DriveEntryProto>()); 402 callback.Run(DRIVE_FILE_ERROR_NOT_FOUND, scoped_ptr<DriveEntryProto>());
393 } 403 }
394 404
395 } // namespace test_util 405 } // namespace test_util
396 } // namespace drive 406 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/fake_drive_file_system.h ('k') | chrome/browser/chromeos/drive/mock_drive_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698