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

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

Issue 12218011: WIP: Implement 5xx Error handling. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 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
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/google_apis/fake_drive_service.h" 5 #include "chrome/browser/google_apis/fake_drive_service.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 775 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
776 DCHECK(!callback.is_null()); 776 DCHECK(!callback.is_null());
777 } 777 }
778 778
779 void FakeDriveService::ResumeUpload(const ResumeUploadParams& params, 779 void FakeDriveService::ResumeUpload(const ResumeUploadParams& params,
780 const ResumeUploadCallback& callback) { 780 const ResumeUploadCallback& callback) {
781 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 781 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
782 DCHECK(!callback.is_null()); 782 DCHECK(!callback.is_null());
783 } 783 }
784 784
785 void FakeDriveService::GetUploadState(const UploadMode upload_mode,
786 const FilePath& drive_file_path,
787 const GURL& upload_url,
788 int64 content_length,
789 const ResumeUploadCallback& callback) {
790 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
791 DCHECK(!callback.is_null());
792 }
793
785 void FakeDriveService::AuthorizeApp(const GURL& edit_url, 794 void FakeDriveService::AuthorizeApp(const GURL& edit_url,
786 const std::string& app_id, 795 const std::string& app_id,
787 const AuthorizeAppCallback& callback) { 796 const AuthorizeAppCallback& callback) {
788 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 797 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
789 DCHECK(!callback.is_null()); 798 DCHECK(!callback.is_null());
790 } 799 }
791 800
792 base::DictionaryValue* FakeDriveService::FindEntryByResourceId( 801 base::DictionaryValue* FakeDriveService::FindEntryByResourceId(
793 const std::string& resource_id) { 802 const std::string& resource_id) {
794 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 803 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 return base::StringPrintf("resource_id_%d", resource_id_count_); 851 return base::StringPrintf("resource_id_%d", resource_id_count_);
843 } 852 }
844 853
845 void FakeDriveService::AddNewChangestamp(base::DictionaryValue* entry) { 854 void FakeDriveService::AddNewChangestamp(base::DictionaryValue* entry) {
846 ++largest_changestamp_; 855 ++largest_changestamp_;
847 entry->SetString("docs$changestamp.value", 856 entry->SetString("docs$changestamp.value",
848 base::Int64ToString(largest_changestamp_)); 857 base::Int64ToString(largest_changestamp_));
849 } 858 }
850 859
851 } // namespace google_apis 860 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/fake_drive_service.h ('k') | chrome/browser/google_apis/gdata_wapi_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698