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

Side by Side Diff: net/quic/crypto/local_strike_register_client_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/local_strike_register_client.h" 5 #include "net/quic/crypto/local_strike_register_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 const uint8 kOrbit[] = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"; 53 const uint8 kOrbit[] = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0";
54 const uint32 kCurrentTimeExternalSecs = 12345678; 54 const uint32 kCurrentTimeExternalSecs = 12345678;
55 size_t kMaxEntries = 100; 55 size_t kMaxEntries = 100;
56 uint32 kWindowSecs = 60; 56 uint32 kWindowSecs = 60;
57 57
58 class LocalStrikeRegisterClientTest : public ::testing::Test { 58 class LocalStrikeRegisterClientTest : public ::testing::Test {
59 protected: 59 protected:
60 LocalStrikeRegisterClientTest() { 60 LocalStrikeRegisterClientTest() {
61 } 61 }
62 62
63 virtual void SetUp() { 63 void SetUp() override {
64 strike_register_.reset(new LocalStrikeRegisterClient( 64 strike_register_.reset(new LocalStrikeRegisterClient(
65 kMaxEntries, kCurrentTimeExternalSecs, kWindowSecs, kOrbit, 65 kMaxEntries, kCurrentTimeExternalSecs, kWindowSecs, kOrbit,
66 net::StrikeRegister::NO_STARTUP_PERIOD_NEEDED)); 66 net::StrikeRegister::NO_STARTUP_PERIOD_NEEDED));
67 } 67 }
68 68
69 scoped_ptr<LocalStrikeRegisterClient> strike_register_; 69 scoped_ptr<LocalStrikeRegisterClient> strike_register_;
70 }; 70 };
71 71
72 TEST_F(LocalStrikeRegisterClientTest, CheckOrbit) { 72 TEST_F(LocalStrikeRegisterClientTest, CheckOrbit) {
73 EXPECT_TRUE(strike_register_->IsKnownOrbit( 73 EXPECT_TRUE(strike_register_->IsKnownOrbit(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 new RecordResultCallback(&called, &is_valid, &nonce_error)); 129 new RecordResultCallback(&called, &is_valid, &nonce_error));
130 EXPECT_TRUE(called); 130 EXPECT_TRUE(called);
131 EXPECT_TRUE(is_valid); 131 EXPECT_TRUE(is_valid);
132 EXPECT_EQ(NONCE_OK, nonce_error); 132 EXPECT_EQ(NONCE_OK, nonce_error);
133 } 133 }
134 } 134 }
135 135
136 } // namespace 136 } // namespace
137 } // namespace test 137 } // namespace test
138 } // namespace net 138 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/crypto_server_test.cc ('k') | net/quic/crypto/quic_crypto_server_config_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698