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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 a.is_mounted() == b.is_mounted() && | 62 a.is_mounted() == b.is_mounted() && |
63 a.is_persistent() == b.is_persistent()); | 63 a.is_persistent() == b.is_persistent()); |
64 } | 64 } |
65 | 65 |
66 void CopyErrorCodeFromFileOperationCallback(GDataFileError* output, | 66 void CopyErrorCodeFromFileOperationCallback(GDataFileError* output, |
67 GDataFileError error) { | 67 GDataFileError error) { |
68 DCHECK(output); | 68 DCHECK(output); |
69 *output = error; | 69 *output = error; |
70 } | 70 } |
71 | 71 |
| 72 void CopyResultsFromFileMoveCallback( |
| 73 GDataFileError* out_error, |
| 74 FilePath* out_file_path, |
| 75 GDataFileError error, |
| 76 const FilePath& moved_file_path) { |
| 77 DCHECK(out_error); |
| 78 DCHECK(out_file_path); |
| 79 |
| 80 *out_error = error; |
| 81 *out_file_path = moved_file_path; |
| 82 } |
| 83 |
72 void CopyResultsFromGetEntryInfoCallback( | 84 void CopyResultsFromGetEntryInfoCallback( |
73 GDataFileError* out_error, | 85 GDataFileError* out_error, |
74 scoped_ptr<GDataEntryProto>* out_entry_proto, | 86 scoped_ptr<GDataEntryProto>* out_entry_proto, |
75 GDataFileError error, | 87 GDataFileError error, |
76 scoped_ptr<GDataEntryProto> entry_proto) { | 88 scoped_ptr<GDataEntryProto> entry_proto) { |
77 DCHECK(out_error); | 89 DCHECK(out_error); |
78 DCHECK(out_entry_proto); | 90 DCHECK(out_entry_proto); |
79 | 91 |
80 *out_error = error; | 92 *out_error = error; |
81 *out_entry_proto = entry_proto.Pass(); | 93 *out_entry_proto = entry_proto.Pass(); |
(...skipping 14 matching lines...) Expand all Loading... |
96 void CopyResultsFromGetEntryInfoPairCallback( | 108 void CopyResultsFromGetEntryInfoPairCallback( |
97 scoped_ptr<EntryInfoPairResult>* out_result, | 109 scoped_ptr<EntryInfoPairResult>* out_result, |
98 scoped_ptr<EntryInfoPairResult> result) { | 110 scoped_ptr<EntryInfoPairResult> result) { |
99 DCHECK(out_result); | 111 DCHECK(out_result); |
100 | 112 |
101 *out_result = result.Pass(); | 113 *out_result = result.Pass(); |
102 } | 114 } |
103 | 115 |
104 } // namespace test_util | 116 } // namespace test_util |
105 } // namespace gdata | 117 } // namespace gdata |
OLD | NEW |