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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 scoped_ptr<GDataEntryProtoVector>* out_entries, | 86 scoped_ptr<GDataEntryProtoVector>* out_entries, |
87 GDataFileError error, | 87 GDataFileError error, |
88 scoped_ptr<GDataEntryProtoVector> entries) { | 88 scoped_ptr<GDataEntryProtoVector> entries) { |
89 DCHECK(out_error); | 89 DCHECK(out_error); |
90 DCHECK(out_entries); | 90 DCHECK(out_entries); |
91 | 91 |
92 *out_error = error; | 92 *out_error = error; |
93 *out_entries = entries.Pass(); | 93 *out_entries = entries.Pass(); |
94 } | 94 } |
95 | 95 |
| 96 void CopyResultsFromGetEntryInfoPairCallback( |
| 97 scoped_ptr<EntryInfoPairResult>* out_result, |
| 98 scoped_ptr<EntryInfoPairResult> result) { |
| 99 DCHECK(out_result); |
| 100 |
| 101 *out_result = result.Pass(); |
| 102 } |
| 103 |
96 } // namespace test_util | 104 } // namespace test_util |
97 } // namespace gdata | 105 } // namespace gdata |
OLD | NEW |