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

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

Issue 12447019: Eliminate CopyResultsFromGetResourceEntryCallback. (Closed) Base URL: http://git.chromium.org/chromium/src.git@b180569_create_copy_result_callback
Patch Set: Rebase 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/bind.h" 10 #include "base/bind.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 scoped_ptr<base::Value>* value_out, 76 scoped_ptr<base::Value>* value_out,
77 GDataErrorCode error_in, 77 GDataErrorCode error_in,
78 scoped_ptr<base::Value> value_in); 78 scoped_ptr<base::Value> value_in);
79 79
80 // Copies the results from GetDataCallback and quit the message loop. 80 // Copies the results from GetDataCallback and quit the message loop.
81 void CopyResultsFromGetDataCallbackAndQuit(GDataErrorCode* error_out, 81 void CopyResultsFromGetDataCallbackAndQuit(GDataErrorCode* error_out,
82 scoped_ptr<base::Value>* value_out, 82 scoped_ptr<base::Value>* value_out,
83 GDataErrorCode error_in, 83 GDataErrorCode error_in,
84 scoped_ptr<base::Value> value_in); 84 scoped_ptr<base::Value> value_in);
85 85
86 // Copies the results from GetResourceEntryCallback.
87 void CopyResultsFromGetResourceEntryCallback(
88 GDataErrorCode* error_out,
89 scoped_ptr<ResourceEntry>* resource_entry_out,
90 GDataErrorCode error_in,
91 scoped_ptr<ResourceEntry> resource_entry_in);
92
93 // Copies the results from GetResourceListCallback. 86 // Copies the results from GetResourceListCallback.
94 void CopyResultsFromGetResourceListCallback( 87 void CopyResultsFromGetResourceListCallback(
95 GDataErrorCode* error_out, 88 GDataErrorCode* error_out,
96 scoped_ptr<ResourceList>* resource_list_out, 89 scoped_ptr<ResourceList>* resource_list_out,
97 GDataErrorCode error_in, 90 GDataErrorCode error_in,
98 scoped_ptr<ResourceList> resource_list_in); 91 scoped_ptr<ResourceList> resource_list_in);
99 92
100 // Copies the results from GetAccountMetadataCallback. 93 // Copies the results from GetAccountMetadataCallback.
101 void CopyResultsFromGetAccountMetadataCallback( 94 void CopyResultsFromGetAccountMetadataCallback(
102 GDataErrorCode* error_out, 95 GDataErrorCode* error_out,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 typename internal::CopyResultCallbackHelper<T3>::InType)> 306 typename internal::CopyResultCallbackHelper<T3>::InType)>
314 CreateCopyResultCallback(T1* out1, T2* out2, T3* out3) { 307 CreateCopyResultCallback(T1* out1, T2* out2, T3* out3) {
315 return base::Bind( 308 return base::Bind(
316 &internal::CopyResultCallback<T1, T2, T3>, out1, out2, out3); 309 &internal::CopyResultCallback<T1, T2, T3>, out1, out2, out3);
317 } 310 }
318 311
319 } // namespace test_util 312 } // namespace test_util
320 } // namespace google_apis 313 } // namespace google_apis
321 314
322 #endif // CHROME_BROWSER_GOOGLE_APIS_TEST_UTIL_H_ 315 #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