#include "build/build_config.h"
#include "content/browser/back_forward_cache_browsertest.h"
#include "base/task/single_thread_task_runner.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "net/test/embedded_test_server/controllable_http_response.h"
#include "third_party/blink/public/common/features.h"
namespace content {
NotRestoredReason;
IN_PROC_BROWSER_TEST_F(BackForwardCacheBrowserTest, FetchWhileStoring) { … }
IN_PROC_BROWSER_TEST_F(BackForwardCacheBrowserTest,
DISABLED_FetchRedirectedWhileStoring) { … }
IN_PROC_BROWSER_TEST_F(BackForwardCacheBrowserTest,
DISABLED_KeepAliveFetchRedirectedWhileStoring) { … }
class BackForwardCacheDrainedAsBytesConsumerTest
: public BackForwardCacheBrowserTest,
public testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_F(
BackForwardCacheDrainedAsBytesConsumerTest,
PageWithDrainedDatapipeRequestsForFetchShouldBeEvictedOrNot) { … }
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_CHROMEOS)
#define MAYBE_PageWithDrainedDatapipeAsBytesConsumerCannotProcessTooMuchData …
#else
#define MAYBE_PageWithDrainedDatapipeAsBytesConsumerCannotProcessTooMuchData …
#endif
IN_PROC_BROWSER_TEST_F(
BackForwardCacheDrainedAsBytesConsumerTest,
MAYBE_PageWithDrainedDatapipeAsBytesConsumerCannotProcessTooMuchData) { … }
IN_PROC_BROWSER_TEST_F(
BackForwardCacheBrowserTest,
PageWithDrainedDatapipeRequestsForScriptStreamerShouldNotBeEvicted) { … }
enum class BackgroundResourceFetchTestCase { … };
class BackForwardCacheNetworkLimitBrowserTest
: public BackForwardCacheBrowserTest,
public testing::WithParamInterface<BackgroundResourceFetchTestCase> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
PageWithDrainedDatapipeRequestsForScriptStreamerShouldBeEvictedIfStreamedTooMuch) { … }
IN_PROC_BROWSER_TEST_P(BackForwardCacheNetworkLimitBrowserTest,
ImageStillLoading_ResponseStartedWhileFrozen) { … }
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
ImageStillLoading_ResponseStartedWhileRestoring_DoNotTriggerEviction) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit …
#else
#define MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit …
#endif
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit_SameSiteSubframe …
#else
#define MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit_SameSiteSubframe …
#endif
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
MAYBE_ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit_SameSiteSubframe) { … }
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit_ResetOnRestore) { … }
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
ImageStillLoading_ResponseStartedWhileFrozen_ExceedsPerProcessBytesLimit_ResetOnDetach) { … }
IN_PROC_BROWSER_TEST_P(BackForwardCacheNetworkLimitBrowserTest,
ImageStillLoading_ResponseStartedWhileFrozen_Timeout) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_ImageStillLoading_ResponseStartedBeforeFreezing_ExceedsPerProcessBytesLimit …
#else
#define MAYBE_ImageStillLoading_ResponseStartedBeforeFreezing_ExceedsPerProcessBytesLimit …
#endif
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
MAYBE_ImageStillLoading_ResponseStartedBeforeFreezing_ExceedsPerProcessBytesLimit) { … }
IN_PROC_BROWSER_TEST_P(BackForwardCacheNetworkLimitBrowserTest,
TimeoutNotTriggeredAfterDone) { … }
IN_PROC_BROWSER_TEST_P(
BackForwardCacheNetworkLimitBrowserTest,
TimeoutNotTriggeredAfterDone_ResponseStartedBeforeFreezing) { … }
IN_PROC_BROWSER_TEST_F(BackForwardCacheBrowserTest,
ImageStillLoading_ResponseStartedBeforeFreezing) { … }
class BackForwardCacheBrowserTestWithDisallowJavaScriptExecution
: public BackForwardCacheBrowserTest { … };
IN_PROC_BROWSER_TEST_F(
BackForwardCacheBrowserTestWithDisallowJavaScriptExecution,
EvictWillNotTriggerReadystatechange) { … }
class BackForwardCacheWithKeepaliveSupportBrowserTest
: public BackForwardCacheBrowserTest { … };
IN_PROC_BROWSER_TEST_F(BackForwardCacheWithKeepaliveSupportBrowserTest,
KeepAliveFetch) { … }
}