| 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 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "chrome/browser/sync_file_system/sync_status_code.h" | 12 #include "chrome/browser/sync_file_system/sync_status_code.h" |
| 13 #include "google_apis/drive/drive_api_error_codes.h" | 13 #include "google_apis/drive/drive_api_error_codes.h" |
| 14 | 14 |
| 15 namespace google_apis { | 15 namespace google_apis { |
| 16 class FileResource; | 16 class FileResource; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace sync_file_system { | 19 namespace sync_file_system { |
| 20 namespace drive_backend { | 20 namespace drive_backend { |
| 21 | 21 |
| 22 class FileDetails; | 22 class FileDetails; |
| 23 class FileMetadata; | 23 class FileMetadata; |
| 24 class FileTracker; | 24 class FileTracker; |
| 25 class MetadataDatabase; | |
| 26 class ServiceMetadata; | |
| 27 | 25 |
| 28 namespace test_util { | 26 namespace test_util { |
| 29 | 27 |
| 30 void ExpectEquivalentDetails(const FileDetails& left, const FileDetails& right); | 28 void ExpectEquivalentDetails(const FileDetails& left, const FileDetails& right); |
| 31 void ExpectEquivalentMetadata(const FileMetadata& left, | 29 void ExpectEquivalentMetadata(const FileMetadata& left, |
| 32 const FileMetadata& right); | 30 const FileMetadata& right); |
| 33 void ExpectEquivalentTrackers(const FileTracker& left, | 31 void ExpectEquivalentTrackers(const FileTracker& left, |
| 34 const FileTracker& right); | 32 const FileTracker& right); |
| 35 | 33 |
| 36 std::unique_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id, | 34 std::unique_ptr<FileMetadata> CreateFolderMetadata(const std::string& file_id, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 // Returns the kind of the given FileResourceKind. | 53 // Returns the kind of the given FileResourceKind. |
| 56 FileResourceKind GetFileResourceKind(const google_apis::FileResource& resource); | 54 FileResourceKind GetFileResourceKind(const google_apis::FileResource& resource); |
| 57 | 55 |
| 58 } // namespace test_util | 56 } // namespace test_util |
| 59 } // namespace drive_backend | 57 } // namespace drive_backend |
| 60 } // namespace sync_file_system | 58 } // namespace sync_file_system |
| 61 | 59 |
| 62 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL
_H_ | 60 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_BACKEND_TEST_UTIL
_H_ |
| OLD | NEW |