| 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 11 matching lines...) Expand all Loading... |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 using base::StringPiece; | 25 using base::StringPiece; |
| 26 using net::EpollServer; | 26 using net::EpollServer; |
| 27 using net::test::ConstructEncryptedPacket; | 27 using net::test::ConstructEncryptedPacket; |
| 28 using net::test::MockSession; | 28 using net::test::MockSession; |
| 29 using net::test::ValueRestore; | 29 using net::test::ValueRestore; |
| 30 using net::tools::test::MockConnection; | 30 using net::tools::test::MockConnection; |
| 31 using std::make_pair; | 31 using std::make_pair; |
| 32 using std::string; |
| 32 using testing::DoAll; | 33 using testing::DoAll; |
| 33 using testing::InSequence; | 34 using testing::InSequence; |
| 34 using testing::Invoke; | 35 using testing::Invoke; |
| 35 using testing::WithoutArgs; | 36 using testing::WithoutArgs; |
| 36 using testing::_; | 37 using testing::_; |
| 37 | 38 |
| 38 namespace net { | 39 namespace net { |
| 39 namespace tools { | 40 namespace tools { |
| 40 namespace test { | 41 namespace test { |
| 41 namespace { | 42 namespace { |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // And we'll resume where we left off when we get another call. | 452 // And we'll resume where we left off when we get another call. |
| 452 EXPECT_CALL(*connection2(), OnCanWrite()); | 453 EXPECT_CALL(*connection2(), OnCanWrite()); |
| 453 dispatcher_.OnCanWrite(); | 454 dispatcher_.OnCanWrite(); |
| 454 EXPECT_FALSE(dispatcher_.HasPendingWrites()); | 455 EXPECT_FALSE(dispatcher_.HasPendingWrites()); |
| 455 } | 456 } |
| 456 | 457 |
| 457 } // namespace | 458 } // namespace |
| 458 } // namespace test | 459 } // namespace test |
| 459 } // namespace tools | 460 } // namespace tools |
| 460 } // namespace net | 461 } // namespace net |
| OLD | NEW |