chromium/content/browser/attribution_reporting/interop/parser_unittest.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/attribution_reporting/interop/parser.h"

#include <cmath>
#include <functional>
#include <optional>
#include <string>
#include <utility>
#include <vector>

#include "base/functional/overloaded.h"
#include "base/memory/scoped_refptr.h"
#include "base/strings/strcat.h"
#include "base/test/gmock_expected_support.h"
#include "base/test/values_test_util.h"
#include "base/time/time.h"
#include "base/types/expected.h"
#include "base/values.h"
#include "components/attribution_reporting/privacy_math.h"
#include "components/attribution_reporting/suitable_origin.h"
#include "content/browser/attribution_reporting/attribution_config.h"
#include "content/browser/attribution_reporting/attribution_test_utils.h"
#include "net/http/http_response_headers.h"
#include "services/network/public/mojom/attribution.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace content {
namespace {

ErrorIs;
ValueIs;

AllOf;
ElementsAre;
Eq;
Field;
HasSubstr;
IsEmpty;
Optional;
UnorderedElementsAre;
VariantWith;

SuitableOrigin;

TEST(AttributionInteropParserTest, EmptyInputParses) {}

MATCHER_P(SimulationEventTimeIs, matcher, "") {}

MATCHER_P(StartRequestIs, matcher, "") {}

MATCHER_P(ResponseIs, matcher, "") {}

MATCHER_P(EndRequestIs, matcher, "") {}

MATCHER_P(RequestIdIs, matcher, "") {}

TEST(AttributionInteropParserTest, ValidRegistrationsParse) {}

struct ParseErrorTestCase {};

class AttributionInteropParserInputErrorTest
    : public testing::TestWithParam<ParseErrorTestCase> {};

TEST_P(AttributionInteropParserInputErrorTest, InvalidInputFails) {}

const ParseErrorTestCase kParseErrorTestCases[] =;

INSTANTIATE_TEST_SUITE_P();

TEST(AttributionInteropParserTest, ValidConfig) {}

TEST(AttributionInteropParserTest, InvalidConfigPositiveIntegers) {}

TEST(AttributionInteropParserTest, InvalidConfigNonNegativeIntegers) {}

TEST(AttributionInteropParserTest, InvalidConfigMaxSettableEpsilon) {}

TEST(AttributionInteropParserTest, InvalidConfigMaxInfoGain) {}

TEST(AttributionInteropParserTest, InvalidConfigMaxTriggerStateCardinality) {}

TEST(AttributionInteropParserTest, InvalidConfigAggregationCoordinatorOrigins) {}

TEST(AttributionInteropParserTest, ParseOutput) {}

}  // namespace
}  // namespace content