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/device_info/device_info_sync_service.h" | 5 #include "components/sync/device_info/device_info_sync_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "components/sync/api/attachments/attachment_service_proxy_for_test.h" | |
11 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" | |
12 #include "components/sync/api/sync_error_factory_mock.h" | |
13 #include "components/sync/base/time.h" | 10 #include "components/sync/base/time.h" |
14 #include "components/sync/device_info/device_info_util.h" | 11 #include "components/sync/device_info/device_info_util.h" |
15 #include "components/sync/device_info/local_device_info_provider_mock.h" | 12 #include "components/sync/device_info/local_device_info_provider_mock.h" |
| 13 #include "components/sync/model/attachments/attachment_service_proxy_for_test.h" |
| 14 #include "components/sync/model/sync_change_processor_wrapper_for_test.h" |
| 15 #include "components/sync/model/sync_error_factory_mock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using base::Time; | 18 using base::Time; |
19 using base::TimeDelta; | 19 using base::TimeDelta; |
20 using sync_pb::EntitySpecifics; | 20 using sync_pb::EntitySpecifics; |
21 | 21 |
22 namespace syncer { | 22 namespace syncer { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 sync_pb::EntitySpecifics entity; | 548 sync_pb::EntitySpecifics entity; |
549 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info(); | 549 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info(); |
550 specifics.set_cache_guid("stale"); | 550 specifics.set_cache_guid("stale"); |
551 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity)); | 551 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity)); |
552 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold)); | 552 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold)); |
553 } | 553 } |
554 | 554 |
555 } // namespace | 555 } // namespace |
556 | 556 |
557 } // namespace syncer | 557 } // namespace syncer |
OLD | NEW |