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

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

Issue 12388017: Move the responsibility to convert from JSON to AccountMetadata into gdata_wapi_operations. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b148632_gdata_wapi_get_about_resource_impl
Patch Set: Created 7 years, 9 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 #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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 GDataErrorCode error_in, 95 GDataErrorCode error_in,
96 scoped_ptr<ResourceList> resource_list_in); 96 scoped_ptr<ResourceList> resource_list_in);
97 97
98 // Copies the results from GetAccountMetadataCallback. 98 // Copies the results from GetAccountMetadataCallback.
99 void CopyResultsFromGetAccountMetadataCallback( 99 void CopyResultsFromGetAccountMetadataCallback(
100 GDataErrorCode* error_out, 100 GDataErrorCode* error_out,
101 scoped_ptr<AccountMetadataFeed>* account_metadata_out, 101 scoped_ptr<AccountMetadataFeed>* account_metadata_out,
102 GDataErrorCode error_in, 102 GDataErrorCode error_in,
103 scoped_ptr<AccountMetadataFeed> account_metadata_in); 103 scoped_ptr<AccountMetadataFeed> account_metadata_in);
104 104
105 // Copies the results from GetAccountMetadataCallback and quit the message
106 // loop.
107 void CopyResultsFromGetAccountMetadataCallbackAndQuit(
108 GDataErrorCode* error_out,
109 scoped_ptr<AccountMetadataFeed>* account_metadata_out,
110 GDataErrorCode error_in,
111 scoped_ptr<AccountMetadataFeed> account_metadata_in);
112
105 // Copies the results from GetAboutResourceCallback. 113 // Copies the results from GetAboutResourceCallback.
106 void CopyResultsFromGetAboutResourceCallback( 114 void CopyResultsFromGetAboutResourceCallback(
107 GDataErrorCode* error_out, 115 GDataErrorCode* error_out,
108 scoped_ptr<AboutResource>* about_resource_out, 116 scoped_ptr<AboutResource>* about_resource_out,
109 GDataErrorCode error_in, 117 GDataErrorCode error_in,
110 scoped_ptr<AboutResource> about_resource_in); 118 scoped_ptr<AboutResource> about_resource_in);
111 119
112 // Copies the results from GetAppListCallback. 120 // Copies the results from GetAppListCallback.
113 void CopyResultsFromGetAppListCallback( 121 void CopyResultsFromGetAppListCallback(
114 GDataErrorCode* error_out, 122 GDataErrorCode* error_out,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Returns true if |json_data| is not NULL and equals to the content in 167 // Returns true if |json_data| is not NULL and equals to the content in
160 // |expected_json_file_path|. The failure reason will be logged into LOG(ERROR) 168 // |expected_json_file_path|. The failure reason will be logged into LOG(ERROR)
161 // if necessary. 169 // if necessary.
162 bool VerifyJsonData(const base::FilePath& expected_json_file_path, 170 bool VerifyJsonData(const base::FilePath& expected_json_file_path,
163 const base::Value* json_data); 171 const base::Value* json_data);
164 172
165 } // namespace test_util 173 } // namespace test_util
166 } // namespace google_apis 174 } // namespace google_apis
167 175
168 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_ 176 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | chrome/browser/google_apis/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698