OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_BASE_SSL_TEST_UTIL_H_ |
| 6 #define NET_BASE_SSL_TEST_UTIL_H_ |
| 7 |
| 8 #include "build/build_config.h" |
| 9 |
| 10 #include "base/path_service.h" |
| 11 |
| 12 class SSLTestUtil { |
| 13 public: |
| 14 SSLTestUtil(); |
| 15 |
| 16 ~SSLTestUtil(); |
| 17 |
| 18 FilePath GetRootCertPath(); |
| 19 |
| 20 FilePath GetOKCertPath(); |
| 21 |
| 22 // Where test data is kept in source tree |
| 23 static const wchar_t kDocRoot[]; |
| 24 |
| 25 // Hostname to use for test server |
| 26 static const char kHostName[]; |
| 27 |
| 28 // Port to use for test server |
| 29 static const int kOKHTTPSPort; |
| 30 |
| 31 // Issuer name of the cert that should be trusted for the test to work. |
| 32 static const wchar_t kCertIssuerName[]; |
| 33 |
| 34 // Returns false if our test root certificate is not trusted. |
| 35 bool CheckCATrusted(); |
| 36 |
| 37 private: |
| 38 FilePath cert_dir_; |
| 39 |
| 40 #if defined(OS_LINUX) |
| 41 struct PrivateCERTCertificate; |
| 42 PrivateCERTCertificate *cert_; |
| 43 #endif |
| 44 }; |
| 45 |
| 46 #endif |
OLD | NEW |