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

Side by Side Diff: chrome/browser/ssl/ssl_error_handler_unittest.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « chrome/browser/ssl/ssl_error_handler.cc ('k') | chrome/browser/stack_sampling_configuration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_error_handler.cc ('k') | chrome/browser/stack_sampling_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698