#include "services/network/trust_tokens/expiry_inspecting_record_expiry_delegate.h"
#include <vector>
#include "base/test/task_environment.h"
#include "components/cbor/values.h"
#include "components/cbor/writer.h"
#include "services/network/public/mojom/trust_tokens.mojom.h"
#include "services/network/trust_tokens/proto/public.pb.h"
#include "services/network/trust_tokens/suitable_trust_token_origin.h"
#include "services/network/trust_tokens/trust_token_key_commitment_getter.h"
#include "services/network/trust_tokens/trust_token_parameterization.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network {
namespace {
class FixedKeyCommitmentGetter
: public SynchronousTrustTokenKeyCommitmentGetter { … };
}
TEST(ExpiryInspectingRecordExpiryDelegate, ExpiresRecordWhenNoKeys) { … }
TEST(ExpiryInspectingRecordExpiryDelegate, ExpiresRecordWithNoMatchingKey) { … }
TEST(ExpiryInspectingRecordExpiryDelegate, ExpiresRecordOutOfLifetime) { … }
TEST(ExpiryInspectingRecordExpiryDelegate, ExpiresRecordWithZeroLifetime) { … }
TEST(ExpiryInspectingRecordExpiryDelegate,
DoesntExpireUnexpiredRecordLifetimeNotSet) { … }
TEST(ExpiryInspectingRecordExpiryDelegate,
DoesntExpireUnexpiredRecordLifetimeSet) { … }
}