Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: components/sync/device_info/device_info_sync_service_unittest.cc

Issue 2250033002: [Sync] Create //components/sync/device_info. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lint on device info files. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/device_info/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" 13 #include "components/sync/api/sync_change.h"
14 #include "components/sync/api/sync_change_processor.h" 14 #include "components/sync/api/sync_change_processor.h"
15 #include "components/sync/api/sync_change_processor_wrapper_for_test.h" 15 #include "components/sync/api/sync_change_processor_wrapper_for_test.h"
16 #include "components/sync/api/sync_error_factory_mock.h" 16 #include "components/sync/api/sync_error_factory_mock.h"
17 #include "components/sync/base/time.h" 17 #include "components/sync/base/time.h"
18 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h" 18 #include "components/sync/core/attachments/attachment_service_proxy_for_test.h"
19 #include "components/sync/driver/device_info_util.h" 19 #include "components/sync/device_info/device_info_util.h"
20 #include "components/sync/driver/local_device_info_provider_mock.h" 20 #include "components/sync/device_info/local_device_info_provider_mock.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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 sync_pb::EntitySpecifics entity; 572 sync_pb::EntitySpecifics entity;
573 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info(); 573 sync_pb::DeviceInfoSpecifics& specifics = *entity.mutable_device_info();
574 specifics.set_cache_guid("stale"); 574 specifics.set_cache_guid("stale");
575 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity)); 575 StoreSyncData("stale", SyncData::CreateLocalData("stale", "stale", entity));
576 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold)); 576 EXPECT_EQ(0, CountActiveDevices(Time() + DeviceInfoUtil::kActiveThreshold));
577 } 577 }
578 578
579 } // namespace 579 } // namespace
580 580
581 } // namespace sync_driver 581 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_sync_service.cc ('k') | components/sync/device_info/device_info_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698