chromium/device/fido/auth_token_requester_unittest.cc

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

#include "device/fido/auth_token_requester.h"

#include <list>
#include <optional>
#include <string>

#include "base/containers/contains.h"
#include "base/containers/span.h"
#include "base/logging.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/task_environment.h"
#include "device/fido/fido_constants.h"
#include "device/fido/fido_device_authenticator.h"
#include "device/fido/pin.h"
#include "device/fido/virtual_ctap2_device.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace device {
namespace {

ElementsAreArray;

ClientPinAvailability;
UserVerificationAvailability;

constexpr char kTestPIN[] =;
constexpr char16_t kTestPIN16[] =;
constexpr char16_t kNewPIN[] =;

struct TestExpectation {};

struct TestCase {};

class TestAuthTokenRequesterDelegate : public AuthTokenRequester::Delegate {};

class AuthTokenRequesterTest : public ::testing::Test {};

TEST_F(AuthTokenRequesterTest, AuthenticatorWithoutUVTokenSupport) {}

TEST_F(AuthTokenRequesterTest, AuthenticatorWithUVTokenSupport) {}

TEST_F(AuthTokenRequesterTest, PINSoftLock) {}

TEST_F(AuthTokenRequesterTest, PINHardLock) {}

TEST_F(AuthTokenRequesterTest, PINInvalid) {}

TEST_F(AuthTokenRequesterTest, PINTooShort) {}

TEST_F(AuthTokenRequesterTest, UVLockedPINFallback) {}

TEST_F(AuthTokenRequesterTest, UVAlreadyLockedPINFallback) {}

TEST_F(AuthTokenRequesterTest, ForcePINChange) {}

TEST_F(AuthTokenRequesterTest, ForcePINChangeSameAsCurrent) {}

TEST_F(AuthTokenRequesterTest, NoCallsIfNotSelected) {}

}  // namespace
}  // namespace device