OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync_file_system/drive_backend_v1/api_util.h" | 5 #include "chrome/browser/sync_file_system/drive_backend_v1/api_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 ASSERT_TRUE(document_feed_out); | 203 ASSERT_TRUE(document_feed_out); |
204 *error_out = error; | 204 *error_out = error; |
205 *document_feed_out = document_feed.Pass(); | 205 *document_feed_out = document_feed.Pass(); |
206 } | 206 } |
207 | 207 |
208 void DidDownloadFile(Output* output, | 208 void DidDownloadFile(Output* output, |
209 GDataErrorCode error, | 209 GDataErrorCode error, |
210 const std::string& file_md5, | 210 const std::string& file_md5, |
211 int64 file_size, | 211 int64 file_size, |
212 const base::Time& updated_time, | 212 const base::Time& updated_time, |
213 webkit_blob::ScopedFile file) { | 213 storage::ScopedFile file) { |
214 ASSERT_TRUE(output); | 214 ASSERT_TRUE(output); |
215 ASSERT_TRUE(base::PathExists(file.path())); | 215 ASSERT_TRUE(base::PathExists(file.path())); |
216 output->error = error; | 216 output->error = error; |
217 output->file_md5 = file_md5; | 217 output->file_md5 = file_md5; |
218 } | 218 } |
219 | 219 |
220 void DidUploadFile(Output* output, | 220 void DidUploadFile(Output* output, |
221 GDataErrorCode error, | 221 GDataErrorCode error, |
222 const std::string& resource_id, | 222 const std::string& resource_id, |
223 const std::string& file_md5) { | 223 const std::string& file_md5) { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 TestCreateDirectory(); | 816 TestCreateDirectory(); |
817 } | 817 } |
818 | 818 |
819 TEST_F(APIUtilTest, CreateDirectory_WAPI) { | 819 TEST_F(APIUtilTest, CreateDirectory_WAPI) { |
820 ScopedDisableDriveAPI disable_drive_api; | 820 ScopedDisableDriveAPI disable_drive_api; |
821 TestCreateDirectory(); | 821 TestCreateDirectory(); |
822 } | 822 } |
823 | 823 |
824 } // namespace drive_backend | 824 } // namespace drive_backend |
825 } // namespace sync_file_system | 825 } // namespace sync_file_system |
OLD | NEW |