OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/sync/glue/sync_backend_host_mock.h" | 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" |
6 | 6 |
7 #include "components/sync_driver/sync_frontend.h" | 7 #include "components/sync_driver/sync_frontend.h" |
8 | 8 |
9 namespace browser_sync { | 9 namespace browser_sync { |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 const std::string& passphrase, | 41 const std::string& passphrase, |
42 bool is_explicit) {} | 42 bool is_explicit) {} |
43 | 43 |
44 bool SyncBackendHostMock::SetDecryptionPassphrase( | 44 bool SyncBackendHostMock::SetDecryptionPassphrase( |
45 const std::string& passphrase) { | 45 const std::string& passphrase) { |
46 return false; | 46 return false; |
47 } | 47 } |
48 | 48 |
49 void SyncBackendHostMock::StopSyncingForShutdown() {} | 49 void SyncBackendHostMock::StopSyncingForShutdown() {} |
50 | 50 |
51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown(ShutdownOption option) { | 51 scoped_ptr<base::Thread> SyncBackendHostMock::Shutdown( |
| 52 syncer::ShutdownReason reason) { |
52 return scoped_ptr<base::Thread>(); | 53 return scoped_ptr<base::Thread>(); |
53 } | 54 } |
54 | 55 |
55 void SyncBackendHostMock::UnregisterInvalidationIds() {} | 56 void SyncBackendHostMock::UnregisterInvalidationIds() {} |
56 | 57 |
57 void SyncBackendHostMock::ConfigureDataTypes( | 58 void SyncBackendHostMock::ConfigureDataTypes( |
58 syncer::ConfigureReason reason, | 59 syncer::ConfigureReason reason, |
59 const DataTypeConfigStateMap& config_state_map, | 60 const DataTypeConfigStateMap& config_state_map, |
60 const base::Callback<void(syncer::ModelTypeSet, | 61 const base::Callback<void(syncer::ModelTypeSet, |
61 syncer::ModelTypeSet)>& ready_task, | 62 syncer::ModelTypeSet)>& ready_task, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 syncer::ModelTypeSet types, | 131 syncer::ModelTypeSet types, |
131 base::Callback<void(const std::vector<syncer::ModelType>& type, | 132 base::Callback<void(const std::vector<syncer::ModelType>& type, |
132 ScopedVector<base::ListValue>) > callback) {} | 133 ScopedVector<base::ListValue>) > callback) {} |
133 | 134 |
134 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { | 135 void SyncBackendHostMock::set_fail_initial_download(bool should_fail) { |
135 fail_initial_download_ = should_fail; | 136 fail_initial_download_ = should_fail; |
136 } | 137 } |
137 | 138 |
138 } // namespace browser_sync | 139 } // namespace browser_sync |
139 | 140 |
OLD | NEW |