#include <optional>
#include <string>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/test/metrics/histogram_tester.h"
#include "mojo/public/cpp/bindings/message.h"
#include "mojo/public/cpp/system/functions.h"
#include "net/base/load_flags.h"
#include "net/http/http_request_headers.h"
#include "net/log/test_net_log_util.h"
#include "net/test/gtest_util.h"
#include "net/url_request/referrer_policy.h"
#include "services/network/cors/cors_url_loader.h"
#include "services/network/cors/cors_url_loader_test_util.h"
#include "services/network/public/mojom/cors.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "services/network/public/mojom/url_request.mojom-forward.h"
#include "services/network/test/mock_devtools_observer.h"
#include "services/network/test/test_url_loader_client.h"
#include "services/network/url_loader.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace network::cors {
namespace {
class CorsURLLoaderTAOTest : public CorsURLLoaderTestBase { … };
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassOnSameOriginRedirect) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailOnCrossOriginResource1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailOnCrossOriginNav1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailOnCrossOriginResource2) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailOnCrossOriginNav2) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassOnCrossOriginResource) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassOnCrossOriginNav) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailRedirect1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailRedirectNav1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailRedirect2) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckFailRedirectNav2) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassRedirect1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassRedirectNav1) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassRedirect2) { … }
TEST_F(CorsURLLoaderTAOTest, TAOCheckPassRedirectNav2) { … }
}
}