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

Side by Side Diff: chrome/browser/google_apis/test_util.h

Issue 11824020: google_apis: Implement DownloadFile in FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add DownloadFile_NonexistingFile test Created 7 years, 11 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 #ifndef CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_ 5 #ifndef CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_
6 #define CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_ 6 #define CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 GDataErrorCode error_in, 74 GDataErrorCode error_in,
75 scoped_ptr<ResourceList> resource_list_in); 75 scoped_ptr<ResourceList> resource_list_in);
76 76
77 // Copies the results from GetAccountMetadataCallback. 77 // Copies the results from GetAccountMetadataCallback.
78 void CopyResultsFromGetAccountMetadataCallback( 78 void CopyResultsFromGetAccountMetadataCallback(
79 GDataErrorCode* error_out, 79 GDataErrorCode* error_out,
80 scoped_ptr<AccountMetadataFeed>* account_metadata_out, 80 scoped_ptr<AccountMetadataFeed>* account_metadata_out,
81 GDataErrorCode error_in, 81 GDataErrorCode error_in,
82 scoped_ptr<AccountMetadataFeed> account_metadata_in); 82 scoped_ptr<AccountMetadataFeed> account_metadata_in);
83 83
84 // Copies the results from DownloadActionCallback.
85 void CopyResultsFromDownloadActionCallback(
86 GDataErrorCode* error_out,
87 FilePath* temp_file_out,
88 GDataErrorCode error_in,
89 const FilePath& temp_file_in);
90
84 // Returns a HttpResponse created from the given file path. 91 // Returns a HttpResponse created from the given file path.
85 scoped_ptr<test_server::HttpResponse> CreateHttpResponseFromFile( 92 scoped_ptr<test_server::HttpResponse> CreateHttpResponseFromFile(
86 const FilePath& file_path); 93 const FilePath& file_path);
87 94
88 } // namespace test_util 95 } // namespace test_util
89 } // namespace google_apis 96 } // namespace google_apis
90 97
91 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_ 98 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/fake_drive_service_unittest.cc ('k') | chrome/browser/google_apis/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698