#include "third_party/blink/public/common/interest_group/interest_group_mojom_traits.h"
#include <limits>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/common_export.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/interest_group/interest_group.h"
#include "third_party/blink/public/common/interest_group/test/interest_group_test_utils.h"
#include "third_party/blink/public/mojom/interest_group/interest_group_types.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace blink {
namespace {
IgExpectEqualsForTesting;
IgExpectNotEqualsForTesting;
const char kOrigin1[] = …;
const char kOrigin2[] = …;
const char kName1[] = …;
const char kName2[] = …;
const char kUrl1[] = …;
const char kUrl2[] = …;
InterestGroup CreateInterestGroup() { … }
void SerializeAndDeserializeAndCompare(InterestGroup& interest_group) { … }
void SerializeAndDeserializeExpectFailure(InterestGroup& interest_group,
std::string_view tag = "") { … }
}
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeExpiry) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeOwner) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeName) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializePriority) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeEnableBiddingSignalsPrioritization) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializePriorityVector) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializePrioritySignalsOverride) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeNonFinite) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeSellerCapabilities) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAllSellersCapabilities) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeBiddingUrl) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeWasmHelperUrl) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeUpdateUrl) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeTrustedBiddingSignalsUrl) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeCrossOriginTrustedBiddingSignalsUrl) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeTrustedBiddingSignalsKeys) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeTrustedBiddingSignalsSlotSizeMode) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeMaxTrustedBiddingSignalsURLLength) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeTrustedBiddingSignalsCoordinator) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeInvalidTrustedBiddingSignalsCoordinator) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeUserBiddingSignals) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAds) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdsWithReportingIds) { … }
TEST(InterestGroupMojomTraitsTest, AdComponentsWithBuyerReportingIdInvalid) { … }
TEST(InterestGroupMojomTraitsTest,
AdComponentsWithBuyerAndSellerReportingIdInvalid) { … }
TEST(InterestGroupMojomTraitsTest,
AdComponentsWithSelectableReportingIdInvalid) { … }
TEST(InterestGroupMojomTraitsTest, AdComponentsWithNoReportingIdsIsValid) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdsWithSizeGroups) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdsWithAdRenderId) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAdsWithAllowedReportingOrigins) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdComponents) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAdComponentsWithSize) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAdComponentsWithAdRenderId) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdSizes) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeSizeGroups) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAuctionServerRequestFlags) { … }
TEST(InterestGroupMojomTraitsTest, SerializeAndDeserializeAdditionalBidKey) { … }
TEST(InterestGroupMojomTraitsTest,
SerializeAndDeserializeAggregationCoordinatorOrigin) { … }
}