diff options
Diffstat (limited to 'content/test')
-rw-r--r-- | content/test/data/english_page.html | 7 | ||||
-rw-r--r-- | content/test/data/infinite_beforeunload.html | 17 | ||||
-rw-r--r-- | content/test/data/infinite_unload.html | 17 | ||||
-rw-r--r-- | content/test/mock_render_process_host.cc | 2 | ||||
-rw-r--r-- | content/test/mock_render_process_host.h | 2 |
5 files changed, 43 insertions, 2 deletions
diff --git a/content/test/data/english_page.html b/content/test/data/english_page.html new file mode 100644 index 0000000..30b0d42 --- /dev/null +++ b/content/test/data/english_page.html @@ -0,0 +1,7 @@ +<html> +<head><title>This page is in English</title></head> +<body> +No joke! This is a page written in English. Awesome don't you think? +It has to be more than 100 bytes long for the CLD to detect the language correctly. +</body> +</html> diff --git a/content/test/data/infinite_beforeunload.html b/content/test/data/infinite_beforeunload.html new file mode 100644 index 0000000..5a3e017 --- /dev/null +++ b/content/test/data/infinite_beforeunload.html @@ -0,0 +1,17 @@ +<html> +<head> + <title>Infinite beforeunload</title> +</head> + +<body> +<script> + window.onbeforeunload = function(e) { + while(true){} + } +</script> + +Infinite beforeunload handler. + +</body> + +</html> diff --git a/content/test/data/infinite_unload.html b/content/test/data/infinite_unload.html new file mode 100644 index 0000000..742df08 --- /dev/null +++ b/content/test/data/infinite_unload.html @@ -0,0 +1,17 @@ +<html> +<head> + <title>Infinite unload</title> +</head> + +<body> +<script> + window.onunload = function(e) { + while(true){} + } +</script> + +Infinite unload handler. + +</body> + +</html> diff --git a/content/test/mock_render_process_host.cc b/content/test/mock_render_process_host.cc index 3c1b942..f555bec 100644 --- a/content/test/mock_render_process_host.cc +++ b/content/test/mock_render_process_host.cc @@ -54,7 +54,7 @@ int MockRenderProcessHost::GetNextRoutingID() { void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { } -void MockRenderProcessHost::CrossSiteSwapOutACK( +void MockRenderProcessHost::SimulateSwapOutACK( const ViewMsg_SwapOut_Params& params) { } diff --git a/content/test/mock_render_process_host.h b/content/test/mock_render_process_host.h index 7548b6d..58be48c 100644 --- a/content/test/mock_render_process_host.h +++ b/content/test/mock_render_process_host.h @@ -37,7 +37,7 @@ class MockRenderProcessHost : public RenderProcessHost { virtual bool Init() OVERRIDE; virtual int GetNextRoutingID() OVERRIDE; virtual void CancelResourceRequests(int render_widget_id) OVERRIDE; - virtual void CrossSiteSwapOutACK( + virtual void SimulateSwapOutACK( const ViewMsg_SwapOut_Params& params) OVERRIDE; virtual bool WaitForUpdateMsg(int render_widget_id, const base::TimeDelta& max_delay, |