OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |