#include "content/services/auction_worklet/worklet_loader.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/time/time.h"
#include "content/services/auction_worklet/auction_v8_helper.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_remote.h"
#include "net/http/http_status_code.h"
#include "services/network/public/mojom/url_response_head.mojom.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 "url/gurl.h"
#include "v8/include/v8-context.h"
#include "v8/include/v8-wasm.h"
ElementsAre;
HasSubstr;
StartsWith;
namespace auction_worklet {
namespace {
const char kValidScript[] = …;
const char kInvalidScript[] = …;
const char kMinimalWasmModuleBytes[] = …;
class WorkletLoaderTest : public testing::Test { … };
TEST_F(WorkletLoaderTest, NetworkError) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_NetworkError) { … }
TEST_F(WorkletLoaderTest, CompileError) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_CompileError) { … }
TEST_F(WorkletLoaderTest, CompileErrorWithDebugger) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_CompileErrorWithDebugger) { … }
TEST_F(WorkletLoaderTest, Success) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_Success) { … }
TEST_F(WorkletLoaderTest, DeleteDuringCallbackSuccess) { … }
TEST_F(WorkletLoaderTest, DeleteDuringCallbackCompileError) { … }
TEST_F(WorkletLoaderTest, DeleteBeforeCallback) { … }
TEST_F(WorkletLoaderTest, LoadWasmSuccess) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_LoadWasmSuccess) { … }
TEST_F(WorkletLoaderTest, LoadWasmError) { … }
TEST_F(WorkletLoaderTest, TwoV8Helpers_LoadWasmError) { … }
TEST_F(WorkletLoaderTest, TrustedSignalsHeader) { … }
TEST_F(WorkletLoaderTest, TrustedSignalsHeaderNoAllowed) { … }
TEST_F(WorkletLoaderTest, TrustedSignalsHeaderCombine) { … }
TEST_F(WorkletLoaderTest, ParseAllowTrustedScoringSignalsFromHeader) { … }
}
}