#include "base/command_line.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/content_settings/core/common/content_settings.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/browser_test.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/test/extension_test_message_listener.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/mojom/cookie_manager.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
namespace extensions {
ContextType;
namespace {
enum class SameSiteCookieSemantics { … };
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ReadFromDocument) { … }
class CookiesApiTest : public ExtensionApiTest,
public testing::WithParamInterface<
std::tuple<ContextType, SameSiteCookieSemantics>> { … };
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
#if BUILDFLAG(IS_WIN)
#define MAYBE_Cookies …
#else
#define MAYBE_Cookies …
#endif
IN_PROC_BROWSER_TEST_P(CookiesApiTest, MAYBE_Cookies) { … }
IN_PROC_BROWSER_TEST_P(CookiesApiTest, CookiesEvents) { … }
IN_PROC_BROWSER_TEST_P(CookiesApiTest, CookiesEventsSpanning) { … }
IN_PROC_BROWSER_TEST_P(CookiesApiTest, CookiesEventsSpanningAsync) { … }
IN_PROC_BROWSER_TEST_P(CookiesApiTest, CookiesNoPermission) { … }
}