chromium/services/network/trust_tokens/trust_token_key_commitments_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.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "services/network/trust_tokens/trust_token_key_commitments.h"

#include "base/base64.h"
#include "base/ranges/algorithm.h"
#include "base/test/bind.h"
#include "base/test/scoped_command_line.h"
#include "base/test/task_environment.h"
#include "services/network/public/cpp/network_switches.h"
#include "services/network/public/mojom/trust_tokens.mojom-forward.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
#include "services/network/trust_tokens/suitable_trust_token_origin.h"
#include "services/network/trust_tokens/trust_token_parameterization.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace network {

mojom::TrustTokenKeyCommitmentResultPtr GetCommitmentForOrigin(
    const TrustTokenKeyCommitments& commitments,
    const url::Origin& origin) {}

TEST(TrustTokenKeyCommitments, Empty) {}

TEST(TrustTokenKeyCommitments, CantRetrieveRecordForUnsuitableOrigin) {}

TEST(TrustTokenKeyCommitments, CanRetrieveRecordForSuitableOrigin) {}

TEST(TrustTokenKeyCommitments, CantRetrieveRecordForOriginNotPresent) {}

TEST(TrustTokenKeyCommitments, MultipleOrigins) {}

TEST(TrustTokenKeyCommitments, ParseAndSet) {}

TEST(TrustTokenKeyCommitments, KeysFromCommandLine) {}

TEST(TrustTokenKeyCommitments, FiltersKeys) {}

TEST(TrustTokenKeyCommitments, GetSync) {}

}  // namespace network