chromium/content/browser/loader/derived_origin_in_fetch_browsertest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <optional>

#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/url_loader_monitor.h"
#include "content/shell/browser/shell.h"
#include "services/network/public/cpp/resource_request.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"

namespace content {

DerivedOriginInFetchBrowserTest;

// A fetch originating in a context with a file:/// origin should have its
// initiator derived from the originating context's origin.
IN_PROC_BROWSER_TEST_F(DerivedOriginInFetchBrowserTest,
                       FetchFromFileOriginProducesDerivedOrigin) {}

}  // namespace content