#include "content/browser/network/cross_origin_embedder_policy_reporter.h"
#include <optional>
#include <string_view>
#include <vector>
#include "base/test/task_environment.h"
#include "base/unguessable_token.h"
#include "base/values.h"
#include "content/public/test/test_storage_partition.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/cpp/cross_origin_embedder_policy.h"
#include "services/network/public/cpp/request_destination.h"
#include "services/network/test/test_network_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/frame/reporting_observer.mojom.h"
namespace content {
namespace {
CrossOriginEmbedderPolicy;
RequestDestination;
class TestNetworkContext : public network::TestNetworkContext { … };
class TestObserver final : public blink::mojom::ReportingObserver { … };
class CrossOriginEmbedderPolicyReporterTest : public testing::Test { … };
TEST_F(CrossOriginEmbedderPolicyReporterTest, NullEndpointsForCorp) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, BasicCorp) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, UserAndPassForCorp) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, ObserverForCorp) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, Clone) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, NullEndpointsForNavigation) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, BasicNavigation) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, ObserverForNavigation) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, UserAndPassForNavigation) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest,
NullEndpointsForWorkerInitialization) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, BasicWorkerInitialization) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, ObserverForWorkerInitialization) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest,
UserAndPassForWorkerInitialization) { … }
TEST_F(CrossOriginEmbedderPolicyReporterTest, StoragePartitionInvalidated) { … }
}
}