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

Side by Side Diff: net/quic/quic_connection_test.cc

Issue 1977153002: Rename various MockConnectionFoo classes to MockQuicConnectionFoo. No behavior change. This is cons… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@121576119
Patch Set: Created 4 years, 7 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/quic_connection_logger_unittest.cc ('k') | net/quic/quic_crypto_client_stream_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <memory> 8 #include <memory>
9 #include <ostream> 9 #include <ostream>
10 #include <utility> 10 #include <utility>
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 SimpleBufferAllocator buffer_allocator_; 1050 SimpleBufferAllocator buffer_allocator_;
1051 std::unique_ptr<TestConnectionHelper> helper_; 1051 std::unique_ptr<TestConnectionHelper> helper_;
1052 std::unique_ptr<TestAlarmFactory> alarm_factory_; 1052 std::unique_ptr<TestAlarmFactory> alarm_factory_;
1053 QuicFramer peer_framer_; 1053 QuicFramer peer_framer_;
1054 QuicPacketCreator peer_creator_; 1054 QuicPacketCreator peer_creator_;
1055 std::unique_ptr<TestPacketWriter> writer_; 1055 std::unique_ptr<TestPacketWriter> writer_;
1056 TestConnection connection_; 1056 TestConnection connection_;
1057 QuicPacketCreator* creator_; 1057 QuicPacketCreator* creator_;
1058 QuicPacketGenerator* generator_; 1058 QuicPacketGenerator* generator_;
1059 QuicSentPacketManager* manager_; 1059 QuicSentPacketManager* manager_;
1060 StrictMock<MockConnectionVisitor> visitor_; 1060 StrictMock<MockQuicConnectionVisitor> visitor_;
1061 1061
1062 QuicStreamFrame frame1_; 1062 QuicStreamFrame frame1_;
1063 QuicStreamFrame frame2_; 1063 QuicStreamFrame frame2_;
1064 QuicAckFrame ack_; 1064 QuicAckFrame ack_;
1065 QuicStopWaitingFrame stop_waiting_; 1065 QuicStopWaitingFrame stop_waiting_;
1066 QuicPacketNumberLength packet_number_length_; 1066 QuicPacketNumberLength packet_number_length_;
1067 QuicConnectionIdLength connection_id_length_; 1067 QuicConnectionIdLength connection_id_length_;
1068 1068
1069 private: 1069 private:
1070 DISALLOW_COPY_AND_ASSIGN(QuicConnectionTest); 1070 DISALLOW_COPY_AND_ASSIGN(QuicConnectionTest);
(...skipping 3888 matching lines...) Expand 10 before | Expand all | Expand 10 after
4959 EXPECT_CALL(visitor_, OnConnectionClosed(_, _, _)).Times(1); 4959 EXPECT_CALL(visitor_, OnConnectionClosed(_, _, _)).Times(1);
4960 connection_.CloseConnection(QUIC_NO_ERROR, "no reason", 4960 connection_.CloseConnection(QUIC_NO_ERROR, "no reason",
4961 ConnectionCloseBehavior::SILENT_CLOSE); 4961 ConnectionCloseBehavior::SILENT_CLOSE);
4962 connection_.CloseConnection(QUIC_NO_ERROR, "no reason", 4962 connection_.CloseConnection(QUIC_NO_ERROR, "no reason",
4963 ConnectionCloseBehavior::SILENT_CLOSE); 4963 ConnectionCloseBehavior::SILENT_CLOSE);
4964 } 4964 }
4965 4965
4966 } // namespace 4966 } // namespace
4967 } // namespace test 4967 } // namespace test
4968 } // namespace net 4968 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_connection_logger_unittest.cc ('k') | net/quic/quic_crypto_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698