OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ssl_error_handler.h" | 5 #include "chrome/browser/ssl/ssl_error_handler.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
9 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 #include "chrome/browser/captive_portal/captive_portal_service.h" | 13 #include "chrome/browser/captive_portal/captive_portal_service.h" |
13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ssl/common_name_mismatch_handler.h" | 15 #include "chrome/browser/ssl/common_name_mismatch_handler.h" |
15 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 16 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
16 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
17 #include "components/captive_portal/captive_portal_testing_utils.h" | 18 #include "components/captive_portal/captive_portal_testing_utils.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // Fake an Invalid Suggested URL Check result. | 331 // Fake an Invalid Suggested URL Check result. |
331 error_handler()->SendSuggestedUrlCheckResult( | 332 error_handler()->SendSuggestedUrlCheckResult( |
332 CommonNameMismatchHandler::SuggestedUrlCheckResult:: | 333 CommonNameMismatchHandler::SuggestedUrlCheckResult:: |
333 SUGGESTED_URL_NOT_AVAILABLE, | 334 SUGGESTED_URL_NOT_AVAILABLE, |
334 GURL()); | 335 GURL()); |
335 | 336 |
336 EXPECT_FALSE(error_handler()->IsTimerRunning()); | 337 EXPECT_FALSE(error_handler()->IsTimerRunning()); |
337 EXPECT_TRUE(error_handler()->ssl_interstitial_shown()); | 338 EXPECT_TRUE(error_handler()->ssl_interstitial_shown()); |
338 EXPECT_FALSE(error_handler()->redirected_to_suggested_url()); | 339 EXPECT_FALSE(error_handler()->redirected_to_suggested_url()); |
339 } | 340 } |
OLD | NEW |