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 "components/sync/engine/fake_sync_engine.h" | 5 #include "components/sync/engine/fake_sync_engine.h" |
6 | 6 |
7 #include "components/sync/engine/activation_context.h" | 7 #include "components/sync/engine/activation_context.h" |
8 #include "components/sync/engine/sync_engine_host.h" | 8 #include "components/sync/engine/sync_engine_host.h" |
9 | 9 |
10 namespace syncer { | 10 namespace syncer { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 void FakeSyncEngine::DisableProtocolEventForwarding() {} | 85 void FakeSyncEngine::DisableProtocolEventForwarding() {} |
86 | 86 |
87 void FakeSyncEngine::EnableDirectoryTypeDebugInfoForwarding() {} | 87 void FakeSyncEngine::EnableDirectoryTypeDebugInfoForwarding() {} |
88 | 88 |
89 void FakeSyncEngine::DisableDirectoryTypeDebugInfoForwarding() {} | 89 void FakeSyncEngine::DisableDirectoryTypeDebugInfoForwarding() {} |
90 | 90 |
91 void FakeSyncEngine::set_fail_initial_download(bool should_fail) { | 91 void FakeSyncEngine::set_fail_initial_download(bool should_fail) { |
92 fail_initial_download_ = should_fail; | 92 fail_initial_download_ = should_fail; |
93 } | 93 } |
94 | 94 |
95 void FakeSyncEngine::ClearServerData( | 95 void FakeSyncEngine::ClearServerData(const base::Closure& callback) { |
96 const SyncManager::ClearServerDataCallback& callback) { | |
97 callback.Run(); | 96 callback.Run(); |
98 } | 97 } |
99 | 98 |
100 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, | 99 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, |
101 bool empty_jar, | 100 bool empty_jar, |
102 const base::Closure& callback) { | 101 const base::Closure& callback) { |
103 if (!callback.is_null()) { | 102 if (!callback.is_null()) { |
104 callback.Run(); | 103 callback.Run(); |
105 } | 104 } |
106 } | 105 } |
107 | 106 |
108 } // namespace syncer | 107 } // namespace syncer |
OLD | NEW |