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/security_state_tab_helper.h" | 5 #include "chrome/browser/ssl/security_state_tab_helper.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/ssl/cert_verifier_browser_test.h" | 13 #include "chrome/browser/ssl/cert_verifier_browser_test.h" |
13 #include "chrome/browser/ssl/ssl_blocking_page.h" | 14 #include "chrome/browser/ssl/ssl_blocking_page.h" |
14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_commands.h" | 16 #include "chrome/browser/ui/browser_commands.h" |
16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
17 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
19 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
20 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
21 #include "chrome/test/base/ui_test_utils.h" | 22 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2154 SecurityStateTabHelper* helper = | 2155 SecurityStateTabHelper* helper = |
2155 SecurityStateTabHelper::FromWebContents(web_contents); | 2156 SecurityStateTabHelper::FromWebContents(web_contents); |
2156 ASSERT_TRUE(helper); | 2157 ASSERT_TRUE(helper); |
2157 security_state::SecurityInfo security_info; | 2158 security_state::SecurityInfo security_info; |
2158 helper->GetSecurityInfo(&security_info); | 2159 helper->GetSecurityInfo(&security_info); |
2159 EXPECT_EQ(security_state::SECURE, security_info.security_level); | 2160 EXPECT_EQ(security_state::SECURE, security_info.security_level); |
2160 EXPECT_EQ(kTestSCTStatuses, security_info.sct_verify_statuses); | 2161 EXPECT_EQ(kTestSCTStatuses, security_info.sct_verify_statuses); |
2161 } | 2162 } |
2162 | 2163 |
2163 } // namespace | 2164 } // namespace |
OLD | NEW |