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_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 9 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
10 #include "chrome/browser/chromeos/gdata/gdata_files.h" | 10 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Copies |error| and |entries| to |out_error| and |out_entries| | 59 // Copies |error| and |entries| to |out_error| and |out_entries| |
60 // respectively. Used to run asynchronous functions that take | 60 // respectively. Used to run asynchronous functions that take |
61 // GetEntryInfoCallback from tests. | 61 // GetEntryInfoCallback from tests. |
62 void CopyResultsFromReadDirectoryCallback( | 62 void CopyResultsFromReadDirectoryCallback( |
63 GDataFileError* out_error, | 63 GDataFileError* out_error, |
64 scoped_ptr<GDataEntryProtoVector>* out_entries, | 64 scoped_ptr<GDataEntryProtoVector>* out_entries, |
65 GDataFileError error, | 65 GDataFileError error, |
66 scoped_ptr<GDataEntryProtoVector> entries); | 66 scoped_ptr<GDataEntryProtoVector> entries); |
67 | 67 |
| 68 // Copies |result| |out_result|. Used to run asynchronous functions that take |
| 69 // GetEntryInfoPairCallback from tests. |
| 70 void CopyResultsFromGetEntryInfoPairCallback( |
| 71 scoped_ptr<EntryInfoPairResult>* out_result, |
| 72 scoped_ptr<EntryInfoPairResult> result); |
| 73 |
68 } // namespace test_util | 74 } // namespace test_util |
69 } // namespace gdata | 75 } // namespace gdata |
70 | 76 |
71 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
OLD | NEW |