#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "content/services/auction_worklet/bidder_worklet.h"
#include <stdint.h>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "base/feature_list.h"
#include "base/format_macros.h"
#include "base/functional/bind.h"
#include "base/json/json_writer.h"
#include "base/memory/raw_ptr.h"
#include "base/ranges/algorithm.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
#include "content/common/features.h"
#include "content/public/common/content_features.h"
#include "content/services/auction_worklet/auction_v8_helper.h"
#include "content/services/auction_worklet/public/cpp/real_time_reporting.h"
#include "content/services/auction_worklet/public/mojom/auction_worklet_service.mojom.h"
#include "content/services/auction_worklet/public/mojom/bidder_worklet.mojom-forward.h"
#include "content/services/auction_worklet/public/mojom/private_aggregation_request.mojom.h"
#include "content/services/auction_worklet/public/mojom/real_time_reporting.mojom.h"
#include "content/services/auction_worklet/worklet_devtools_debug_test_util.h"
#include "content/services/auction_worklet/worklet_test_util.h"
#include "content/services/auction_worklet/worklet_v8_debug_test_util.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/self_owned_associated_receiver.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/unique_receiver_set.h"
#include "net/http/http_status_code.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/numeric/int128.h"
#include "third_party/abseil-cpp/absl/types/variant.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/features_generated.h"
#include "third_party/blink/public/common/interest_group/ad_auction_constants.h"
#include "third_party/blink/public/common/interest_group/ad_auction_currencies.h"
#include "third_party/blink/public/common/interest_group/ad_display_size.h"
#include "third_party/blink/public/common/interest_group/interest_group.h"
#include "third_party/blink/public/mojom/interest_group/interest_group_types.mojom.h"
#include "third_party/googletest/src/googlemock/include/gmock/gmock-more-matchers.h"
#include "url/gurl.h"
#include "url/origin.h"
#include "url/url_constants.h"
HasSubstr;
IsEmpty;
StartsWith;
UnorderedElementsAre;
namespace auction_worklet {
namespace {
TaskEnvironment;
PrivateAggregationRequests;
RealTimeReportingContributions;
const uint8_t kToyWasm[] = …;
const char kWasmUrl[] = …;
std::string ToyWasm() { … }
std::string CreateGenerateBidScript(const std::string& raw_return_value,
const std::string& extra_code = "") { … }
static std::string CreateBasicGenerateBidScript() { … }
static std::string CreateBasicGenerateBidScriptWithExtraCode(
const std::string& extra_code) { … }
std::string CreateReportWinScript(const std::string& function_body) { … }
class GenerateBidClientWithCallbacks : public mojom::GenerateBidClient { … };
class BidderWorkletTest : public testing::Test { … };
class BidderWorkletTwoThreadsTest : public BidderWorkletTest { … };
class BidderWorkletMultiThreadingTest
: public BidderWorkletTest,
public testing::WithParamInterface<size_t> { … };
INSTANTIATE_TEST_SUITE_P(…);
class BidderWorkletCustomAdComponentLimitTest : public BidderWorkletTest { … };
class BidderWorkletMultiBidDisabledTest : public BidderWorkletTest { … };
class BidderWorkletMultiBidAndCookieDeprecationTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletTest, PipeClosed) { … }
TEST_F(BidderWorkletTest, NetworkError) { … }
TEST_F(BidderWorkletTest, CompileError) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnValueAd) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnValueBid) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnBidCurrencyExpectUnspecified) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnBidCurrencyExpectCAD) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnValueUrl) { … }
TEST_F(BidderWorkletTest, AdsRenderUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, AdsRenderUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnValueAdComponents) { … }
TEST_F(BidderWorkletCustomAdComponentLimitTest, AdComponentsLimit) { … }
TEST_F(BidderWorkletTest, AdComponentsRenderUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, AdComponentsRenderUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignals) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsNaN) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsInfinity) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsNegative) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsNegativeInfinity) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsNegativeZero) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsPositiveZero) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsNonInteger) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsTooLarge) { … }
TEST_F(BidderWorkletTest, GenerateBidModelingSignalsAlmostTooLarge) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnValueInvalid) { … }
TEST_F(BidderWorkletTest, GenerateBidSetBidThrows) { … }
TEST_F(BidderWorkletTest, GenerateBidSetBidNonTermConversion) { … }
TEST_F(BidderWorkletMultiBidDisabledTest, GenerateBidMultiBid) { … }
TEST_F(BidderWorkletMultiBidAndCookieDeprecationTest, GenerateBidMultiBid) { … }
TEST_F(BidderWorkletMultiBidDisabledTest, ComponentTargetFieldsOnlyMultiBid) { … }
TEST_F(BidderWorkletMultiBidAndCookieDeprecationTest,
ComponentTargetFieldsOnlyMultiBid) { … }
TEST_F(BidderWorkletTest, ComponentTargetFieldsOnlyMultiBid) { … }
TEST_F(BidderWorkletTest, TargetNumAdComponents) { … }
TEST_F(BidderWorkletTest, TargetNumAdComponentsKAnon) { … }
TEST_F(BidderWorkletTest, TargetAndMandatoryAdComponentsKAnon) { … }
TEST_F(BidderWorkletTest, GenerateBidMultiBid) { … }
TEST_F(BidderWorkletMultiBidDisabledTest, SetBidMultiBid) { … }
TEST_F(BidderWorkletTest, SetBidMultiBid) { … }
TEST_F(BidderWorkletTest, GenerateBidDateNotAvailable) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupOwner) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupName) { … }
TEST_F(BidderWorkletTest,
GenerateBidInterestGroupEnableBiddingSignalsPrioritization) { … }
TEST_F(BidderWorkletTest,
GenerateBidInterestGroupUseBiddingSignalsPrioritization) { … }
TEST_F(BidderWorkletTest, UseBiddingSignalsPrioritizationDeprecationWarning) { … }
TEST_F(BidderWorkletTest,
EnableBiddingSignalsPrioritizationNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupPriorityVector) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupBiddingLogicUrl) { … }
TEST_F(BidderWorkletTest, BiddingLogicUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, BiddingLogicUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupBiddingWasmHelperUrl) { … }
TEST_F(BidderWorkletTest, BiddingWasmHelperUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, BiddingWasmHelperUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupUpdateUrl) { … }
TEST_F(BidderWorkletTest, UpdateUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, DailyUpdateUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, UpdateUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupTrustedBiddingSignalsUrl) { … }
TEST_F(BidderWorkletTest, TrustedBiddingSignalsUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, TrustedBiddingSignalsUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupTrustedBiddingSignalsKeys) { … }
TEST_F(BidderWorkletTest, GenerateBidInterestGroupUserBiddingSignals) { … }
TEST_P(BidderWorkletMultiThreadingTest, GenerateBidParallel) { … }
TEST_P(BidderWorkletMultiThreadingTest, GenerateBidParallelLoadFails) { … }
TEST_P(BidderWorkletMultiThreadingTest,
GenerateBidTrustedBiddingSignalsParallelBatched1) { … }
TEST_P(BidderWorkletMultiThreadingTest,
GenerateBidTrustedBiddingSignalsParallelBatched2) { … }
TEST_P(BidderWorkletMultiThreadingTest,
GenerateBidTrustedBiddingSignalsParallelBatched3) { … }
TEST_P(BidderWorkletMultiThreadingTest,
GenerateBidTrustedBiddingSignalsParallelNotBatched) { … }
TEST_P(BidderWorkletMultiThreadingTest, GenerateBidLoadCompletionOrder) { … }
TEST_F(BidderWorkletTest, GenerateBidDirectFromSellerSignalsMultipleWorklets) { … }
TEST_F(BidderWorkletTest, GenerateBidAuctionSignals) { … }
TEST_F(BidderWorkletTest, GenerateBidPerBuyerSignals) { … }
TEST_F(BidderWorkletTest,
GenerateBidDirectFromSellerSignalsHeaderAdSlotAuctionSignals) { … }
TEST_F(BidderWorkletTest,
GenerateBidDirectFromSellerSignalsHeaderAdSlotPerBuyerSignals) { … }
TEST_F(BidderWorkletTest, GenerateBidBrowserSignalSellerOrigin) { … }
TEST_F(BidderWorkletTest, GenerateBidBrowserSignalsAdComponentsLimit) { … }
TEST_F(BidderWorkletCustomAdComponentLimitTest,
GenerateBidBrowserSignalsAdComponentsLimit) { … }
TEST_F(BidderWorkletMultiBidDisabledTest, GenerateBidMultiBidLimit) { … }
TEST_F(BidderWorkletTest, GenerateBidMultiBidLimit) { … }
TEST_F(BidderWorkletTest, GenerateBidBrowserSignalTopLevelSellerOrigin) { … }
TEST_F(BidderWorkletTest, GenerateBidBrowserSignalTopWindowOrigin) { … }
TEST_F(BidderWorkletTest, GenerateBidBrowserSignalJoinCountBidCount) { … }
TEST_F(BidderWorkletTest,
GenerateBidBrowserSignalForDebuggingOnlyInCooldownOrLockout) { … }
TEST_F(BidderWorkletTest, GenerateBidAds) { … }
TEST_F(BidderWorkletTest, GenerateBidAdsWithAllReportingIds) { … }
TEST_F(BidderWorkletTest,
GenerateBidDoesNotContainSelectedReportingIdsWhenFlagDisabled) { … }
TEST_F(BidderWorkletTest, GenerateBidReturnsSelectedReportingId) { … }
TEST_F(BidderWorkletTest, GenerateBidWithInvalidSelectedReportingId) { … }
TEST_F(BidderWorkletTest, GenerateBidAdsWithoutReportingIds) { … }
TEST_F(BidderWorkletTest, GenerateBidAdComponents) { … }
TEST_F(BidderWorkletTest, GenerateBidAllowComponentAuction) { … }
TEST_F(BidderWorkletTest, GenerateBidWasm404) { … }
TEST_F(BidderWorkletTest, GenerateBidWasmFailure) { … }
TEST_F(BidderWorkletTest, GenerateBidWasm) { … }
TEST_F(BidderWorkletTest, WasmReportWin) { … }
TEST_F(BidderWorkletTest, WasmReportWin2) { … }
TEST_F(BidderWorkletTest, WasmOrdering) { … }
std::vector<mojom::PreviousWinPtr> CreateWinList(
const mojom::PreviousWinPtr& win1,
const mojom::PreviousWinPtr& win2 = mojom::PreviousWinPtr(),
const mojom::PreviousWinPtr& win3 = mojom::PreviousWinPtr()) { … }
TEST_F(BidderWorkletTest, GenerateBidPrevWins) { … }
TEST_F(BidderWorkletTest, GenerateBidTrustedBiddingSignals) { … }
TEST_F(BidderWorkletTest, CrossOriginTrustedSignalsDisabled) { … }
TEST_F(BidderWorkletTest, GenerateBidTrustedBiddingSignalsV1) { … }
TEST_F(BidderWorkletTest, GenerateBidOnBiddingSignalsReceivedNoTrustedSignals) { … }
TEST_F(BidderWorkletTest, GenerateBidOnBiddingSignalsReceivedFetchFails) { … }
TEST_F(BidderWorkletTest,
GenerateBidOnBiddingSignalsReceivedNoPriorityVectorRequested) { … }
TEST_F(BidderWorkletTest,
GenerateBidOnBiddingSignalsReceivedNoPriorityVectorReceived) { … }
TEST_F(BidderWorkletTest,
GenerateBidOnBiddingSignalsReceivedPriorityVectorReceived) { … }
TEST_F(
BidderWorkletTest,
GenerateBidOnBiddingSignalsReceivedNoPriorityVectorYesUpdateIfOlderThanMsReceived) { … }
TEST_F(
BidderWorkletTest,
GenerateBidOnBiddingSignalsReceivedYesPriorityVectorYesUpdateIfOlderThanMsReceived) { … }
TEST_F(BidderWorkletTest, GenerateBidCancelAbortsSignalsFetch) { … }
TEST_F(BidderWorkletTest, GenerateBidCancelWhileRunningJavascript) { … }
TEST_F(BidderWorkletTest, GenerateBidDataVersion) { … }
TEST_F(BidderWorkletTest, GenerateBidDataVersionNoKeys) { … }
TEST_F(BidderWorkletTest, GenerateBidWithSetBid) { … }
TEST_F(BidderWorkletTest, GenerateBidExperimentGroupId) { … }
TEST_F(BidderWorkletTest, GenerateBidTimedOut) { … }
TEST_F(BidderWorkletTest, GenerateBidPerBuyerTimeOut) { … }
TEST_F(BidderWorkletTest, GenerateBidTimedOutWithSetBid) { … }
TEST_F(BidderWorkletTest, PerBuyerTimeoutZero) { … }
TEST_F(BidderWorkletTest, GenerateBidTimedOutWithSetBidTwice) { … }
TEST_F(BidderWorkletTest, GenerateBidTimedOutWithSetBidMutateAfter) { … }
TEST_F(BidderWorkletTest, GenerateBidSetPriority) { … }
TEST_F(BidderWorkletTest, GenerateBidSetPrioritySignalsOverrides) { … }
TEST_F(BidderWorkletTest, ReportWin) { … }
TEST_F(BidderWorkletTest, SendReportToLongUrl) { … }
TEST_F(BidderWorkletTest, ContributeToHistogramOnEventPermissionEnforced) { … }
TEST_F(BidderWorkletTest, ContributeToHistogramOnEventPermissionNotEnforced) { … }
TEST_F(BidderWorkletTest, ForDebuggingOnlyReportsWithDebugFeatureDisabled) { … }
TEST_F(BidderWorkletTest, DeleteBeforeReportWinCallback) { … }
TEST_F(BidderWorkletTest, ReportWinParallel) { … }
TEST_F(BidderWorkletTest, ReportWinParallelLoadFails) { … }
TEST_F(BidderWorkletTest, ReportWinDateNotAvailable) { … }
TEST_F(BidderWorkletTest, ReportWinIsForAdditionalBid) { … }
TEST_F(BidderWorkletTest, ReportWinContainsInterestGroupName) { … }
TEST_F(BidderWorkletTest, ReportWinContainsBuyerReportingId) { … }
TEST_F(BidderWorkletTest, ReportWinContainsBuyerAndSellerReportingId) { … }
TEST_F(BidderWorkletTest, ReportWinContainsSelectedBuyerAndSellerReportingId) { … }
TEST_F(BidderWorkletTest, ReportWinContainsNoReportingId) { … }
TEST_F(BidderWorkletTest, ReportWinDataVersion) { … }
TEST_F(BidderWorkletTest, ReportWinLoadCompletionOrder) { … }
TEST_F(BidderWorkletTest, ReportWinAuctionSignals) { … }
TEST_F(BidderWorkletTest, ReportWinPerBuyerSignals) { … }
TEST_F(BidderWorkletTest, ReportWinSellerSignals) { … }
TEST_F(BidderWorkletTest,
ReportWinDirectFromSellerSignalsHeaderAdSlotAuctionSignals) { … }
TEST_F(BidderWorkletTest,
ReportWinDirectFromSellerSignalsHeaderAdSlotPerBuyerSignals) { … }
TEST_F(BidderWorkletTest, ReportWinInterestGroupOwner) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalTopWindowOrigin) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalRenderUrl) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalRenderUrlDeprecationWarning) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalRenderUrlNoDeprecationWarning) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalBid) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalHighestScoringOtherBid) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalBidCurrency) { … }
TEST_F(BidderWorkletTest,
ReportWinBrowserSignalHighestScoringOtherBidCurrency) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalIsHighestScoringOtherBidMe) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalSeller) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalTopLevelSeller) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalModelingSignals) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalJoinCount) { … }
TEST_F(BidderWorkletTest, ReportWinBrowserSignalRecency) { … }
TEST_F(BidderWorkletTest, ReportWinNoBrowserSignalRecencyForAdditionalBid) { … }
TEST_F(BidderWorkletTest, KAnonStatusExposesInReportWinBrowserSignals) { … }
TEST_P(BidderWorkletMultiThreadingTest, ScriptIsolation) { … }
TEST_F(BidderWorkletTest, PauseOnStart) { … }
TEST_F(BidderWorkletTwoThreadsTest, PauseOnStart) { … }
TEST_P(BidderWorkletMultiThreadingTest, PauseOnStartDelete) { … }
TEST_F(BidderWorkletTest, BasicV8Debug) { … }
TEST_F(BidderWorkletTwoThreadsTest, BasicV8Debug) { … }
TEST_F(BidderWorkletTest, ParseErrorV8Debug) { … }
TEST_F(BidderWorkletTwoThreadsTest, ParseErrorV8Debug) { … }
TEST_F(BidderWorkletTest, BasicDevToolsDebug) { … }
TEST_F(BidderWorkletTwoThreadsTest, BasicDevToolsDebug) { … }
TEST_F(BidderWorkletTest, InstrumentationBreakpoints) { … }
TEST_F(BidderWorkletTest, UnloadWhilePaused) { … }
TEST_F(BidderWorkletTest, ExecutionModeGroupByOrigin) { … }
TEST_F(BidderWorkletTest, ExecutionModeGroupByOriginSaveMultipleGroups) { … }
TEST_F(BidderWorkletTest, ExecutionModeFrozenContext) { … }
TEST_F(BidderWorkletTest, ExecutionModeFrozenContextFails) { … }
TEST_F(BidderWorkletTest, AlwaysReuseBidderContext) { … }
TEST_F(BidderWorkletTwoThreadsTest, AlwaysReuseBidderContext) { … }
TEST_F(BidderWorkletTest, Cancelation) { … }
TEST_F(BidderWorkletTest, CancelationDtor) { … }
TEST_F(BidderWorkletTest, CancelBeforeFetch) { … }
class BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest
: public BidderWorkletTest { … };
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
ForDebuggingOnlyReports) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
ForDebuggingOnlyReportsLengthLimit) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
ForDebuggingOnlyArgumentTimeout) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
ForDebuggingOnlyReportsInvalidGenerateBidParameter) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
GenerateBidHasError) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
GenerateBidInvalidReturnValue) { … }
TEST_F(BidderWorkletBiddingAndScoringDebugReportingAPIEnabledTest,
GenerateBidTimedOut) { … }
TEST_F(BidderWorkletTest, ReportWinRegisterAdBeacon) { … }
TEST_F(BidderWorkletTest, ReportWinRegisterAdBeaconLongUrl) { … }
class BidderWorkletSharedStorageAPIDisabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletSharedStorageAPIDisabledTest, SharedStorageNotExposed) { … }
class BidderWorkletSharedStorageAPIEnabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletSharedStorageAPIEnabledTest,
SharedStorageWriteInGenerateBid) { … }
TEST_F(BidderWorkletSharedStorageAPIEnabledTest,
SharedStorageWriteInReportWin) { … }
class BidderWorkletTwoThreadsSharedStorageAPIEnabledTest
: public BidderWorkletSharedStorageAPIEnabledTest { … };
TEST_F(BidderWorkletTwoThreadsSharedStorageAPIEnabledTest,
SharedStorageWriteInGenerateBid) { … }
class BidderWorkletPrivateAggregationEnabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletPrivateAggregationEnabledTest, GenerateBid) { … }
TEST_F(BidderWorkletPrivateAggregationEnabledTest, ReportWin) { … }
class BidderWorkletPrivateAggregationDisabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletPrivateAggregationDisabledTest, GenerateBid) { … }
TEST_F(BidderWorkletPrivateAggregationDisabledTest, ReportWin) { … }
TEST_F(BidderWorkletTest, KAnonSimulate) { … }
TEST_F(BidderWorkletTest, KAnonEnforce) { … }
TEST_F(BidderWorkletTest, KAnonClassify) { … }
TEST_F(BidderWorkletTest, KAnonRerunMultiBid) { … }
TEST_F(BidderWorkletTest, KAnonRerun) { … }
TEST_F(BidderWorkletTest,
BidderWorkletOnlyPassesKAnonSelectableReportingIdsOnRestrictedRun) { … }
TEST_F(BidderWorkletTest,
BidderWorkletRejectsNonKAnonSelectableReportingIdOnRestrictedRun) { … }
TEST_F(BidderWorkletTest, IsKAnonURL) { … }
TEST_F(BidderWorkletTest, IsKAnonResult) { … }
TEST_F(BidderWorkletTest, IsMainAdKAnonResultWithSelectedReportingId) { … }
TEST_F(BidderWorkletTest, AsyncFinalizeGenerateBid) { … }
TEST_F(BidderWorkletTest, AsyncFinalizeGenerateBid2) { … }
class BidderWorkletLatenciesTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletLatenciesTest, GenerateBidLatenciesAreReturned) { … }
TEST_F(BidderWorkletTest, ReportWinLatency) { … }
TEST_F(BidderWorkletTest, ReportWinZeroTimeout) { … }
TEST_F(BidderWorkletTest, ReportWinTimeoutFromAuctionConfig) { … }
TEST_F(BidderWorkletTest, CloseGenerateBidClientBeforeFinalize) { … }
TEST_F(BidderWorkletTest, GenerateBidRenderUrlWithSize) { … }
TEST_F(BidderWorkletTest, GenerateBidAdComponentsWithSize) { … }
TEST_F(BidderWorkletTest, AuctionRequestedSizeIsPresentInBiddingLogic) { … }
TEST_F(BidderWorkletTest,
AuctionRequestedSizeIsAbsentFromInBiddingLogicWhenNotProvided) { … }
class BidderWorkletAdMacroReportingEnabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletAdMacroReportingEnabledTest, ReportWinRegisterAdMacro) { … }
TEST_F(BidderWorkletAdMacroReportingEnabledTest,
ReportWinRegisterAdMacroInvalidArgs) { … }
class BidderWorkletSampleDebugReportsDisabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletSampleDebugReportsDisabledTest,
GenerateBidBrowserSignalForDebuggingOnlyInCooldownOrLockout) { … }
class BidderWorkletCrossOriginTrustedSignalsTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletCrossOriginTrustedSignalsTest, SameOrigin) { … }
TEST_F(BidderWorkletCrossOriginTrustedSignalsTest, CrossOrigin) { … }
class BidderWorkletRealTimeReportingEnabledTest : public BidderWorkletTest { … };
TEST_F(BidderWorkletRealTimeReportingEnabledTest, RealTimeReporting) { … }
TEST_F(BidderWorkletRealTimeReportingEnabledTest, NoBid) { … }
TEST_F(BidderWorkletRealTimeReportingEnabledTest, ScriptTimeout) { … }
TEST_F(BidderWorkletRealTimeReportingEnabledTest,
NotExceedingLatencyThreshold) { … }
TEST_F(BidderWorkletRealTimeReportingEnabledTest,
TrustedBiddingSignalNetworkError) { … }
TEST_F(BidderWorkletRealTimeReportingEnabledTest,
TrustedBiddingSignalNetworkErrorGenerateBidFailed) { … }
}
}