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

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

Issue 663043004: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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_server_config.h" 5 #include "net/quic/crypto/quic_crypto_server_config.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h" 10 #include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 EXPECT_EQ(HANDSHAKE_OK, peer.ValidateServerNonce(server_nonce, now)); 395 EXPECT_EQ(HANDSHAKE_OK, peer.ValidateServerNonce(server_nonce, now));
396 } 396 }
397 397
398 class CryptoServerConfigsTest : public ::testing::Test { 398 class CryptoServerConfigsTest : public ::testing::Test {
399 public: 399 public:
400 CryptoServerConfigsTest() 400 CryptoServerConfigsTest()
401 : rand_(QuicRandom::GetInstance()), 401 : rand_(QuicRandom::GetInstance()),
402 config_(QuicCryptoServerConfig::TESTING, rand_), 402 config_(QuicCryptoServerConfig::TESTING, rand_),
403 test_peer_(&config_) {} 403 test_peer_(&config_) {}
404 404
405 virtual void SetUp() { 405 void SetUp() override {
406 clock_.AdvanceTime(QuicTime::Delta::FromSeconds(1000)); 406 clock_.AdvanceTime(QuicTime::Delta::FromSeconds(1000));
407 } 407 }
408 408
409 // SetConfigs constructs suitable config protobufs and calls SetConfigs on 409 // SetConfigs constructs suitable config protobufs and calls SetConfigs on
410 // |config_|. The arguments are given as nullptr-terminated pairs. The first 410 // |config_|. The arguments are given as nullptr-terminated pairs. The first
411 // of each pair is the server config ID of a Config. The second is the 411 // of each pair is the server config ID of a Config. The second is the
412 // |primary_time| of that Config, given in epoch seconds. (Although note that, 412 // |primary_time| of that Config, given in epoch seconds. (Although note that,
413 // in these tests, time is set to 1000 seconds since the epoch.) For example: 413 // in these tests, time is set to 1000 seconds since the epoch.) For example:
414 // SetConfigs(nullptr); // calls |config_.SetConfigs| with no protobufs. 414 // SetConfigs(nullptr); // calls |config_.SetConfigs| with no protobufs.
415 // 415 //
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 nullptr); 695 nullptr);
696 test_peer_.CheckConfigs( 696 test_peer_.CheckConfigs(
697 "a", false, 697 "a", false,
698 "b", true, 698 "b", true,
699 "c", false, 699 "c", false,
700 nullptr); 700 nullptr);
701 } 701 }
702 702
703 } // namespace test 703 } // namespace test
704 } // namespace net 704 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/local_strike_register_client_test.cc ('k') | net/quic/quic_ack_notifier_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698