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

Side by Side Diff: components/sync_driver/device_info_service_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_service.h" 5 #include "components/sync_driver/device_info_service.h"
6 6
7 #include <map> 7 #include <map>
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "components/sync/api/data_batch.h"
19 #include "components/sync/api/entity_data.h"
20 #include "components/sync/api/fake_model_type_change_processor.h"
21 #include "components/sync/api/metadata_batch.h"
22 #include "components/sync/api/model_type_store.h"
23 #include "components/sync/base/time.h"
24 #include "components/sync/core/test/data_type_error_handler_mock.h"
25 #include "components/sync/core/test/model_type_store_test_util.h"
26 #include "components/sync/protocol/data_type_state.pb.h"
18 #include "components/sync_driver/local_device_info_provider_mock.h" 27 #include "components/sync_driver/local_device_info_provider_mock.h"
19 #include "sync/api/data_batch.h"
20 #include "sync/api/entity_data.h"
21 #include "sync/api/fake_model_type_change_processor.h"
22 #include "sync/api/metadata_batch.h"
23 #include "sync/api/model_type_store.h"
24 #include "sync/internal_api/public/test/data_type_error_handler_mock.h"
25 #include "sync/internal_api/public/test/model_type_store_test_util.h"
26 #include "sync/protocol/data_type_state.pb.h"
27 #include "sync/util/time.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
30 namespace sync_driver_v2 { 30 namespace sync_driver_v2 {
31 31
32 using base::Time; 32 using base::Time;
33 using base::TimeDelta; 33 using base::TimeDelta;
34 using syncer::SyncError; 34 using syncer::SyncError;
35 using syncer_v2::DataBatch; 35 using syncer_v2::DataBatch;
36 using syncer_v2::EntityChange; 36 using syncer_v2::EntityChange;
37 using syncer_v2::EntityChangeList; 37 using syncer_v2::EntityChangeList;
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 specifics.set_cache_guid("non-local"); 767 specifics.set_cache_guid("non-local");
768 PushBackEntityChangeAdd(specifics, &change_list); 768 PushBackEntityChangeAdd(specifics, &change_list);
769 service()->ApplySyncChanges(service()->CreateMetadataChangeList(), 769 service()->ApplySyncChanges(service()->CreateMetadataChangeList(),
770 change_list); 770 change_list);
771 EXPECT_EQ(1, service()->CountActiveDevices()); 771 EXPECT_EQ(1, service()->CountActiveDevices());
772 } 772 }
773 773
774 } // namespace 774 } // namespace
775 775
776 } // namespace sync_driver_v2 776 } // namespace sync_driver_v2
OLDNEW
« no previous file with comments | « components/sync_driver/device_info_service.cc ('k') | components/sync_driver/device_info_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698