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

Side by Side Diff: net/quic/crypto/quic_crypto_client_config_test.cc

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
« no previous file with comments | « net/quic/crypto/proof_verifier_chromium.h ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/crypto/quic_crypto_client_config.h" 5 #include "net/quic/crypto/quic_crypto_client_config.h"
6 6
7 #include "net/quic/crypto/proof_verifier.h" 7 #include "net/quic/crypto/proof_verifier.h"
8 #include "net/quic/quic_server_id.h" 8 #include "net/quic/quic_server_id.h"
9 #include "net/quic/test_tools/mock_random.h" 9 #include "net/quic/test_tools/mock_random.h"
10 #include "net/quic/test_tools/quic_test_utils.h" 10 #include "net/quic/test_tools/quic_test_utils.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using std::string; 13 using std::string;
14 using std::vector; 14 using std::vector;
15 15
16 namespace net { 16 namespace net {
17 namespace test { 17 namespace test {
18 namespace { 18 namespace {
19 19
20 class TestProofVerifyDetails : public ProofVerifyDetails { 20 class TestProofVerifyDetails : public ProofVerifyDetails {
21 virtual ~TestProofVerifyDetails() {} 21 ~TestProofVerifyDetails() override {}
22 22
23 // ProofVerifyDetails implementation 23 // ProofVerifyDetails implementation
24 virtual ProofVerifyDetails* Clone() const override { 24 ProofVerifyDetails* Clone() const override {
25 return new TestProofVerifyDetails; 25 return new TestProofVerifyDetails;
26 } 26 }
27 }; 27 };
28 28
29 } // namespace 29 } // namespace
30 30
31 TEST(QuicCryptoClientConfigTest, CachedState_IsEmpty) { 31 TEST(QuicCryptoClientConfigTest, CachedState_IsEmpty) {
32 QuicCryptoClientConfig::CachedState state; 32 QuicCryptoClientConfig::CachedState state;
33 EXPECT_TRUE(state.IsEmpty()); 33 EXPECT_TRUE(state.IsEmpty());
34 } 34 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 EXPECT_EQ(state, cleared_cache); 261 EXPECT_EQ(state, cleared_cache);
262 EXPECT_FALSE(cleared_cache->proof_valid()); 262 EXPECT_FALSE(cleared_cache->proof_valid());
263 EXPECT_TRUE(cleared_cache->server_config().empty()); 263 EXPECT_TRUE(cleared_cache->server_config().empty());
264 EXPECT_TRUE(cleared_cache->certs().empty()); 264 EXPECT_TRUE(cleared_cache->certs().empty());
265 EXPECT_TRUE(cleared_cache->signature().empty()); 265 EXPECT_TRUE(cleared_cache->signature().empty());
266 EXPECT_EQ(2u, cleared_cache->generation_counter()); 266 EXPECT_EQ(2u, cleared_cache->generation_counter());
267 } 267 }
268 268
269 } // namespace test 269 } // namespace test
270 } // namespace net 270 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/proof_verifier_chromium.h ('k') | net/quic/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698