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

Side by Side Diff: net/quic/quic_ack_notifier_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
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config_test.cc ('k') | net/quic/quic_client_session_test.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/quic_ack_notifier.h" 5 #include "net/quic/quic_ack_notifier.h"
6 6
7 #include "net/quic/test_tools/quic_test_utils.h" 7 #include "net/quic/test_tools/quic_test_utils.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 using testing::_; 11 using testing::_;
12 12
13 namespace net { 13 namespace net {
14 namespace test { 14 namespace test {
15 namespace { 15 namespace {
16 16
17 class QuicAckNotifierTest : public ::testing::Test { 17 class QuicAckNotifierTest : public ::testing::Test {
18 protected: 18 protected:
19 QuicAckNotifierTest() : zero_(QuicTime::Delta::Zero()) {} 19 QuicAckNotifierTest() : zero_(QuicTime::Delta::Zero()) {}
20 20
21 virtual void SetUp() { 21 void SetUp() override {
22 delegate_ = new MockAckNotifierDelegate; 22 delegate_ = new MockAckNotifierDelegate;
23 notifier_.reset(new QuicAckNotifier(delegate_)); 23 notifier_.reset(new QuicAckNotifier(delegate_));
24 24
25 notifier_->AddSequenceNumber(26, 100); 25 notifier_->AddSequenceNumber(26, 100);
26 notifier_->AddSequenceNumber(99, 20); 26 notifier_->AddSequenceNumber(99, 20);
27 notifier_->AddSequenceNumber(1234, 3); 27 notifier_->AddSequenceNumber(1234, 3);
28 } 28 }
29 29
30 MockAckNotifierDelegate* delegate_; 30 MockAckNotifierDelegate* delegate_;
31 scoped_ptr<QuicAckNotifier> notifier_; 31 scoped_ptr<QuicAckNotifier> notifier_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 OnAckNotification(3, 123, 0, 0, third_delta)) 71 OnAckNotification(3, 123, 0, 0, third_delta))
72 .Times(1); 72 .Times(1);
73 EXPECT_FALSE(notifier_->OnAck(26, first_delta)); 73 EXPECT_FALSE(notifier_->OnAck(26, first_delta));
74 EXPECT_FALSE(notifier_->OnAck(99, second_delta)); 74 EXPECT_FALSE(notifier_->OnAck(99, second_delta));
75 EXPECT_TRUE(notifier_->OnAck(1234, third_delta)); 75 EXPECT_TRUE(notifier_->OnAck(1234, third_delta));
76 } 76 }
77 77
78 } // namespace 78 } // namespace
79 } // namespace test 79 } // namespace test
80 } // namespace net 80 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config_test.cc ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698