| 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 <memory> | 7 #include <memory> |
| 8 #include <ostream> | 8 #include <ostream> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "net/tools/quic/quic_packet_writer_wrapper.h" | 31 #include "net/tools/quic/quic_packet_writer_wrapper.h" |
| 32 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" | 32 #include "net/tools/quic/quic_simple_crypto_server_stream_helper.h" |
| 33 #include "net/tools/quic/quic_time_wait_list_manager.h" | 33 #include "net/tools/quic/quic_time_wait_list_manager.h" |
| 34 #include "net/tools/quic/stateless_rejector.h" | 34 #include "net/tools/quic/stateless_rejector.h" |
| 35 #include "net/tools/quic/test_tools/mock_quic_time_wait_list_manager.h" | 35 #include "net/tools/quic/test_tools/mock_quic_time_wait_list_manager.h" |
| 36 #include "net/tools/quic/test_tools/quic_dispatcher_peer.h" | 36 #include "net/tools/quic/test_tools/quic_dispatcher_peer.h" |
| 37 #include "testing/gmock/include/gmock/gmock.h" | 37 #include "testing/gmock/include/gmock/gmock.h" |
| 38 #include "testing/gmock_mutant.h" | 38 #include "testing/gmock_mutant.h" |
| 39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
| 40 | 40 |
| 41 using base::StringPiece; | |
| 42 using std::string; | 41 using std::string; |
| 43 using testing::CreateFunctor; | 42 using testing::CreateFunctor; |
| 44 using testing::DoAll; | 43 using testing::DoAll; |
| 45 using testing::InSequence; | 44 using testing::InSequence; |
| 46 using testing::Invoke; | 45 using testing::Invoke; |
| 47 using testing::Return; | 46 using testing::Return; |
| 48 using testing::WithoutArgs; | 47 using testing::WithoutArgs; |
| 49 using testing::_; | 48 using testing::_; |
| 50 | 49 |
| 51 static const size_t kDefaultMaxConnectionsInStore = 100; | 50 static const size_t kDefaultMaxConnectionsInStore = 100; |
| (...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2065 check.Call(2); | 2064 check.Call(2); |
| 2066 GetFakeProofSource()->InvokePendingCallback(0); | 2065 GetFakeProofSource()->InvokePendingCallback(0); |
| 2067 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); | 2066 ASSERT_EQ(GetFakeProofSource()->NumPendingCallbacks(), 0); |
| 2068 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); | 2067 EXPECT_FALSE(store->HasBufferedPackets(conn_id)); |
| 2069 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); | 2068 EXPECT_FALSE(time_wait_list_manager_->IsConnectionIdInTimeWait(conn_id)); |
| 2070 } | 2069 } |
| 2071 | 2070 |
| 2072 } // namespace | 2071 } // namespace |
| 2073 } // namespace test | 2072 } // namespace test |
| 2074 } // namespace net | 2073 } // namespace net |
| OLD | NEW |