#include <memory>
#include "base/command_line.h"
#include "base/path_service.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/net/storage_test_utils.h"
#include "chrome/browser/policy/policy_test_utils.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/policy_constants.h"
#include "content/public/common/content_paths.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "net/base/features.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace policy {
namespace {
const char kURL[] = …;
}
class SameSiteCookiesPolicyTest : public PolicyTest,
public ::testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_P(SameSiteCookiesPolicyTest,
AllowLegacyCookieAccessForDomain) { … }
IN_PROC_BROWSER_TEST_P(SameSiteCookiesPolicyTest,
AllowCrossSchemeFrameLegacyCookies) { … }
IN_PROC_BROWSER_TEST_P(SameSiteCookiesPolicyTest,
DisallowCrossSchemeFrameNonLegacyCookies) { … }
IN_PROC_BROWSER_TEST_P(SameSiteCookiesPolicyTest,
AllowStrictOnCrossSchemeNavigation) { … }
IN_PROC_BROWSER_TEST_P(SameSiteCookiesPolicyTest,
DisallowStrictOnCrossSchemeNavigation) { … }
INSTANTIATE_TEST_SUITE_P(…);
}