chromium/chrome/browser/enterprise/remote_commands/rotate_attestation_credential_job_unittest.cc

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/enterprise/remote_commands/rotate_attestation_credential_job.h"

#include "base/functional/callback.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "chrome/browser/enterprise/connectors/device_trust/device_trust_features.h"
#include "chrome/browser/enterprise/connectors/device_trust/key_management/browser/mock_device_trust_key_manager.h"
#include "components/enterprise/browser/device_trust/device_trust_key_manager.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

KeyRotationResult;

_;
Invoke;

namespace enterprise_commands {

namespace {

constexpr policy::RemoteCommandJob::UniqueIDType kUniqueID =;

const char kNonceField[] =;
const char kNonceValue[] =;

enterprise_management::RemoteCommand CreateCommand() {}

std::string GetPayloadWithNonce() {}

std::string GetEmptyPayload() {}

}  // namespace

class RotateAttestationCredentialJobTest
    : public testing::Test,
      public testing::WithParamInterface<bool> {};

// Tests that a job conveys a successful key rotation properly.
TEST_P(RotateAttestationCredentialJobTest, SuccessRun) {}

// Tests that a job conveys a failed key rotation properly.
TEST_P(RotateAttestationCredentialJobTest, FailedRun) {}

// Tests that a job conveys a cancelled key rotation properly.
TEST_P(RotateAttestationCredentialJobTest, CancelledRun) {}

// Tests that a job handles a bad payload properly.
TEST_P(RotateAttestationCredentialJobTest, BadPayload) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace enterprise_commands