chromium/components/web_package/signed_web_bundles/ecdsa_p256_public_key_unittest.cc

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

#include "components/web_package/signed_web_bundles/ecdsa_p256_public_key.h"

#include <array>

#include "base/test/gmock_expected_support.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace web_package {

namespace {

ErrorIs;
HasValue;
Eq;

// Valid ECDSA P-256 public key.
constexpr std::array<uint8_t, EcdsaP256PublicKey::kLength> kEcdsaP256PublicKey =;

// Invalid key that is one symbol shorter than necessary.
constexpr std::array<uint8_t, EcdsaP256PublicKey::kLength - 1>
    kInvalidShortPublicKey =;

// `kEcdsaP256PublicKey` with the first byte changed to 0x04 (invalid).
constexpr std::array<uint8_t, EcdsaP256PublicKey::kLength> kInvalidPublicKey =;

}  // namespace

TEST(EcdsaP256PublicKeyTest, Create) {}

}  // namespace web_package