OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "chrome/browser/sync/glue/device_info_sync_service.h" | |
7 #include "chrome/browser/sync/glue/local_device_info_provider_mock.h" | 6 #include "chrome/browser/sync/glue/local_device_info_provider_mock.h" |
| 7 #include "components/sync_driver/device_info_sync_service.h" |
8 #include "content/public/test/test_browser_thread_bundle.h" | 8 #include "content/public/test/test_browser_thread_bundle.h" |
9 #include "sync/api/sync_change.h" | 9 #include "sync/api/sync_change.h" |
10 #include "sync/api/sync_change_processor.h" | 10 #include "sync/api/sync_change_processor.h" |
11 #include "sync/api/sync_change_processor_wrapper_for_test.h" | 11 #include "sync/api/sync_change_processor_wrapper_for_test.h" |
12 #include "sync/api/sync_error_factory_mock.h" | 12 #include "sync/api/sync_error_factory_mock.h" |
13 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | 13 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" |
14 #include "sync/util/time.h" | 14 #include "sync/util/time.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
| 17 using sync_driver::DeviceInfoSyncService; |
| 18 using sync_driver::DeviceInfoTracker; |
17 using syncer::AttachmentIdList; | 19 using syncer::AttachmentIdList; |
18 using syncer::AttachmentServiceProxyForTest; | 20 using syncer::AttachmentServiceProxyForTest; |
19 using syncer::ModelType; | 21 using syncer::ModelType; |
20 using syncer::SyncChange; | 22 using syncer::SyncChange; |
21 using syncer::SyncChangeList; | 23 using syncer::SyncChangeList; |
22 using syncer::SyncChangeProcessor; | 24 using syncer::SyncChangeProcessor; |
23 using syncer::SyncChangeProcessorWrapperForTest; | 25 using syncer::SyncChangeProcessorWrapperForTest; |
24 using syncer::SyncData; | 26 using syncer::SyncData; |
25 using syncer::SyncDataList; | 27 using syncer::SyncDataList; |
26 using syncer::SyncError; | 28 using syncer::SyncError; |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 EXPECT_EQ("client_1", sync_processor_->client_name_at(0)); | 550 EXPECT_EQ("client_1", sync_processor_->client_name_at(0)); |
549 | 551 |
550 backup_time = syncer::ProtoTimeToTime( | 552 backup_time = syncer::ProtoTimeToTime( |
551 sync_processor_->device_info_at(0).backup_timestamp()); | 553 sync_processor_->device_info_at(0).backup_timestamp()); |
552 EXPECT_EQ(6000, backup_time.ToTimeT()); | 554 EXPECT_EQ(6000, backup_time.ToTimeT()); |
553 } | 555 } |
554 | 556 |
555 } // namespace | 557 } // namespace |
556 | 558 |
557 } // namespace browser_sync | 559 } // namespace browser_sync |
OLD | NEW |