blob: a147ccefe0d2271aaa6d6777dd4c17fa4299a71c [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/cryptauth/fake_cryptauth_service.h"
#include <memory>
#include "base/callback.h"
#include "chromeos/services/device_sync/mock_cryptauth_client.h"
namespace cryptauth {
FakeCryptAuthService::FakeCryptAuthService() {}
FakeCryptAuthService::~FakeCryptAuthService() {}
chromeos::device_sync::CryptAuthDeviceManager*
FakeCryptAuthService::GetCryptAuthDeviceManager() {
return cryptauth_device_manager_;
}
chromeos::device_sync::CryptAuthEnrollmentManager*
FakeCryptAuthService::GetCryptAuthEnrollmentManager() {
return cryptauth_enrollment_manager_;
}
DeviceClassifier FakeCryptAuthService::GetDeviceClassifier() {
return device_classifier_;
}
std::string FakeCryptAuthService::GetAccountId() {
return account_id_;
}
std::unique_ptr<chromeos::device_sync::CryptAuthClientFactory>
FakeCryptAuthService::CreateCryptAuthClientFactory() {
return std::make_unique<chromeos::device_sync::MockCryptAuthClientFactory>(
chromeos::device_sync::MockCryptAuthClientFactory::MockType::
MAKE_NICE_MOCKS);
}
} // namespace cryptauth