OLD | NEW |
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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif | 10 #endif |
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 | 1545 |
1546 TEST_F(HTTPSOCSPTest, Valid) { | 1546 TEST_F(HTTPSOCSPTest, Valid) { |
1547 if (!SystemSupportsOCSP()) { | 1547 if (!SystemSupportsOCSP()) { |
1548 LOG(WARNING) << "Skipping test because system doesn't support OCSP"; | 1548 LOG(WARNING) << "Skipping test because system doesn't support OCSP"; |
1549 return; | 1549 return; |
1550 } | 1550 } |
1551 | 1551 |
1552 TestServer::HTTPSOptions https_options(TestServer::HTTPSOptions::CERT_AUTO); | 1552 TestServer::HTTPSOptions https_options(TestServer::HTTPSOptions::CERT_AUTO); |
1553 https_options.ocsp_status = TestServer::HTTPSOptions::OCSP_OK; | 1553 https_options.ocsp_status = TestServer::HTTPSOptions::OCSP_OK; |
1554 | 1554 |
1555 CertStatus cert_status; | 1555 CertStatus cert_status = 0; |
1556 DoConnection(https_options, &cert_status); | 1556 DoConnection(https_options, &cert_status); |
1557 | 1557 |
1558 EXPECT_EQ(0u, cert_status & CERT_STATUS_ALL_ERRORS); | 1558 EXPECT_EQ(0u, cert_status & CERT_STATUS_ALL_ERRORS); |
1559 | 1559 |
1560 EXPECT_EQ(SystemUsesChromiumEVMetadata(), | 1560 EXPECT_EQ(SystemUsesChromiumEVMetadata(), |
1561 static_cast<bool>(cert_status & CERT_STATUS_IS_EV)); | 1561 static_cast<bool>(cert_status & CERT_STATUS_IS_EV)); |
1562 | 1562 |
1563 EXPECT_TRUE(cert_status & CERT_STATUS_REV_CHECKING_ENABLED); | 1563 EXPECT_TRUE(cert_status & CERT_STATUS_REV_CHECKING_ENABLED); |
1564 } | 1564 } |
1565 | 1565 |
(...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4577 req.SetExtraRequestHeaders(headers); | 4577 req.SetExtraRequestHeaders(headers); |
4578 req.Start(); | 4578 req.Start(); |
4579 MessageLoop::current()->Run(); | 4579 MessageLoop::current()->Run(); |
4580 // If the net tests are being run with ChromeFrame then we need to allow for | 4580 // If the net tests are being run with ChromeFrame then we need to allow for |
4581 // the 'chromeframe' suffix which is added to the user agent before the | 4581 // the 'chromeframe' suffix which is added to the user agent before the |
4582 // closing parentheses. | 4582 // closing parentheses. |
4583 EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode", true)); | 4583 EXPECT_TRUE(StartsWithASCII(d.data_received(), "Lynx (textmode", true)); |
4584 } | 4584 } |
4585 | 4585 |
4586 } // namespace net | 4586 } // namespace net |
OLD | NEW |