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/async_directory_type_controller.h" | 5 #include "components/sync/driver/async_directory_type_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ACTION_P(SaveChangeProcessor, scoped_change_processor) { | 59 ACTION_P(SaveChangeProcessor, scoped_change_processor) { |
60 scoped_change_processor->reset(arg2); | 60 scoped_change_processor->reset(arg2); |
61 } | 61 } |
62 | 62 |
63 class SharedChangeProcessorMock : public SharedChangeProcessor { | 63 class SharedChangeProcessorMock : public SharedChangeProcessor { |
64 public: | 64 public: |
65 explicit SharedChangeProcessorMock(ModelType type) | 65 explicit SharedChangeProcessorMock(ModelType type) |
66 : SharedChangeProcessor(type) {} | 66 : SharedChangeProcessor(type) {} |
67 | 67 |
68 base::WeakPtr<SyncableService> Connect( | 68 base::WeakPtr<SyncableService> Connect( |
69 const SyncClient::ServiceProvider&, | 69 SyncClient*, |
70 SyncApiComponentFactory* driver_factory, | |
71 GenericChangeProcessorFactory*, | 70 GenericChangeProcessorFactory*, |
72 UserShare*, | 71 UserShare*, |
73 std::unique_ptr<DataTypeErrorHandler>, | 72 std::unique_ptr<DataTypeErrorHandler>, |
74 const base::WeakPtr<SyncMergeResult>&) { | 73 const base::WeakPtr<SyncMergeResult>&) { |
75 return std::move(connect_return_); | 74 return std::move(connect_return_); |
76 } | 75 } |
77 MOCK_METHOD0(Disconnect, bool()); | 76 MOCK_METHOD0(Disconnect, bool()); |
78 MOCK_METHOD2(ProcessSyncChanges, | 77 MOCK_METHOD2(ProcessSyncChanges, |
79 SyncError(const tracked_objects::Location&, | 78 SyncError(const tracked_objects::Location&, |
80 const SyncChangeList&)); | 79 const SyncChangeList&)); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 backend_thread_.task_runner()->PostTask( | 473 backend_thread_.task_runner()->PostTask( |
475 FROM_HERE, | 474 FROM_HERE, |
476 base::Bind(&DataTypeErrorHandler::OnUnrecoverableError, | 475 base::Bind(&DataTypeErrorHandler::OnUnrecoverableError, |
477 base::Passed(non_ui_dtc_->CreateErrorHandler()), error)); | 476 base::Passed(non_ui_dtc_->CreateErrorHandler()), error)); |
478 WaitForDTC(); | 477 WaitForDTC(); |
479 } | 478 } |
480 | 479 |
481 } // namespace | 480 } // namespace |
482 | 481 |
483 } // namespace syncer | 482 } // namespace syncer |
OLD | NEW |