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/drive_backend_test_util.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util.
h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "chrome/browser/drive/drive_api_util.h" | 9 #include "chrome/browser/drive/drive_api_util.h" |
10 #include "chrome/browser/google_apis/drive_api_parser.h" | |
11 #include "chrome/browser/google_apis/drive_entry_kinds.h" | |
12 #include "chrome/browser/google_apis/gdata_wapi_parser.h" | |
13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 10 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
| 12 #include "google_apis/drive/drive_api_parser.h" |
| 13 #include "google_apis/drive/drive_entry_kinds.h" |
| 14 #include "google_apis/drive/gdata_wapi_parser.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 namespace sync_file_system { | 17 namespace sync_file_system { |
18 namespace drive_backend { | 18 namespace drive_backend { |
19 namespace test_util { | 19 namespace test_util { |
20 | 20 |
21 void ExpectEquivalentServiceMetadata(const ServiceMetadata& left, | 21 void ExpectEquivalentServiceMetadata(const ServiceMetadata& left, |
22 const ServiceMetadata& right) { | 22 const ServiceMetadata& right) { |
23 EXPECT_EQ(left.largest_change_id(), right.largest_change_id()); | 23 EXPECT_EQ(left.largest_change_id(), right.largest_change_id()); |
24 EXPECT_EQ(left.sync_root_tracker_id(), right.sync_root_tracker_id()); | 24 EXPECT_EQ(left.sync_root_tracker_id(), right.sync_root_tracker_id()); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 void ExpectEquivalentMetadataAndTracker(const FileMetadata& metadata, | 96 void ExpectEquivalentMetadataAndTracker(const FileMetadata& metadata, |
97 const FileTracker& tracker) { | 97 const FileTracker& tracker) { |
98 EXPECT_EQ(metadata.file_id(), tracker.file_id()); | 98 EXPECT_EQ(metadata.file_id(), tracker.file_id()); |
99 if (!tracker.dirty()) | 99 if (!tracker.dirty()) |
100 ExpectEquivalentDetails(metadata.details(), tracker.synced_details()); | 100 ExpectEquivalentDetails(metadata.details(), tracker.synced_details()); |
101 } | 101 } |
102 | 102 |
103 } // namespace test_util | 103 } // namespace test_util |
104 } // namespace drive_backend | 104 } // namespace drive_backend |
105 } // namespace sync_file_system | 105 } // namespace sync_file_system |
OLD | NEW |