From 6b2e61f991dc163278654b8461aaf3c26c000801 Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Tue, 28 Feb 2012 08:06:54 +0000 Subject: Fix SpdySession::WriteCredentialFrame ECPrivateKey creation args. It was passing the DER certificate instead of a SubjectPublicKeyInfo. Also adds ECSignatureCreator::SetFactoryForTesting method to allow easier testing of code that uses ECSignatureCreator. BUG=none TEST=SpdyHttpStreamTest.SendCredentialsEC Review URL: http://codereview.chromium.org/9455006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123940 0039d316-1c4b-4281-b951-d872f2087c98 --- crypto/ec_signature_creator_unittest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/ec_signature_creator_unittest.cc') diff --git a/crypto/ec_signature_creator_unittest.cc b/crypto/ec_signature_creator_unittest.cc index def8a63..407b278 100644 --- a/crypto/ec_signature_creator_unittest.cc +++ b/crypto/ec_signature_creator_unittest.cc @@ -19,7 +19,8 @@ TEST(ECSignatureCreatorTest, OpenSSLStub) { scoped_ptr signer( crypto::ECSignatureCreator::Create(NULL)); - ASSERT_FALSE(signer.get()); + ASSERT_TRUE(signer.get()); + EXPECT_FALSE(signer->Sign(NULL, 0, NULL)); } #else TEST(ECSignatureCreatorTest, BasicTest) { -- cgit v1.1