| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ | 5 #ifndef NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ |
| 6 #define NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ | 6 #define NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ |
| 7 | 7 |
| 8 #include "base/strings/string_piece.h" | 8 #include "base/strings/string_piece.h" |
| 9 #include "net/spdy/spdy_framer.h" | 9 #include "net/spdy/spdy_framer.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 SpdyGoAwayStatus status)); | 45 SpdyGoAwayStatus status)); |
| 46 MOCK_METHOD5(OnHeaders, void(SpdyStreamId stream_id, bool has_priority, | 46 MOCK_METHOD5(OnHeaders, void(SpdyStreamId stream_id, bool has_priority, |
| 47 SpdyPriority priority, bool fin, bool end)); | 47 SpdyPriority priority, bool fin, bool end)); |
| 48 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId stream_id, | 48 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId stream_id, |
| 49 uint32 delta_window_size)); | 49 uint32 delta_window_size)); |
| 50 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); | 50 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); |
| 51 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id, | 51 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id, |
| 52 SpdyStreamId promised_stream_id, | 52 SpdyStreamId promised_stream_id, |
| 53 bool end)); | 53 bool end)); |
| 54 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); | 54 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); |
| 55 MOCK_METHOD6(OnAltSvc, void(SpdyStreamId stream_id, | 55 MOCK_METHOD3(OnAltSvc, |
| 56 uint32 max_age, | 56 void(SpdyStreamId stream_id, |
| 57 uint16 port, | 57 base::StringPiece origin, |
| 58 base::StringPiece protocol_id, | 58 const SpdyAltSvcWireFormat::AlternativeService& altsvc)); |
| 59 base::StringPiece host, | |
| 60 base::StringPiece origin)); | |
| 61 MOCK_METHOD4(OnPriority, | 59 MOCK_METHOD4(OnPriority, |
| 62 void(SpdyStreamId stream_id, | 60 void(SpdyStreamId stream_id, |
| 63 SpdyStreamId parent_stream_id, | 61 SpdyStreamId parent_stream_id, |
| 64 uint8 weight, | 62 uint8 weight, |
| 65 bool exclusive)); | 63 bool exclusive)); |
| 66 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); | 64 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type)); |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 } // namespace test | 67 } // namespace test |
| 70 | 68 |
| 71 } // namespace net | 69 } // namespace net |
| 72 | 70 |
| 73 #endif // NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ | 71 #endif // NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ |
| OLD | NEW |