#include "third_party/blink/renderer/core/frame/location_report_body.h"
#include <set>
#include <vector>
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
namespace {
class TestLocationReportBody : public LocationReportBody { … };
TEST(LocationReportBodyMatchIdTest, SameInputGeneratesSameMatchId) { … }
bool AllDistinct(const std::vector<unsigned>& match_ids) { … }
const struct { … } kLocationReportBodyInputs[] = …;
TEST(LocationReportBodyMatchIdTest, DifferentInputsGenerateDifferentMatchId) { … }
TEST(LocationReportBodyMatchIdTest, MatchIdGeneratedShouldNotBeZero) { … }
TEST(LocationReportBodyMatchIdTest,
EmptyURLGenerateSameMatchIdRegardlessOfOtherParams) { … }
}
}