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

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

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/drive/drive_service_interface.h" 10 #include "chrome/browser/drive/drive_service_interface.h"
11 #include "chrome/browser/google_apis/auth_service_interface.h" 11 #include "google_apis/drive/auth_service_interface.h"
12 12
13 namespace drive { 13 namespace drive {
14 14
15 // This class implements a fake DriveService which acts like a real Drive 15 // This class implements a fake DriveService which acts like a real Drive
16 // service. The fake service works as follows: 16 // service. The fake service works as follows:
17 // 17 //
18 // 1) Load JSON files and construct the in-memory resource list. 18 // 1) Load JSON files and construct the in-memory resource list.
19 // 2) Return valid responses based on the the in-memory resource list. 19 // 2) Return valid responses based on the the in-memory resource list.
20 // 3) Update the in-memory resource list by requests like DeleteResource(). 20 // 3) Update the in-memory resource list by requests like DeleteResource().
21 class FakeDriveService : public DriveServiceInterface { 21 class FakeDriveService : public DriveServiceInterface {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool never_return_all_resource_list_; 319 bool never_return_all_resource_list_;
320 base::FilePath last_cancelled_file_; 320 base::FilePath last_cancelled_file_;
321 GURL share_url_base_; 321 GURL share_url_base_;
322 322
323 DISALLOW_COPY_AND_ASSIGN(FakeDriveService); 323 DISALLOW_COPY_AND_ASSIGN(FakeDriveService);
324 }; 324 };
325 325
326 } // namespace drive 326 } // namespace drive
327 327
328 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_ 328 #endif // CHROME_BROWSER_DRIVE_FAKE_DRIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/drive/dummy_drive_service.h ('k') | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698