#include "content/public/browser/document_user_data.h"
#include "base/command_line.h"
#include "base/memory/weak_ptr.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/content_navigation_policy.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/site_isolation_policy.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_features.h"
#include "content/public/test/back_forward_cache_util.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/navigation_handle_observer.h"
#include "content/public/test/render_frame_host_test_support.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/public/test/test_navigation_throttle.h"
#include "content/public/test/test_navigation_throttle_inserter.h"
#include "content/public/test/test_utils.h"
#include "content/public/test/url_loader_interceptor.h"
#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "net/test/url_request/url_request_failed_job.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace content {
namespace …
class DocumentUserDataTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
GetCreateAndDeleteForCurrentDocument) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, GetOrCreateForCurrentDocument) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, CheckForMultipleRFHsInFrameTree) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
CrashedFrameUserDataIsPreservedAndDeletedOnReset) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
CheckWithFrameCrashDuringNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
CheckWithFrameCrashBeforeNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
CheckWithRenderFrameCreationAfterRendererDebugURLCrash) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest,
CheckIDsForSpeculativeRFHBeforeAndAfterCommit) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, SpeculativeRFHDeleted) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, RenderFrameHostDeleted) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, CheckInPendingDeletionState) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, CommitSameDocumentNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, CancelledNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, FailedNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, CrossSiteNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, SameSiteNavigation) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, WindowOpen) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, BlankIframe) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, SrcDocIframe) { … }
IN_PROC_BROWSER_TEST_F(DocumentUserDataTest, AttachOnCreatingInitialFrame) { … }
class DocumentUserDataWithBackForwardCacheTest : public DocumentUserDataTest { … };
IN_PROC_BROWSER_TEST_F(DocumentUserDataWithBackForwardCacheTest,
BackForwardCacheNavigation) { … }
}