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 #include "chrome/browser/chromeos/gdata/gdata_test_util.h" | 5 #include "chrome/browser/chromeos/gdata/gdata_test_util.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/threading/sequenced_worker_pool.h" | 8 #include "base/threading/sequenced_worker_pool.h" |
9 #include "chrome/browser/chromeos/gdata/gdata.pb.h" | 9 #include "chrome/browser/chromeos/gdata/gdata.pb.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 scoped_ptr<GDataEntryProtoVector>* out_entries, | 98 scoped_ptr<GDataEntryProtoVector>* out_entries, |
99 GDataFileError error, | 99 GDataFileError error, |
100 scoped_ptr<GDataEntryProtoVector> entries) { | 100 scoped_ptr<GDataEntryProtoVector> entries) { |
101 DCHECK(out_error); | 101 DCHECK(out_error); |
102 DCHECK(out_entries); | 102 DCHECK(out_entries); |
103 | 103 |
104 *out_error = error; | 104 *out_error = error; |
105 *out_entries = entries.Pass(); | 105 *out_entries = entries.Pass(); |
106 } | 106 } |
107 | 107 |
| 108 void CopyResultsFromGetEntryInfoWithFilePathCallback( |
| 109 GDataFileError* out_error, |
| 110 FilePath* out_drive_file_path, |
| 111 scoped_ptr<GDataEntryProto>* out_entry_proto, |
| 112 GDataFileError error, |
| 113 const FilePath& drive_file_path, |
| 114 scoped_ptr<GDataEntryProto> entry_proto) { |
| 115 DCHECK(out_error); |
| 116 DCHECK(out_drive_file_path); |
| 117 DCHECK(out_entry_proto); |
| 118 |
| 119 *out_error = error; |
| 120 *out_drive_file_path = drive_file_path; |
| 121 *out_entry_proto = entry_proto.Pass(); |
| 122 } |
| 123 |
108 void CopyResultsFromGetEntryInfoPairCallback( | 124 void CopyResultsFromGetEntryInfoPairCallback( |
109 scoped_ptr<EntryInfoPairResult>* out_result, | 125 scoped_ptr<EntryInfoPairResult>* out_result, |
110 scoped_ptr<EntryInfoPairResult> result) { | 126 scoped_ptr<EntryInfoPairResult> result) { |
111 DCHECK(out_result); | 127 DCHECK(out_result); |
112 | 128 |
113 *out_result = result.Pass(); | 129 *out_result = result.Pass(); |
114 } | 130 } |
115 | 131 |
116 } // namespace test_util | 132 } // namespace test_util |
117 } // namespace gdata | 133 } // namespace gdata |
OLD | NEW |