OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/path_service.h" | |
9 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
10 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 11 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/search_engines/template_url_service_factory.h" | 13 #include "chrome/browser/search_engines/template_url_service_factory.h" |
15 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 14 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
16 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/browser_commands.h" | 16 #include "chrome/browser/ui/browser_commands.h" |
18 #include "chrome/browser/ui/browser_finder.h" | 17 #include "chrome/browser/ui/browser_finder.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 478 |
480 // Verify that the renderer can't DOS the browser by creating arbitrarily many | 479 // Verify that the renderer can't DOS the browser by creating arbitrarily many |
481 // popups. | 480 // popups. |
482 IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, DenialOfService) { | 481 IN_PROC_BROWSER_TEST_F(PopupBlockerBrowserTest, DenialOfService) { |
483 GURL url(embedded_test_server()->GetURL("/popup_blocker/popup-dos.html")); | 482 GURL url(embedded_test_server()->GetURL("/popup_blocker/popup-dos.html")); |
484 ui_test_utils::NavigateToURL(browser(), url); | 483 ui_test_utils::NavigateToURL(browser(), url); |
485 ASSERT_EQ(25, GetBlockedContentsCount()); | 484 ASSERT_EQ(25, GetBlockedContentsCount()); |
486 } | 485 } |
487 | 486 |
488 } // namespace | 487 } // namespace |
OLD | NEW |