| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/ssl/captive_portal_blocking_page.h" | 5 #include "chrome/browser/ssl/captive_portal_blocking_page.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/strings/stringprintf.h" | |
| 15 #include "chrome/browser/interstitials/security_interstitial_page_test_utils.h" | 14 #include "chrome/browser/interstitials/security_interstitial_page_test_utils.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/ssl/cert_report_helper.h" | 16 #include "chrome/browser/ssl/cert_report_helper.h" |
| 18 #include "chrome/browser/ssl/certificate_reporting_test_utils.h" | 17 #include "chrome/browser/ssl/certificate_reporting_test_utils.h" |
| 19 #include "chrome/browser/ssl/security_state_tab_helper.h" | 18 #include "chrome/browser/ssl/security_state_tab_helper.h" |
| 20 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 19 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
| 21 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 21 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
| 24 #include "chrome/test/base/in_process_browser_test.h" | 23 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 false, ""); | 335 false, ""); |
| 337 return blocking_page; | 336 return blocking_page; |
| 338 } | 337 } |
| 339 }; | 338 }; |
| 340 | 339 |
| 341 // Test that an IDN login domain is decoded properly. | 340 // Test that an IDN login domain is decoded properly. |
| 342 IN_PROC_BROWSER_TEST_F(CaptivePortalBlockingPageIDNTest, | 341 IN_PROC_BROWSER_TEST_F(CaptivePortalBlockingPageIDNTest, |
| 343 ShowLoginIDNIfPortalRedirectsDetectionURL) { | 342 ShowLoginIDNIfPortalRedirectsDetectionURL) { |
| 344 EXPECT_TRUE(VerifyIDNDecoded()); | 343 EXPECT_TRUE(VerifyIDNDecoded()); |
| 345 } | 344 } |
| OLD | NEW |