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

Side by Side Diff: net/tools/quic/quic_dispatcher_test.cc

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 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/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_simple_server_session.h » ('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/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 ~TestQuicSpdyServerSession() override { delete connection(); }; 74 ~TestQuicSpdyServerSession() override { delete connection(); };
75 75
76 MOCK_METHOD3(OnConnectionClosed, 76 MOCK_METHOD3(OnConnectionClosed,
77 void(QuicErrorCode error, 77 void(QuicErrorCode error,
78 const string& error_details, 78 const string& error_details,
79 ConnectionCloseSource source)); 79 ConnectionCloseSource source));
80 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id)); 80 MOCK_METHOD1(CreateIncomingDynamicStream, QuicSpdyStream*(QuicStreamId id));
81 MOCK_METHOD1(CreateOutgoingDynamicStream, 81 MOCK_METHOD1(CreateOutgoingDynamicStream,
82 QuicSpdyStream*(SpdyPriority priority)); 82 QuicSpdyStream*(SpdyPriority priority));
83 MOCK_METHOD1(CreateStream, std::unique_ptr<QuicStream>(QuicStreamId id));
83 84
84 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( 85 QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
85 const QuicCryptoServerConfig* crypto_config, 86 const QuicCryptoServerConfig* crypto_config,
86 QuicCompressedCertsCache* compressed_certs_cache) override { 87 QuicCompressedCertsCache* compressed_certs_cache) override {
87 return new QuicCryptoServerStream( 88 return new QuicCryptoServerStream(
88 crypto_config, compressed_certs_cache, 89 crypto_config, compressed_certs_cache,
89 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support, this, 90 FLAGS_quic_reloadable_flag_enable_quic_stateless_reject_support, this,
90 stream_helper()); 91 stream_helper());
91 } 92 }
92 93
(...skipping 1944 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 check.Call(2); 2038 check.Call(2);
2038 GetFakeProofSource()->InvokePendingCallback(0); 2039 GetFakeProofSource()->InvokePendingCallback(0);
2039 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); 2040 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0);
2040 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); 2041 EXPECT_FALSE(store->HasBufferedPackets(conn_id));
2041 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); 2042 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id));
2042 } 2043 }
2043 2044
2044 } // namespace 2045 } // namespace
2045 } // namespace test 2046 } // namespace test
2046 } // namespace net 2047 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_session_test.cc ('k') | net/tools/quic/quic_simple_server_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698