OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This test creates a fake safebrowsing service, where we can inject known- | 5 // This test creates a fake safebrowsing service, where we can inject known- |
6 // threat urls. It then uses a real browser to go to these urls, and sends | 6 // threat urls. It then uses a real browser to go to these urls, and sends |
7 // "goback" or "proceed" commands and verifies they work. | 7 // "goback" or "proceed" commands and verifies they work. |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "chrome/browser/ssl/ssl_blocking_page.h" | 29 #include "chrome/browser/ssl/ssl_blocking_page.h" |
30 #include "chrome/browser/ui/browser.h" | 30 #include "chrome/browser/ui/browser.h" |
31 #include "chrome/browser/ui/browser_tabstrip.h" | 31 #include "chrome/browser/ui/browser_tabstrip.h" |
32 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 32 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
33 #include "chrome/common/pref_names.h" | 33 #include "chrome/common/pref_names.h" |
34 #include "chrome/common/url_constants.h" | 34 #include "chrome/common/url_constants.h" |
35 #include "chrome/test/base/in_process_browser_test.h" | 35 #include "chrome/test/base/in_process_browser_test.h" |
36 #include "chrome/test/base/ui_test_utils.h" | 36 #include "chrome/test/base/ui_test_utils.h" |
37 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" |
38 #include "components/safe_browsing/browser/threat_details.h" | 38 #include "components/safe_browsing/browser/threat_details.h" |
| 39 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
39 #include "components/safe_browsing_db/database_manager.h" | 40 #include "components/safe_browsing_db/database_manager.h" |
40 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
41 #include "components/safe_browsing_db/test_database_manager.h" | 41 #include "components/safe_browsing_db/test_database_manager.h" |
42 #include "components/safe_browsing_db/util.h" | 42 #include "components/safe_browsing_db/util.h" |
43 #include "components/security_interstitials/core/controller_client.h" | 43 #include "components/security_interstitials/core/controller_client.h" |
44 #include "components/security_interstitials/core/metrics_helper.h" | 44 #include "components/security_interstitials/core/metrics_helper.h" |
45 #include "components/security_state/core/security_state.h" | 45 #include "components/security_state/core/security_state.h" |
46 #include "components/strings/grit/components_strings.h" | 46 #include "components/strings/grit/components_strings.h" |
47 #include "content/public/browser/interstitial_page.h" | 47 #include "content/public/browser/interstitial_page.h" |
48 #include "content/public/browser/navigation_controller.h" | 48 #include "content/public/browser/navigation_controller.h" |
49 #include "content/public/browser/navigation_entry.h" | 49 #include "content/public/browser/navigation_entry.h" |
50 #include "content/public/browser/notification_types.h" | 50 #include "content/public/browser/notification_types.h" |
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 | 1486 |
1487 INSTANTIATE_TEST_CASE_P( | 1487 INSTANTIATE_TEST_CASE_P( |
1488 SafeBrowsingBlockingPageIDNTestWithThreatType, | 1488 SafeBrowsingBlockingPageIDNTestWithThreatType, |
1489 SafeBrowsingBlockingPageIDNTest, | 1489 SafeBrowsingBlockingPageIDNTest, |
1490 testing::Combine(testing::Values(false, true), | 1490 testing::Combine(testing::Values(false, true), |
1491 testing::Values(SB_THREAT_TYPE_URL_MALWARE, | 1491 testing::Values(SB_THREAT_TYPE_URL_MALWARE, |
1492 SB_THREAT_TYPE_URL_PHISHING, | 1492 SB_THREAT_TYPE_URL_PHISHING, |
1493 SB_THREAT_TYPE_URL_UNWANTED))); | 1493 SB_THREAT_TYPE_URL_UNWANTED))); |
1494 | 1494 |
1495 } // namespace safe_browsing | 1495 } // namespace safe_browsing |
OLD | NEW |