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

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

Issue 183683025: CL generated with data from dead-code analysis using Scythe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_spdy_server_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/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 12 matching lines...) Expand all
23 23
24 using base::StringPiece; 24 using base::StringPiece;
25 using net::EpollServer; 25 using net::EpollServer;
26 using net::test::MockSession; 26 using net::test::MockSession;
27 using net::tools::test::MockConnection; 27 using net::tools::test::MockConnection;
28 using std::make_pair; 28 using std::make_pair;
29 using testing::_; 29 using testing::_;
30 using testing::DoAll; 30 using testing::DoAll;
31 using testing::Invoke; 31 using testing::Invoke;
32 using testing::InSequence; 32 using testing::InSequence;
33 using testing::Return;
34 using testing::WithoutArgs; 33 using testing::WithoutArgs;
35 34
36 namespace net { 35 namespace net {
37 namespace tools { 36 namespace tools {
38 namespace test { 37 namespace test {
39 namespace { 38 namespace {
40 39
41 class TestDispatcher : public QuicDispatcher { 40 class TestDispatcher : public QuicDispatcher {
42 public: 41 public:
43 explicit TestDispatcher(const QuicConfig& config, 42 explicit TestDispatcher(const QuicConfig& config,
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // And we'll resume where we left off when we get another call. 467 // And we'll resume where we left off when we get another call.
469 EXPECT_CALL(*connection2(), OnCanWrite()); 468 EXPECT_CALL(*connection2(), OnCanWrite());
470 dispatcher_.OnCanWrite(); 469 dispatcher_.OnCanWrite();
471 EXPECT_FALSE(dispatcher_.HasPendingWrites()); 470 EXPECT_FALSE(dispatcher_.HasPendingWrites());
472 } 471 }
473 472
474 } // namespace 473 } // namespace
475 } // namespace test 474 } // namespace test
476 } // namespace tools 475 } // namespace tools
477 } // namespace net 476 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher.h ('k') | net/tools/quic/quic_spdy_server_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698