blob: 5bae9464aa2bfa377d04d59ab3579c0808986e49 [file] [log] [blame]
// Copyright 2019 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 "chromeos/services/device_sync/fake_cryptauth_v2_enroller.h"
#include "chromeos/components/multidevice/logging/logging.h"
namespace chromeos {
namespace device_sync {
FakeCryptAuthV2Enroller::FakeCryptAuthV2Enroller() = default;
FakeCryptAuthV2Enroller::~FakeCryptAuthV2Enroller() = default;
void FakeCryptAuthV2Enroller::FinishAttempt(
const CryptAuthEnrollmentResult& enrollment_result) {
OnAttemptFinished(enrollment_result);
}
void FakeCryptAuthV2Enroller::OnAttemptStarted(
const cryptauthv2::ClientMetadata& client_metadata,
const cryptauthv2::ClientAppMetadata& client_app_metadata,
const base::Optional<cryptauthv2::PolicyReference>&
client_directive_policy_reference) {
client_metadata_ = client_metadata;
client_app_metadata_ = client_app_metadata;
client_directive_policy_reference_ = client_directive_policy_reference;
}
} // namespace device_sync
} // namespace chromeos