#include <memory>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread_restrictions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "headless/public/headless_browser.h"
#include "headless/public/headless_browser_context.h"
#include "headless/public/headless_web_contents.h"
#include "headless/test/headless_browser_test.h"
#include "headless/test/headless_browser_test_utils.h"
#include "headless/test/headless_devtooled_browsertest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/size.h"
SimpleDevToolsProtocolClient;
namespace headless {
namespace {
const char kMainPageCookie[] = …;
const char kIsolatedPageCookie[] = …;
}
class HeadlessBrowserContextIsolationTest
: public HeadlessDevTooledBrowserTest { … };
HEADLESS_DEVTOOLED_TEST_F(HeadlessBrowserContextIsolationTest);
class HeadlessBrowserUserDataDirTest : public HeadlessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(HeadlessBrowserUserDataDirTest, Do) { … }
IN_PROC_BROWSER_TEST_F(HeadlessBrowserTest, IncognitoMode) { … }
class HeadlessBrowserTestWithUserDataDirAndMaybeIncognito
: public HeadlessBrowserTest,
public testing::WithParamInterface<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(HeadlessBrowserTestWithUserDataDirAndMaybeIncognito,
IncognitoSwitch) { … }
}