#include "components/sync/test/fake_sync_engine.h"
#include <utility>
#include "base/functional/callback.h"
#include "components/sync/engine/data_type_activation_response.h"
#include "components/sync/engine/nigori/nigori.h"
#include "components/sync/engine/sync_engine_host.h"
#include "components/sync/model/data_type_controller_delegate.h"
namespace syncer {
constexpr char FakeSyncEngine::kTestBirthday[];
FakeSyncEngine::FakeSyncEngine(
bool allow_init_completion,
bool is_first_time_sync_configure,
const base::RepeatingClosure& sync_transport_data_cleared_cb)
: … { … }
FakeSyncEngine::~FakeSyncEngine() = default;
void FakeSyncEngine::TriggerInitializationCompletion(bool success) { … }
void FakeSyncEngine::SetPollIntervalElapsed(bool elapsed) { … }
void FakeSyncEngine::SetDetailedStatus(const SyncStatus& status) { … }
void FakeSyncEngine::Initialize(InitParams params) { … }
bool FakeSyncEngine::IsInitialized() const { … }
void FakeSyncEngine::TriggerRefresh(const DataTypeSet& types) { … }
void FakeSyncEngine::UpdateCredentials(const SyncCredentials& credentials) { … }
void FakeSyncEngine::InvalidateCredentials() { … }
std::string FakeSyncEngine::GetCacheGuid() const { … }
std::string FakeSyncEngine::GetBirthday() const { … }
base::Time FakeSyncEngine::GetLastSyncedTimeForDebugging() const { … }
void FakeSyncEngine::StartConfiguration() { … }
void FakeSyncEngine::StartSyncingWithServer() { … }
void FakeSyncEngine::StartHandlingInvalidations() { … }
void FakeSyncEngine::SetEncryptionPassphrase(
const std::string& passphrase,
const KeyDerivationParams& key_derivation_params) { … }
void FakeSyncEngine::SetExplicitPassphraseDecryptionKey(
std::unique_ptr<Nigori> key) { … }
void FakeSyncEngine::AddTrustedVaultDecryptionKeys(
const std::vector<std::vector<uint8_t>>& keys,
base::OnceClosure done_cb) { … }
void FakeSyncEngine::StopSyncingForShutdown() { … }
void FakeSyncEngine::Shutdown(ShutdownReason reason) { … }
void FakeSyncEngine::ConfigureDataTypes(ConfigureParams params) { … }
void FakeSyncEngine::ConnectDataType(
DataType type,
std::unique_ptr<DataTypeActivationResponse> activation_response) { … }
void FakeSyncEngine::DisconnectDataType(DataType type) { … }
const SyncStatus& FakeSyncEngine::GetDetailedStatus() const { … }
void FakeSyncEngine::HasUnsyncedItemsForTest(
base::OnceCallback<void(bool)> cb) const { … }
void FakeSyncEngine::GetThrottledDataTypesForTest(
base::OnceCallback<void(DataTypeSet)> cb) const { … }
void FakeSyncEngine::RequestBufferedProtocolEventsAndEnableForwarding() { … }
void FakeSyncEngine::DisableProtocolEventForwarding() { … }
void FakeSyncEngine::OnCookieJarChanged(bool account_mismatch,
base::OnceClosure callback) { … }
bool FakeSyncEngine::IsNextPollTimeInThePast() const { … }
void FakeSyncEngine::GetNigoriNodeForDebugging(AllNodesCallback callback) { … }
void FakeSyncEngine::RecordNigoriMemoryUsageAndCountsHistograms() { … }
void FakeSyncEngine::GetTypesWithUnsyncedData(
base::OnceCallback<void(DataTypeSet)> cb) const { … }
}