OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 // SpdyNoOpVisitor implements several of the visitor and handler interfaces | 5 // SpdyNoOpVisitor implements several of the visitor and handler interfaces |
6 // to make it easier to write tests that need to provide instances. Other | 6 // to make it easier to write tests that need to provide instances. Other |
7 // interfaces can be added as needed. | 7 // interfaces can be added as needed. |
8 | 8 |
9 #ifndef NET_SPDY_SPDY_NO_OP_VISITOR_H_ | 9 #ifndef NET_SPDY_SPDY_NO_OP_VISITOR_H_ |
10 #define NET_SPDY_SPDY_NO_OP_VISITOR_H_ | 10 #define NET_SPDY_SPDY_NO_OP_VISITOR_H_ |
11 | 11 |
12 #include <cstdint> | 12 #include <cstdint> |
13 | 13 |
| 14 #include "net/spdy/core/spdy_framer.h" |
| 15 #include "net/spdy/core/spdy_protocol.h" |
14 #include "net/spdy/platform/api/spdy_string_piece.h" | 16 #include "net/spdy/platform/api/spdy_string_piece.h" |
15 #include "net/spdy/spdy_framer.h" | |
16 #include "net/spdy/spdy_protocol.h" | |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 class SpdyNoOpVisitor : public SpdyFramerVisitorInterface, | 21 class SpdyNoOpVisitor : public SpdyFramerVisitorInterface, |
22 public SpdyFramerDebugVisitorInterface, | 22 public SpdyFramerDebugVisitorInterface, |
23 public SpdyHeadersHandlerInterface { | 23 public SpdyHeadersHandlerInterface { |
24 public: | 24 public: |
25 SpdyNoOpVisitor(); | 25 SpdyNoOpVisitor(); |
26 ~SpdyNoOpVisitor() override; | 26 ~SpdyNoOpVisitor() override; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void OnHeader(SpdyStringPiece key, SpdyStringPiece value) override {} | 81 void OnHeader(SpdyStringPiece key, SpdyStringPiece value) override {} |
82 void OnHeaderBlockEnd(size_t uncompressed_header_bytes) override {} | 82 void OnHeaderBlockEnd(size_t uncompressed_header_bytes) override {} |
83 void OnHeaderBlockEnd(size_t /* uncompressed_header_bytes */, | 83 void OnHeaderBlockEnd(size_t /* uncompressed_header_bytes */, |
84 size_t /* compressed_header_bytes */) override {} | 84 size_t /* compressed_header_bytes */) override {} |
85 }; | 85 }; |
86 | 86 |
87 } // namespace test | 87 } // namespace test |
88 } // namespace net | 88 } // namespace net |
89 | 89 |
90 #endif // NET_SPDY_SPDY_NO_OP_VISITOR_H_ | 90 #endif // NET_SPDY_SPDY_NO_OP_VISITOR_H_ |
OLD | NEW |