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/quic/quic_stream_factory.h" | 5 #include "net/quic/quic_stream_factory.h" |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "net/base/test_data_directory.h" | 9 #include "net/base/test_data_directory.h" |
10 #include "net/cert/cert_verifier.h" | 10 #include "net/cert/cert_verifier.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 return ERR_IO_PENDING; | 114 return ERR_IO_PENDING; |
115 } | 115 } |
116 | 116 |
117 virtual void CancelWaitForDataReadyCallback() override {} | 117 virtual void CancelWaitForDataReadyCallback() override {} |
118 | 118 |
119 virtual bool IsDataReady() override { return false; } | 119 virtual bool IsDataReady() override { return false; } |
120 | 120 |
121 virtual bool IsReadyToPersist() override { return false; } | 121 virtual bool IsReadyToPersist() override { return false; } |
122 | 122 |
123 virtual void Persist() override {}; | 123 virtual void Persist() override {}; |
| 124 |
| 125 virtual void OnExternalCacheHit() override {}; |
124 }; | 126 }; |
125 | 127 |
126 class MockQuicServerInfoFactory : public QuicServerInfoFactory { | 128 class MockQuicServerInfoFactory : public QuicServerInfoFactory { |
127 public: | 129 public: |
128 MockQuicServerInfoFactory() {} | 130 MockQuicServerInfoFactory() {} |
129 virtual ~MockQuicServerInfoFactory() {} | 131 virtual ~MockQuicServerInfoFactory() {} |
130 | 132 |
131 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) override { | 133 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) override { |
132 return new MockQuicServerInfo(server_id); | 134 return new MockQuicServerInfo(server_id); |
133 } | 135 } |
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); | 1597 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); |
1596 | 1598 |
1597 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); | 1599 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); |
1598 EXPECT_TRUE(stream.get()); | 1600 EXPECT_TRUE(stream.get()); |
1599 EXPECT_TRUE(socket_data.at_read_eof()); | 1601 EXPECT_TRUE(socket_data.at_read_eof()); |
1600 EXPECT_TRUE(socket_data.at_write_eof()); | 1602 EXPECT_TRUE(socket_data.at_write_eof()); |
1601 } | 1603 } |
1602 | 1604 |
1603 } // namespace test | 1605 } // namespace test |
1604 } // namespace net | 1606 } // namespace net |
OLD | NEW |