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 "components/sync_driver/device_info_sync_service.h" | 5 #include "components/sync_driver/device_info_sync_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "components/sync/api/sync_change.h" |
| 14 #include "components/sync/api/sync_change_processor.h" |
| 15 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" |
| 16 #include "components/sync/api/sync_error_factory_mock.h" |
| 17 #include "components/sync/base/time.h" |
| 18 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" |
13 #include "components/sync_driver/device_info_util.h" | 19 #include "components/sync_driver/device_info_util.h" |
14 #include "components/sync_driver/local_device_info_provider_mock.h" | 20 #include "components/sync_driver/local_device_info_provider_mock.h" |
15 #include "sync/api/sync_change.h" | |
16 #include "sync/api/sync_change_processor.h" | |
17 #include "sync/api/sync_change_processor_wrapper_for_test.h" | |
18 #include "sync/api/sync_error_factory_mock.h" | |
19 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test
.h" | |
20 #include "sync/util/time.h" | |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 using base::Time; | 23 using base::Time; |
24 using base::TimeDelta; | 24 using base::TimeDelta; |
25 using syncer::AttachmentIdList; | 25 using syncer::AttachmentIdList; |
26 using syncer::AttachmentServiceProxyForTest; | 26 using syncer::AttachmentServiceProxyForTest; |
27 using syncer::ModelType; | 27 using syncer::ModelType; |
28 using syncer::SyncChange; | 28 using syncer::SyncChange; |
29 using syncer::SyncChangeList; | 29 using syncer::SyncChangeList; |
30 using syncer::SyncChangeProcessor; | 30 using syncer::SyncChangeProcessor; |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 sync_pb::EntitySpecifics entity; | 594 sync_pb::EntitySpecifics entity; |
595 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info(); | 595 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info(); |
596 specifics.set_cache_guid("stale"); | 596 specifics.set_cache_guid("stale"); |
597 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity)); | 597 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity)); |
598 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold)); | 598 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold)); |
599 } | 599 } |
600 | 600 |
601 } // namespace | 601 } // namespace |
602 | 602 |
603 } // namespace sync_driver | 603 } // namespace sync_driver |
OLD | NEW |