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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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
« no previous file with comments | « components/sync/device_info/device_info_sync_service.h ('k') | components/sync/driver/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_sync_service.h ('k') | components/sync/driver/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698