diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-10 01:00:49 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-10 01:00:49 +0000 |
commit | 47a12868857b153facb056dcf4dafbc2df739f92 (patch) | |
tree | ee906d941531db10d8fc3ba85cdd4fc50b1f48d8 /jingle | |
parent | d4aebbc9331cc0a08d8298b789bc22a7c83e911b (diff) | |
download | chromium_src-47a12868857b153facb056dcf4dafbc2df739f92.zip chromium_src-47a12868857b153facb056dcf4dafbc2df739f92.tar.gz chromium_src-47a12868857b153facb056dcf4dafbc2df739f92.tar.bz2 |
Implement a MockCertVerifier that can be used to avoid
calling OS API routines for certificate verification. This
allows tests that depend on SSL to cycle noticably faster,
particularly when under memory instrumentation.
R=wtc
BUG=none
TEST=existing unittests
Review URL: http://codereview.chromium.org/9956047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131509 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/notifier/base/chrome_async_socket_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jingle/notifier/base/chrome_async_socket_unittest.cc b/jingle/notifier/base/chrome_async_socket_unittest.cc index a64e03f..0b1af48 100644 --- a/jingle/notifier/base/chrome_async_socket_unittest.cc +++ b/jingle/notifier/base/chrome_async_socket_unittest.cc @@ -13,7 +13,7 @@ #include "base/message_loop.h" #include "base/sys_byteorder.h" #include "jingle/notifier/base/resolving_client_socket_factory.h" -#include "net/base/cert_verifier.h" +#include "net/base/mock_cert_verifier.h" #include "net/base/net_errors.h" #include "net/base/ssl_config_service.h" #include "net/socket/socket_test_util.h" @@ -121,7 +121,7 @@ class MockXmppClientSocketFactory : public ResolvingClientSocketFactory { const net::AddressList& address_list) : mock_client_socket_factory_(mock_client_socket_factory), address_list_(address_list), - cert_verifier_(net::CertVerifier::CreateDefault()) { + cert_verifier_(new net::MockCertVerifier) { } // ResolvingClientSocketFactory implementation. |