// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PUBLIC_TEST_PRIVATE_NETWORK_ACCESS_UTIL_H_ #define CONTENT_PUBLIC_TEST_PRIVATE_NETWORK_ACCESS_UTIL_H_ #include "content/public/test/url_loader_interceptor.h" #include "url/gurl.h" namespace content { // URL loader interceptor for testing the // `PrivateNetworkAccessNonSecureContextsAllowed` deprecation trial. // // Trial tokens are tied to a single origin, which precludes the use of // `net::EmbeddedTestServer` and its random port assignment. Instead, we resort // to the use of an interceptor that can serve resources from a fixed origin. class DeprecationTrialURLLoaderInterceptor { … }; } // namespace content #endif // CONTENT_PUBLIC_TEST_PRIVATE_NETWORK_ACCESS_UTIL_H_