chromium/third_party/anonymous_tokens/src/anonymous_tokens/cpp/privacy_pass/token_encodings_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/token_encodings.h"

#include <cstdint>
#include <string>
#include <utility>
#include <vector>

#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/escaping.h"
#include "absl/time/clock.h"
#include "absl/time/time.h"
#include "absl/types/span.h"
#include "anonymous_tokens/cpp/testing/utils.h"

namespace anonymous_tokens {
namespace {

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     EmptyAuthenticatorInputTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, AuthenticatorInputTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, EmptyMarshalTokenTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, MarshalTokenTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, UnmarshalTooShort) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, UnmarshalTooLong) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, UnmarshalWrongType) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, EmptyExtensionTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ExtensionValueSizeOfMoreThanTwoBytes) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, ExtensionEncodingSuccess) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, EmptyExtensionsTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ExtensionsListSizeOfMoreThanTwoBytes) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     SingleExtensionInExtensionsSuccess) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     MultipleExtensionsEncodingSuccess) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ExpirationTimestampRoundTrip) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ExpirationTimestampWrongType) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, DecodeExtensions) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, DecodeTooShort) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, DecodeTooLong) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, GeoHintRoundTrip) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, GeoHintNoPostal) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, GeoHintNoLowercase) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, GeoHintTooShort) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, GeoHintEmptyOk) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, ChromeServiceTypeRoundTrip) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, CronetServiceTypeRoundTrip) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, WebviewServiceTypeRoundTrip)
{}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, WrongExtId) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, WrongServiceTypeId) {}

TEST(AnonymousTokensDebugMode, RoundTrip) {}

TEST(AnonymousTokensDebugMode, WrongExtId) {}

TEST(AnonymousTokensDebugMode, InvalidMode) {}

TEST(AnonymousTokensProxyLayer, RoundTripProxyA) {}

TEST(AnonymousTokensProxyLayer, RoundTripProxyB) {}

TEST(AnonymousTokensProxyLayer, WrongExtId) {}

TEST(AnonymousTokensProxyLayer, InvalidLayer) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     EmptyMarshalTokenChallengeTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest, MarshalTokenChallengeTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     UnMarshalTokenRequestWrongTokenType) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     UnMarshalTokenRequestBlindedRequestTooShort) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     UnMarshalTokenRequestBlindedRequestTooLong) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     MarshalAndUnmarshalTokenRequest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     UnmarshalExtendedTokenRequestTooShort) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     UnmarshalExtendedTokenRequestTooLong) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     MarshalAndUnmarshalExtendedTokenRequest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ValidateExtensionsValuesTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     NotRoundedExpirationExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     BadPrecisionExpirationExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     MissingCountryGeoHintExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     CountryLowercaseGeoHintExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     NotCountryCodeGeoHintExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     RegionLowercaseGeoHintExtensionValidationTest) {}

TEST(AnonymousTokensPrivacyPassTokenEncodingsTest,
     ValidateExtensionsOrderAndValuesTest) {}

}  // namespace
}  // namespace anonymous_tokens