| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/flip_server/spdy_interface.h" | 5 #include "net/tools/flip_server/spdy_interface.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 MOCK_METHOD2(OnHeaderFrameEnd, | 74 MOCK_METHOD2(OnHeaderFrameEnd, |
| 75 void(SpdyStreamId stream_id, bool end_headers)); | 75 void(SpdyStreamId stream_id, bool end_headers)); |
| 76 MOCK_METHOD1(OnSettings, void(bool clear_persisted)); | 76 MOCK_METHOD1(OnSettings, void(bool clear_persisted)); |
| 77 MOCK_METHOD3(OnSetting, void(SpdySettingsIds, uint8_t, uint32_t)); | 77 MOCK_METHOD3(OnSetting, void(SpdySettingsIds, uint8_t, uint32_t)); |
| 78 MOCK_METHOD2(OnPing, void(SpdyPingId unique_id, bool is_ack)); | 78 MOCK_METHOD2(OnPing, void(SpdyPingId unique_id, bool is_ack)); |
| 79 MOCK_METHOD2(OnRstStream, void(SpdyStreamId, SpdyRstStreamStatus)); | 79 MOCK_METHOD2(OnRstStream, void(SpdyStreamId, SpdyRstStreamStatus)); |
| 80 MOCK_METHOD3(OnGoAway, void(SpdyStreamId, SpdyGoAwayStatus, StringPiece)); | 80 MOCK_METHOD3(OnGoAway, void(SpdyStreamId, SpdyGoAwayStatus, StringPiece)); |
| 81 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId, int)); | 81 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId, int)); |
| 82 MOCK_METHOD3(OnPushPromise, | 82 MOCK_METHOD3(OnPushPromise, |
| 83 void(SpdyStreamId, SpdyStreamId, const SpdyHeaderBlock&)); | 83 void(SpdyStreamId, SpdyStreamId, const SpdyHeaderBlock&)); |
| 84 MOCK_METHOD3(OnAltSvc, |
| 85 void(SpdyStreamId, |
| 86 base::StringPiece, |
| 87 const SpdyAltSvcWireFormat::AlternativeServiceVector&)); |
| 84 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); | 88 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 class FakeSMConnection : public SMConnection { | 91 class FakeSMConnection : public SMConnection { |
| 88 public: | 92 public: |
| 89 FakeSMConnection(EpollServer* epoll_server, | 93 FakeSMConnection(EpollServer* epoll_server, |
| 90 SSLState* ssl_state, | 94 SSLState* ssl_state, |
| 91 MemoryCache* memory_cache, | 95 MemoryCache* memory_cache, |
| 92 FlipAcceptor* acceptor, | 96 FlipAcceptor* acceptor, |
| 93 std::string log_prefix) | 97 std::string log_prefix) |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 ASSERT_EQ(2, spdy_framer_->frames_received()); | 611 ASSERT_EQ(2, spdy_framer_->frames_received()); |
| 608 ASSERT_EQ(2u, actual_header_block.size()); | 612 ASSERT_EQ(2u, actual_header_block.size()); |
| 609 ASSERT_EQ("404 Not Found", actual_header_block["status"]); | 613 ASSERT_EQ("404 Not Found", actual_header_block["status"]); |
| 610 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]); | 614 ASSERT_EQ("HTTP/1.1", actual_header_block["version"]); |
| 611 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size)); | 615 ASSERT_EQ("wtf?", StringPiece(actual_data, actual_size)); |
| 612 } | 616 } |
| 613 | 617 |
| 614 } // namespace | 618 } // namespace |
| 615 | 619 |
| 616 } // namespace net | 620 } // namespace net |
| OLD | NEW |