#include <algorithm>
#include <vector>
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/features_generated.h"
#include "third_party/blink/public/common/origin_trials/scoped_test_origin_trial_policy.h"
#include "third_party/blink/public/platform/web_url_response.h"
#include "third_party/blink/public/web/web_navigation_params.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/html_head_element.h"
#include "third_party/blink/renderer/core/html/html_meta_element.h"
#include "third_party/blink/renderer/core/html/html_script_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/speculation_rules/stub_speculation_host.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
namespace {
[[maybe_unused]] constexpr char kSpeculationRulesPrefetchToken[] = …;
[[maybe_unused]] constexpr char kSimplePrefetchProxyRuleSet[] = …;
[[maybe_unused]] ::testing::AssertionResult DocumentAcceptsRuleSet(
const char* trial_token,
const char* json) { … }
class ScopedRegisterMockedURLLoads { … };
void CommitTestNavigation(
LocalFrame& frame,
const KURL& url,
const Vector<std::pair<String, String>>& response_headers) { … }
[[maybe_unused]] constexpr char kSpeculationRulesPrefetchFutureToken[] = …;
TEST(SpeculationRulesPrefetchFutureOriginTrialTest, FirstPartyTrialToken) { … }
}
}