chromium/services/network/trust_tokens/trust_token_query_answerer_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 "services/network/trust_tokens/trust_token_query_answerer.h"

#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "services/network/public/cpp/trust_token_parameterization.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
#include "services/network/trust_tokens/pending_trust_token_store.h"
#include "services/network/trust_tokens/trust_token_key_commitment_getter.h"
#include "services/network/trust_tokens/trust_token_parameterization.h"
#include "services/network/trust_tokens/trust_token_store.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace network {

class TestTrustTokenKeyCommitmentGetter
    : virtual public SynchronousTrustTokenKeyCommitmentGetter {};

TEST(TrustTokenQueryAnswerer, TokenQueryHandlesInsecureIssuerOrigin) {}

TEST(TrustTokenQueryAnswerer, TokenQueryHandlesNonHttpNonHttpsIssuerOrigin) {}

TEST(TrustTokenQueryAnswerer, TokenQueryHandlesFailureToAssociateIssuer) {}

TEST(TrustTokenQueryAnswerer, TokenQuerySuccessWithNoTokens) {}

TEST(TrustTokenQueryAnswerer, TokenQuerySuccessWithTokens) {}

TEST(TrustTokenQueryAnswerer, TokenQuerySuccessWithNoTokensAllKeysAreInvalid) {}

TEST(TrustTokenQueryAnswerer, TokenQuerySuccessWithTokensSomeKeysAreInvalid) {}

TEST(TrustTokenQueryAnswerer,
     TokenQuerySuccessWithNoTokensNoCommitmentsForIssuer) {}

TEST(TrustTokenQueryAnswerer, RedemptionQueryHandlesInsecureIssuerOrigin) {}

TEST(TrustTokenQueryAnswerer,
     RedemptionQueryHandlesNonHttpNonHttpsIssuerOrigin) {}

TEST(TrustTokenQueryAnswerer, RedemptionQueryHandlesFailureToAssociateIssuer) {}

TEST(TrustTokenQueryAnswerer,
     RedemptionQuerySuccessWithNoTokensNoRedemptionRecord) {}

TEST(TrustTokenQueryAnswerer,
     RedemptionQuerySuccessWithTokensNoRedemptionRecord) {}

TEST(TrustTokenQueryAnswerer,
     RedemptionQuerySuccessWithTokensWithRedemptionRecord) {}

}  // namespace network