| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void FakeSyncEngine::DeactivateNonBlockingDataType(ModelType type) {} | 54 void FakeSyncEngine::DeactivateNonBlockingDataType(ModelType type) {} |
| 55 | 55 |
| 56 UserShare* FakeSyncEngine::GetUserShare() const { | 56 UserShare* FakeSyncEngine::GetUserShare() const { |
| 57 return nullptr; | 57 return nullptr; |
| 58 } | 58 } |
| 59 | 59 |
| 60 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() { | 60 SyncEngine::Status FakeSyncEngine::GetDetailedStatus() { |
| 61 return SyncEngine::Status(); | 61 return SyncEngine::Status(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 SyncCycleSnapshot FakeSyncEngine::GetLastCycleSnapshot() const { | |
| 65 return SyncCycleSnapshot(); | |
| 66 } | |
| 67 | |
| 68 bool FakeSyncEngine::HasUnsyncedItems() const { | 64 bool FakeSyncEngine::HasUnsyncedItems() const { |
| 69 return false; | 65 return false; |
| 70 } | 66 } |
| 71 | 67 |
| 72 bool FakeSyncEngine::IsNigoriEnabled() const { | 68 bool FakeSyncEngine::IsNigoriEnabled() const { |
| 73 return true; | 69 return true; |
| 74 } | 70 } |
| 75 | 71 |
| 76 PassphraseType FakeSyncEngine::GetPassphraseType() const { | 72 PassphraseType FakeSyncEngine::GetPassphraseType() const { |
| 77 return PassphraseType::IMPLICIT_PASSPHRASE; | 73 return PassphraseType::IMPLICIT_PASSPHRASE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 105 | 101 |
| 106 void FakeSyncEngine::ClearServerData( | 102 void FakeSyncEngine::ClearServerData( |
| 107 const SyncManager::ClearServerDataCallback& callback) { | 103 const SyncManager::ClearServerDataCallback& callback) { |
| 108 callback.Run(); | 104 callback.Run(); |
| 109 } | 105 } |
| 110 | 106 |
| 111 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { | 107 void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch, bool empty_jar) { |
| 112 } | 108 } |
| 113 | 109 |
| 114 } // namespace syncer | 110 } // namespace syncer |
| OLD | NEW |