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

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

Issue 11530004: google_apis: DriveServiceInterface::GetResourceEntry() returns ResourceEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/google_apis/drive_uploader.h" 5 #include "chrome/browser/google_apis/drive_uploader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstdlib> 8 #include <cstdlib>
9 #include <string> 9 #include <string>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 virtual void GetResourceList( 86 virtual void GetResourceList(
87 const GURL& feed_url, 87 const GURL& feed_url,
88 int64 start_changestamp, 88 int64 start_changestamp,
89 const std::string& search_query, 89 const std::string& search_query,
90 bool shared_with_me, 90 bool shared_with_me,
91 const std::string& directory_resource_id, 91 const std::string& directory_resource_id,
92 const GetResourceListCallback& callback) OVERRIDE { 92 const GetResourceListCallback& callback) OVERRIDE {
93 NOTREACHED(); 93 NOTREACHED();
94 } 94 }
95 virtual void GetResourceEntry(const std::string& resource_id, 95 virtual void GetResourceEntry(
96 const GetDataCallback& callback) OVERRIDE { 96 const std::string& resource_id,
97 const GetResourceEntryCallback& callback) OVERRIDE {
97 NOTREACHED(); 98 NOTREACHED();
98 } 99 }
99 virtual void GetAccountMetadata(const GetDataCallback& callback) OVERRIDE { 100 virtual void GetAccountMetadata(const GetDataCallback& callback) OVERRIDE {
100 NOTREACHED(); 101 NOTREACHED();
101 } 102 }
102 virtual void GetApplicationInfo(const GetDataCallback& callback) OVERRIDE { 103 virtual void GetApplicationInfo(const GetDataCallback& callback) OVERRIDE {
103 NOTREACHED(); 104 NOTREACHED();
104 } 105 }
105 virtual void DeleteResource(const GURL& edit_url, 106 virtual void DeleteResource(const GURL& edit_url,
106 const EntryActionCallback& callback) OVERRIDE { 107 const EntryActionCallback& callback) OVERRIDE {
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 kTestMimeType, 509 kTestMimeType,
509 0, // content length 510 0, // content length
510 base::Bind(&CopyResultsFromUploadCompletionCallbackAndQuit, &out)); 511 base::Bind(&CopyResultsFromUploadCompletionCallbackAndQuit, &out));
511 message_loop_.Run(); 512 message_loop_.Run();
512 513
513 // Should return failure without doing any attempt to connect to the server. 514 // Should return failure without doing any attempt to connect to the server.
514 EXPECT_EQ(DRIVE_UPLOAD_ERROR_NOT_FOUND, out.error); 515 EXPECT_EQ(DRIVE_UPLOAD_ERROR_NOT_FOUND, out.error);
515 } 516 }
516 517
517 } // namespace google_apis 518 } // namespace google_apis
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/drive_service_interface.h ('k') | chrome/browser/google_apis/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698