chromium/third_party/blink/common/privacy_budget/identifiability_internal_templates_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 "third_party/blink/public/common/privacy_budget/identifiability_internal_templates.h"

#include <cstdint>
#include <limits>
#include <type_traits>

#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace blink {
namespace internal {
namespace {

struct PodType {};

#if !defined(ARCH_CPU_LITTLE_ENDIAN) && !defined(ARCH_CPU_BIG_ENDIAN)
#error "What kind of CPU is this?"
#endif

}  // namespace

// has_unique_object_representations
static_assert;
static_assert;
static_assert;

// long double: check_blink_style doesn't let us use the word 'long' here.
static_assert;

// Pointers aren't considered to have a unique representation.
static_assert;

// Nor are POD types though they could be if they are dense and don't have any
// internal padding.
static_assert;

TEST(IdentifiabilityInternalTemplatesTest, DigestOfObjectRepresentation) {}

TEST(IdentifiabilityInternalTemplatesTest,
     DigestOfObjectRepresentation_Floats) {}

}  // namespace internal
}  // namespace blink