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/driver/shared_change_processor.h" | 5 #include "components/sync/driver/shared_change_processor.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 #include "components/sync/base/model_type.h" | 14 #include "components/sync/base/model_type.h" |
15 #include "components/sync/core/test/test_user_share.h" | |
16 #include "components/sync/device_info/local_device_info_provider.h" | 15 #include "components/sync/device_info/local_device_info_provider.h" |
17 #include "components/sync/driver/fake_sync_client.h" | 16 #include "components/sync/driver/fake_sync_client.h" |
18 #include "components/sync/driver/generic_change_processor.h" | 17 #include "components/sync/driver/generic_change_processor.h" |
19 #include "components/sync/driver/generic_change_processor_factory.h" | 18 #include "components/sync/driver/generic_change_processor_factory.h" |
20 #include "components/sync/driver/sync_api_component_factory.h" | 19 #include "components/sync/driver/sync_api_component_factory.h" |
21 #include "components/sync/model/attachments/attachment_id.h" | 20 #include "components/sync/model/attachments/attachment_id.h" |
22 #include "components/sync/model/attachments/attachment_service.h" | 21 #include "components/sync/model/attachments/attachment_service.h" |
23 #include "components/sync/model/attachments/attachment_store.h" | 22 #include "components/sync/model/attachments/attachment_store.h" |
24 #include "components/sync/model/data_type_error_handler_mock.h" | 23 #include "components/sync/model/data_type_error_handler_mock.h" |
25 #include "components/sync/model/fake_syncable_service.h" | 24 #include "components/sync/model/fake_syncable_service.h" |
| 25 #include "components/sync/syncable/test_user_share.h" |
26 #include "testing/gmock/include/gmock/gmock.h" | 26 #include "testing/gmock/include/gmock/gmock.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 namespace syncer { | 29 namespace syncer { |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 using ::testing::NiceMock; | 33 using ::testing::NiceMock; |
34 using ::testing::StrictMock; | 34 using ::testing::StrictMock; |
35 | 35 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 // creates AttachmentService and passes it back to the syncable service. | 223 // creates AttachmentService and passes it back to the syncable service. |
224 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { | 224 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { |
225 SetAttachmentStore(); | 225 SetAttachmentStore(); |
226 Connect(); | 226 Connect(); |
227 EXPECT_TRUE(HasAttachmentService()); | 227 EXPECT_TRUE(HasAttachmentService()); |
228 } | 228 } |
229 | 229 |
230 } // namespace | 230 } // namespace |
231 | 231 |
232 } // namespace syncer | 232 } // namespace syncer |
OLD | NEW |