Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1499)

Side by Side Diff: net/spdy/mock_spdy_framer_visitor.h

Issue 290003006: Land recent SPDY changes (through 67282679) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on nullptr => NULL Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/hpack_header_table_test.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "net/spdy/spdy_framer.h" 9 #include "net/spdy/spdy_framer.h"
9 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
10 11
11 namespace net { 12 namespace net {
12 13
13 namespace test { 14 namespace test {
14 15
15 class MockSpdyFramerVisitor : public SpdyFramerVisitorInterface { 16 class MockSpdyFramerVisitor : public SpdyFramerVisitorInterface {
16 public: 17 public:
17 MockSpdyFramerVisitor(); 18 MockSpdyFramerVisitor();
(...skipping 24 matching lines...) Expand all
42 MOCK_METHOD2(OnGoAway, void(SpdyStreamId last_accepted_stream_id, 43 MOCK_METHOD2(OnGoAway, void(SpdyStreamId last_accepted_stream_id,
43 SpdyGoAwayStatus status)); 44 SpdyGoAwayStatus status));
44 MOCK_METHOD3(OnHeaders, void(SpdyStreamId stream_id, bool fin, bool end)); 45 MOCK_METHOD3(OnHeaders, void(SpdyStreamId stream_id, bool fin, bool end));
45 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId stream_id, 46 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId stream_id,
46 uint32 delta_window_size)); 47 uint32 delta_window_size));
47 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id)); 48 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id));
48 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id, 49 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id,
49 SpdyStreamId promised_stream_id, 50 SpdyStreamId promised_stream_id,
50 bool end)); 51 bool end));
51 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end)); 52 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end));
53 MOCK_METHOD6(OnAltSvc, void(SpdyStreamId stream_id,
54 uint32 max_age,
55 uint16 port,
56 base::StringPiece protocol_id,
57 base::StringPiece host,
58 base::StringPiece origin));
52 }; 59 };
53 60
54 } // namespace test 61 } // namespace test
55 62
56 } // namespace net 63 } // namespace net
57 64
58 #endif // NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_ 65 #endif // NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_
OLDNEW
« no previous file with comments | « net/spdy/hpack_header_table_test.cc ('k') | net/spdy/spdy_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698