Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 19 matching lines...) Expand all
30 #include "chrome/browser/ssl/ssl_blocking_page.h" 30 #include "chrome/browser/ssl/ssl_blocking_page.h"
31 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
32 #include "chrome/browser/ui/browser_tabstrip.h" 32 #include "chrome/browser/ui/browser_tabstrip.h"
33 #include "chrome/browser/ui/tabs/tab_strip_model.h" 33 #include "chrome/browser/ui/tabs/tab_strip_model.h"
34 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
35 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
36 #include "chrome/test/base/in_process_browser_test.h" 36 #include "chrome/test/base/in_process_browser_test.h"
37 #include "chrome/test/base/ui_test_utils.h" 37 #include "chrome/test/base/ui_test_utils.h"
38 #include "components/prefs/pref_service.h" 38 #include "components/prefs/pref_service.h"
39 #include "components/safe_browsing/browser/threat_details.h" 39 #include "components/safe_browsing/browser/threat_details.h"
40 #include "components/safe_browsing/common/safe_browsing_prefs.h"
40 #include "components/safe_browsing_db/database_manager.h" 41 #include "components/safe_browsing_db/database_manager.h"
41 #include "components/safe_browsing_db/safe_browsing_prefs.h"
42 #include "components/safe_browsing_db/test_database_manager.h" 42 #include "components/safe_browsing_db/test_database_manager.h"
43 #include "components/safe_browsing_db/util.h" 43 #include "components/safe_browsing_db/util.h"
44 #include "components/security_interstitials/core/controller_client.h" 44 #include "components/security_interstitials/core/controller_client.h"
45 #include "components/security_interstitials/core/metrics_helper.h" 45 #include "components/security_interstitials/core/metrics_helper.h"
46 #include "components/security_state/core/security_state.h" 46 #include "components/security_state/core/security_state.h"
47 #include "components/strings/grit/components_strings.h" 47 #include "components/strings/grit/components_strings.h"
48 #include "content/public/browser/interstitial_page.h" 48 #include "content/public/browser/interstitial_page.h"
49 #include "content/public/browser/navigation_controller.h" 49 #include "content/public/browser/navigation_controller.h"
50 #include "content/public/browser/navigation_entry.h" 50 #include "content/public/browser/navigation_entry.h"
51 #include "content/public/browser/notification_types.h" 51 #include "content/public/browser/notification_types.h"
(...skipping 1435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 1487
1488 INSTANTIATE_TEST_CASE_P( 1488 INSTANTIATE_TEST_CASE_P(
1489 SafeBrowsingBlockingPageIDNTestWithThreatType, 1489 SafeBrowsingBlockingPageIDNTestWithThreatType,
1490 SafeBrowsingBlockingPageIDNTest, 1490 SafeBrowsingBlockingPageIDNTest,
1491 testing::Combine(testing::Values(false, true), 1491 testing::Combine(testing::Values(false, true),
1492 testing::Values(SB_THREAT_TYPE_URL_MALWARE, 1492 testing::Values(SB_THREAT_TYPE_URL_MALWARE,
1493 SB_THREAT_TYPE_URL_PHISHING, 1493 SB_THREAT_TYPE_URL_PHISHING,
1494 SB_THREAT_TYPE_URL_UNWANTED))); 1494 SB_THREAT_TYPE_URL_UNWANTED)));
1495 1495
1496 } // namespace safe_browsing 1496 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698