| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |