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

Side by Side Diff: chrome/browser/drive/fake_drive_service.cc

Issue 445473002: Remove ResourceIdCanonicalizer from DriveServiceInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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) 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 "chrome/browser/drive/fake_drive_service.h" 5 #include "chrome/browser/drive/fake_drive_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/json/json_string_value_serializer.h" 10 #include "base/json/json_string_value_serializer.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 void FakeDriveService::RemoveObserver(DriveServiceObserver* observer) { 297 void FakeDriveService::RemoveObserver(DriveServiceObserver* observer) {
298 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 298 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
299 } 299 }
300 300
301 bool FakeDriveService::CanSendRequest() const { 301 bool FakeDriveService::CanSendRequest() const {
302 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 302 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
303 return true; 303 return true;
304 } 304 }
305 305
306 ResourceIdCanonicalizer FakeDriveService::GetResourceIdCanonicalizer() const {
307 return util::GetIdentityResourceIdCanonicalizer();
308 }
309
310 bool FakeDriveService::HasAccessToken() const { 306 bool FakeDriveService::HasAccessToken() const {
311 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 307 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
312 return true; 308 return true;
313 } 309 }
314 310
315 void FakeDriveService::RequestAccessToken(const AuthStatusCallback& callback) { 311 void FakeDriveService::RequestAccessToken(const AuthStatusCallback& callback) {
316 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 312 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
317 DCHECK(!callback.is_null()); 313 DCHECK(!callback.is_null());
318 callback.Run(google_apis::HTTP_NOT_MODIFIED, "fake_access_token"); 314 callback.Run(google_apis::HTTP_NOT_MODIFIED, "fake_access_token");
319 } 315 }
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 google_apis::drive::PermissionRole role, 1575 google_apis::drive::PermissionRole role,
1580 const google_apis::EntryActionCallback& callback) { 1576 const google_apis::EntryActionCallback& callback) {
1581 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1577 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1582 DCHECK(!callback.is_null()); 1578 DCHECK(!callback.is_null());
1583 1579
1584 NOTREACHED(); 1580 NOTREACHED();
1585 return CancelCallback(); 1581 return CancelCallback();
1586 } 1582 }
1587 1583
1588 } // namespace drive 1584 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/drive/fake_drive_service.h ('k') | chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698