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

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

Issue 1030023002: Remove the QuicDispatcher's explicit use of EpollServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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_dispatcher.cc ('k') | net/tools/quic/quic_server.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 <string> 7 #include <string>
8 8
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 class TestDispatcher : public QuicDispatcher { 45 class TestDispatcher : public QuicDispatcher {
46 public: 46 public:
47 explicit TestDispatcher(const QuicConfig& config, 47 explicit TestDispatcher(const QuicConfig& config,
48 const QuicCryptoServerConfig& crypto_config, 48 const QuicCryptoServerConfig& crypto_config,
49 EpollServer* eps) 49 EpollServer* eps)
50 : QuicDispatcher(config, 50 : QuicDispatcher(config,
51 crypto_config, 51 crypto_config,
52 QuicSupportedVersions(), 52 QuicSupportedVersions(),
53 new QuicDispatcher::DefaultPacketWriterFactory(), 53 new QuicDispatcher::DefaultPacketWriterFactory(),
54 eps) { 54 new QuicEpollConnectionHelper(eps)) {
55 } 55 }
56 56
57 MOCK_METHOD3(CreateQuicSession, QuicSession*( 57 MOCK_METHOD3(CreateQuicSession, QuicSession*(
58 QuicConnectionId connection_id, 58 QuicConnectionId connection_id,
59 const IPEndPoint& server_address, 59 const IPEndPoint& server_address,
60 const IPEndPoint& client_address)); 60 const IPEndPoint& client_address));
61 61
62 using QuicDispatcher::current_server_address; 62 using QuicDispatcher::current_server_address;
63 using QuicDispatcher::current_client_address; 63 using QuicDispatcher::current_client_address;
64 }; 64 };
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // And we'll resume where we left off when we get another call. 473 // And we'll resume where we left off when we get another call.
474 EXPECT_CALL(*connection2(), OnCanWrite()); 474 EXPECT_CALL(*connection2(), OnCanWrite());
475 dispatcher_.OnCanWrite(); 475 dispatcher_.OnCanWrite();
476 EXPECT_FALSE(dispatcher_.HasPendingWrites()); 476 EXPECT_FALSE(dispatcher_.HasPendingWrites());
477 } 477 }
478 478
479 } // namespace 479 } // namespace
480 } // namespace test 480 } // namespace test
481 } // namespace tools 481 } // namespace tools
482 } // namespace net 482 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.cc ('k') | net/tools/quic/quic_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698