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_directory_service.h" | 9 #include "chrome/browser/chromeos/gdata/gdata_directory_service.h" |
10 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 10 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 | 67 |
68 // Copies |error| and |entries| to |out_error| and |out_entries| | 68 // Copies |error| and |entries| to |out_error| and |out_entries| |
69 // respectively. Used to run asynchronous functions that take | 69 // respectively. Used to run asynchronous functions that take |
70 // GetEntryInfoCallback from tests. | 70 // GetEntryInfoCallback from tests. |
71 void CopyResultsFromReadDirectoryCallback( | 71 void CopyResultsFromReadDirectoryCallback( |
72 GDataFileError* out_error, | 72 GDataFileError* out_error, |
73 scoped_ptr<GDataEntryProtoVector>* out_entries, | 73 scoped_ptr<GDataEntryProtoVector>* out_entries, |
74 GDataFileError error, | 74 GDataFileError error, |
75 scoped_ptr<GDataEntryProtoVector> entries); | 75 scoped_ptr<GDataEntryProtoVector> entries); |
76 | 76 |
77 // Copies |result| |out_result|. Used to run asynchronous functions that take | 77 // Copies |error|, |drive_file_path|, and |entry_proto| to |out_error|, |
78 // GetEntryInfoPairCallback from tests. | 78 // |out_drive_file_path|, and |out_entry_proto| respectively. Used to run |
79 // asynchronous functions that take GetEntryInfoWithFilePathCallback from | |
80 // tests. | |
81 void CopyResultsFromGetEntryInfoWithFilePathCallback( | |
achuithb
2012/08/20 23:19:09
Do we really need this here? Why not put this in t
satorux1
2012/08/20 23:24:43
I plan to use these Copy* functions from gdata_fil
| |
82 GDataFileError* out_error, | |
83 FilePath* out_drive_file_path, | |
84 scoped_ptr<GDataEntryProto>* out_entry_proto, | |
85 GDataFileError error, | |
86 const FilePath& drive_file_path, | |
87 scoped_ptr<GDataEntryProto> entry_proto); | |
88 | |
89 // Copies |result| to |out_result|. Used to run asynchronous functions | |
90 // that take GetEntryInfoPairCallback from tests. | |
79 void CopyResultsFromGetEntryInfoPairCallback( | 91 void CopyResultsFromGetEntryInfoPairCallback( |
80 scoped_ptr<EntryInfoPairResult>* out_result, | 92 scoped_ptr<EntryInfoPairResult>* out_result, |
81 scoped_ptr<EntryInfoPairResult> result); | 93 scoped_ptr<EntryInfoPairResult> result); |
82 | 94 |
83 } // namespace test_util | 95 } // namespace test_util |
84 } // namespace gdata | 96 } // namespace gdata |
85 | 97 |
86 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ | 98 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_TEST_UTIL_H_ |
OLD | NEW |