chromium/third_party/blink/renderer/core/frame/report_test.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/renderer/core/frame/report.h"

#include <vector>

#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/frame/document_policy_violation_report_body.h"
#include "third_party/blink/renderer/core/frame/location_report_body.h"
#include "third_party/blink/renderer/core/frame/permissions_policy_violation_report_body.h"

namespace blink {
namespace {

// Test whether Report::MatchId() is a pure function, i.e. same input
// will give same return value.
// The input values are randomly picked values.
TEST(ReportMatchIdTest, SameInputGeneratesSameMatchId) {}

bool AllDistinct(const std::vector<unsigned>& match_ids) {}

const struct {} kReportInputs[] =;

TEST(ReportMatchIdTest, DifferentInputsGenerateDifferentMatchId) {}

TEST(ReportMatchIdTest, MatchIdGeneratedShouldNotBeZero) {}

}  // namespace
}  // namespace blink