chromium/third_party/anonymous_tokens/src/anonymous_tokens/cpp/privacy_pass/rsa_bssa_public_metadata_client_test.cc

// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "anonymous_tokens/cpp/privacy_pass/rsa_bssa_public_metadata_client.h"

#include <sys/types.h>

#include <memory>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/status/statusor.h"
#include "anonymous_tokens/cpp/crypto/crypto_utils.h"
#include "anonymous_tokens/cpp/privacy_pass/token_encodings.h"
#include "anonymous_tokens/cpp/testing/utils.h"
#include <openssl/digest.h>

namespace anonymous_tokens {
namespace {

class PrivacyPassRsaBssaClientTest : public testing::Test {};

TEST_F(PrivacyPassRsaBssaClientTest, WrongKeySize) {}

TEST_F(PrivacyPassRsaBssaClientTest, WrongSizeOfTokenKeyID) {}

TEST_F(PrivacyPassRsaBssaClientTest, CreateRequestTwice) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWihtoutCreatingRequest) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWithEmptySignature) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeWrongToken) {}

TEST_F(PrivacyPassRsaBssaClientTest,
       FinalizeTokenWhereCreateRequestHasNoExtensions) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenCreatedWithEmptyExtensions) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenTwice) {}

TEST_F(PrivacyPassRsaBssaClientTest, FinalizeTokenWithWrongClient) {}

TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithWrongExtensions) {}

TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithEmptyExtensions) {}

TEST_F(PrivacyPassRsaBssaClientTest, VerifyWithWrongPublicKey) {}

TEST_F(PrivacyPassRsaBssaClientTest, TokenCreationAndVerificationSuccess) {}

}  // namespace
}  // namespace anonymous_tokens