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

Side by Side Diff: components/sync/driver/shared_change_processor_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/shared_change_processor.h" 5 #include "components/sync/driver/shared_change_processor.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "base/synchronization/waitable_event.h" 15 #include "base/synchronization/waitable_event.h"
16 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
17 #include "components/sync/api/attachments/attachment_id.h" 17 #include "components/sync/api/attachments/attachment_id.h"
18 #include "components/sync/api/attachments/attachment_store.h" 18 #include "components/sync/api/attachments/attachment_store.h"
19 #include "components/sync/api/fake_syncable_service.h" 19 #include "components/sync/api/fake_syncable_service.h"
20 #include "components/sync/base/model_type.h" 20 #include "components/sync/base/model_type.h"
21 #include "components/sync/core/attachments/attachment_service_impl.h" 21 #include "components/sync/core/attachments/attachment_service_impl.h"
22 #include "components/sync/core/test/data_type_error_handler_mock.h" 22 #include "components/sync/core/test/data_type_error_handler_mock.h"
23 #include "components/sync/core/test/test_user_share.h" 23 #include "components/sync/core/test/test_user_share.h"
24 #include "components/sync/device_info/local_device_info_provider.h"
24 #include "components/sync/driver/fake_sync_client.h" 25 #include "components/sync/driver/fake_sync_client.h"
25 #include "components/sync/driver/generic_change_processor.h" 26 #include "components/sync/driver/generic_change_processor.h"
26 #include "components/sync/driver/generic_change_processor_factory.h" 27 #include "components/sync/driver/generic_change_processor_factory.h"
27 #include "components/sync/driver/local_device_info_provider.h"
28 #include "components/sync/driver/sync_api_component_factory.h" 28 #include "components/sync/driver/sync_api_component_factory.h"
29 #include "testing/gmock/include/gmock/gmock.h" 29 #include "testing/gmock/include/gmock/gmock.h"
30 #include "testing/gtest/include/gtest/gtest.h" 30 #include "testing/gtest/include/gtest/gtest.h"
31 31
32 namespace sync_driver { 32 namespace sync_driver {
33 33
34 namespace { 34 namespace {
35 35
36 using ::testing::NiceMock; 36 using ::testing::NiceMock;
37 using ::testing::StrictMock; 37 using ::testing::StrictMock;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // creates AttachmentService and passes it back to the syncable service. 228 // creates AttachmentService and passes it back to the syncable service.
229 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { 229 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) {
230 SetAttachmentStore(); 230 SetAttachmentStore();
231 Connect(); 231 Connect();
232 EXPECT_TRUE(HasAttachmentService()); 232 EXPECT_TRUE(HasAttachmentService());
233 } 233 }
234 234
235 } // namespace 235 } // namespace
236 236
237 } // namespace sync_driver 237 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698