diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 00:51:44 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 00:51:44 +0000 |
commit | c81d9dcc72ae2f069e2952a13ec7d76eb7bb57e7 (patch) | |
tree | 37dd8c8a642e5bf50e11f6067db048a15b3016af /net/base/cert_test_util.h | |
parent | a2ee4e10797088fccae92efc5c8d5cd828c97e93 (diff) | |
download | chromium_src-c81d9dcc72ae2f069e2952a13ec7d76eb7bb57e7.zip chromium_src-c81d9dcc72ae2f069e2952a13ec7d76eb7bb57e7.tar.gz chromium_src-c81d9dcc72ae2f069e2952a13ec7d76eb7bb57e7.tar.bz2 |
Move LoadTemporaryCert to the new files cert_test_util.{h,cc} and
rename it LoadTemporaryRootCert, so that it can be used by
x509_certificate_unittest.cc.
R=eroman
BUG=none
TEST=No compilation and test failures.
Review URL: http://codereview.chromium.org/997006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_test_util.h')
-rw-r--r-- | net/base/cert_test_util.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/base/cert_test_util.h b/net/base/cert_test_util.h new file mode 100644 index 0000000..a288774 --- /dev/null +++ b/net/base/cert_test_util.h @@ -0,0 +1,23 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_BASE_CERT_TEST_UTIL_H_ +#define NET_BASE_CERT_TEST_UTIL_H_ + +#include "base/file_path.h" +#include "build/build_config.h" + +namespace net { + +class X509Certificate; + +#if defined(USE_NSS) || defined(OS_MACOSX) +// Loads and trusts a root CA certificate (stored in a file) temporarily. +// TODO(wtc): Implement this function on Windows (http://crbug.com/8470). +X509Certificate* LoadTemporaryRootCert(const FilePath& filename); +#endif + +} // namespace net + +#endif // NET_BASE_CERT_TEST_UTIL_H_ |