chromium/services/network/cors/cors_url_loader_shared_dictionary_unittest.cc

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

#include "base/feature_list.h"
#include "mojo/public/cpp/system/data_pipe_utils.h"
#include "net/cookies/site_for_cookies.h"
#include "services/network/cors/cors_url_loader.h"
#include "services/network/cors/cors_url_loader_test_util.h"
#include "services/network/network_context.h"
#include "services/network/public/cpp/features.h"
#include "services/network/shared_dictionary/shared_dictionary_constants.h"
#include "services/network/shared_dictionary/shared_dictionary_in_memory.h"
#include "services/network/shared_dictionary/shared_dictionary_manager.h"
#include "services/network/shared_dictionary/shared_dictionary_storage.h"
#include "services/network/shared_dictionary/shared_dictionary_storage_in_memory.h"
#include "services/network/test/client_security_state_builder.h"
#include "services/network/test/test_url_loader_client.h"
#include "url/scheme_host_port.h"

namespace network::cors {
namespace {
const std::string kTestData =;
const std::string kTestOriginString =;
const std::string kTestInsecureOriginString =;

}  // namespace

class CorsURLLoaderSharedDictionaryTest : public CorsURLLoaderTestBase {};

TEST_F(CorsURLLoaderSharedDictionaryTest, SameOriginUrlSameOriginModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, SameOriginUrlNoCorsModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, CrossOriginUrlNoCorsModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, SameOriginUrlCorsModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       SameOriginUrlCorsWithForcedPreflightModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, SameOriginUrlNavigateModeRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       CrossOriginUrlCorsModeOmitCredentialRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       CrossOriginUrlCorsModeOmitCredentialRequestAsteriskACAO) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       CrossOriginUrlCorsModeIncludeCredentialRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       OnCompleteAfterClosingBodyDataHandle) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       ResetClientRemoteFromNetworkWithoutOnCompleteCalled) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       ResetClientRemoteFromNetworkAfterOnCompleteCalled) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, InsecureContext) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, SharedDictionaryWriterDisabled) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, StorageCountForSecureContext) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, StorageCountForUnsecureContext) {}

TEST_F(CorsURLLoaderSharedDictionaryTest, StorageCountForTrustedFactory) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       StorageCountTopFrameNavigationSecureRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       StorageCountTopFrameNavigationInsecureRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       StorageCountSubFrameNavigationRequest) {}

TEST_F(CorsURLLoaderSharedDictionaryTest,
       StorageCountSubFrameNavigationRequestInsecureContext) {}

}  // namespace network::cors