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

Side by Side Diff: net/base/ssl_test_util.h

Issue 11249: Fix several cert problems on Linux (take 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698