Index: net/quic/crypto/quic_crypto_client_config_test.cc |
diff --git a/net/quic/crypto/quic_crypto_client_config_test.cc b/net/quic/crypto/quic_crypto_client_config_test.cc |
index fdce91c1fc7a6566ebdbfd5500fee141b160e4f3..16326902d4f621e693da25721ba65810ac4f44bb 100644 |
--- a/net/quic/crypto/quic_crypto_client_config_test.cc |
+++ b/net/quic/crypto/quic_crypto_client_config_test.cc |
@@ -15,6 +15,18 @@ using std::vector; |
namespace net { |
namespace test { |
+namespace { |
+ |
+class TestProofVerifyDetails : public ProofVerifyDetails { |
+ virtual ~TestProofVerifyDetails() {} |
+ |
+ // ProofVerifyDetails implementation |
+ virtual ProofVerifyDetails* Clone() const OVERRIDE { |
+ return new TestProofVerifyDetails; |
+ } |
+}; |
+ |
+} // namespace |
TEST(QuicCryptoClientConfigTest, CachedState_IsEmpty) { |
QuicCryptoClientConfig::CachedState state; |
@@ -36,7 +48,7 @@ TEST(QuicCryptoClientConfigTest, CachedState_GenerationCounter) { |
TEST(QuicCryptoClientConfigTest, CachedState_SetProofVerifyDetails) { |
QuicCryptoClientConfig::CachedState state; |
EXPECT_TRUE(state.proof_verify_details() == NULL); |
- ProofVerifyDetails* details = new ProofVerifyDetails; |
+ ProofVerifyDetails* details = new TestProofVerifyDetails; |
state.SetProofVerifyDetails(details); |
EXPECT_EQ(details, state.proof_verify_details()); |
} |