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

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

Issue 2148293004: [Sync] //components/sync external changes [DO NOT SUBMIT] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sc-1
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 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"
18 #include "components/sync/api/attachments/attachment_store.h"
19 #include "components/sync/api/fake_syncable_service.h"
20 #include "components/sync/base/model_type.h"
21 #include "components/sync/core/attachments/attachment_service_impl.h"
22 #include "components/sync/core/test/data_type_error_handler_mock.h"
23 #include "components/sync/core/test/test_user_share.h"
17 #include "components/sync_driver/fake_sync_client.h" 24 #include "components/sync_driver/fake_sync_client.h"
18 #include "components/sync_driver/generic_change_processor.h" 25 #include "components/sync_driver/generic_change_processor.h"
19 #include "components/sync_driver/generic_change_processor_factory.h" 26 #include "components/sync_driver/generic_change_processor_factory.h"
20 #include "components/sync_driver/local_device_info_provider.h" 27 #include "components/sync_driver/local_device_info_provider.h"
21 #include "components/sync_driver/sync_api_component_factory.h" 28 #include "components/sync_driver/sync_api_component_factory.h"
22 #include "sync/api/attachments/attachment_id.h"
23 #include "sync/api/attachments/attachment_store.h"
24 #include "sync/api/fake_syncable_service.h"
25 #include "sync/internal_api/public/attachments/attachment_service_impl.h"
26 #include "sync/internal_api/public/base/model_type.h"
27 #include "sync/internal_api/public/test/data_type_error_handler_mock.h"
28 #include "sync/internal_api/public/test/test_user_share.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;
38 38
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // creates AttachmentService and passes it back to the syncable service. 229 // creates AttachmentService and passes it back to the syncable service.
230 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) { 230 TEST_F(SyncSharedChangeProcessorTest, ConnectWithAttachmentStore) {
231 SetAttachmentStore(); 231 SetAttachmentStore();
232 Connect(); 232 Connect();
233 EXPECT_TRUE(HasAttachmentService()); 233 EXPECT_TRUE(HasAttachmentService());
234 } 234 }
235 235
236 } // namespace 236 } // namespace
237 237
238 } // namespace sync_driver 238 } // namespace sync_driver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698