// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_WEB_BUNDLE_SIGNER_H_ #define COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_WEB_BUNDLE_SIGNER_H_ #include <vector> #include "base/containers/enum_set.h" #include "base/containers/span.h" #include "components/cbor/values.h" #include "components/web_package/signed_web_bundles/ecdsa_p256_public_key.h" #include "components/web_package/signed_web_bundles/ed25519_public_key.h" #include "components/web_package/test_support/signed_web_bundles/key_pair.h" namespace web_package::test { // A class for use in tests to create signed web bundles. It can also be used to // create wrongly signed bundles by passing `ErrorForTesting` != `kNoError`. // Since this class is only intended for use in tests, error handling is // implemented in the form of CHECKs. Use this class in conjunction with the // `WebBundleBuilder` class to create signed web bundles. class WebBundleSigner { … }; } // namespace web_package::test #endif // COMPONENTS_WEB_PACKAGE_TEST_SUPPORT_SIGNED_WEB_BUNDLES_WEB_BUNDLE_SIGNER_H_