Sort unlaunched apps on app list start page by apps grid order.
[chromium-blink-merge.git] / net / spdy / mock_spdy_framer_visitor.h
blob480c367c355eb292fcf23cdb76f80db1454d9729
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
3 // found in the LICENSE file.
5 #ifndef NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_
6 #define NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_
8 #include "base/strings/string_piece.h"
9 #include "net/spdy/spdy_framer.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 namespace net {
14 namespace test {
16 class MockSpdyFramerVisitor : public SpdyFramerVisitorInterface {
17 public:
18 MockSpdyFramerVisitor();
19 virtual ~MockSpdyFramerVisitor();
20 MOCK_METHOD1(OnError, void(SpdyFramer* framer));
21 MOCK_METHOD3(OnDataFrameHeader, void(SpdyStreamId stream_id,
22 size_t length,
23 bool fin));
24 MOCK_METHOD4(OnStreamFrameData, void(SpdyStreamId stream_id,
25 const char* data,
26 size_t len,
27 bool fin));
28 MOCK_METHOD3(OnControlFrameHeaderData, bool(SpdyStreamId stream_id,
29 const char* header_data,
30 size_t len));
31 MOCK_METHOD5(OnSynStream, void(SpdyStreamId stream_id,
32 SpdyStreamId associated_stream_id,
33 SpdyPriority priority,
34 bool fin,
35 bool unidirectional));
36 MOCK_METHOD2(OnSynReply, void(SpdyStreamId stream_id, bool fin));
37 MOCK_METHOD2(OnRstStream, void(SpdyStreamId stream_id,
38 SpdyRstStreamStatus status));
39 MOCK_METHOD1(OnSettings, void(bool clear_persisted));
40 MOCK_METHOD3(OnSetting, void(SpdySettingsIds id, uint8 flags, uint32 value));
41 MOCK_METHOD2(OnPing, void(SpdyPingId unique_id, bool is_ack));
42 MOCK_METHOD0(OnSettingsEnd, void());
43 MOCK_METHOD2(OnGoAway, void(SpdyStreamId last_accepted_stream_id,
44 SpdyGoAwayStatus status));
45 MOCK_METHOD5(OnHeaders, void(SpdyStreamId stream_id, bool has_priority,
46 SpdyPriority priority, bool fin, bool end));
47 MOCK_METHOD2(OnWindowUpdate, void(SpdyStreamId stream_id,
48 uint32 delta_window_size));
49 MOCK_METHOD1(OnBlocked, void(SpdyStreamId stream_id));
50 MOCK_METHOD3(OnPushPromise, void(SpdyStreamId stream_id,
51 SpdyStreamId promised_stream_id,
52 bool end));
53 MOCK_METHOD2(OnContinuation, void(SpdyStreamId stream_id, bool end));
54 MOCK_METHOD6(OnAltSvc, void(SpdyStreamId stream_id,
55 uint32 max_age,
56 uint16 port,
57 base::StringPiece protocol_id,
58 base::StringPiece host,
59 base::StringPiece origin));
60 MOCK_METHOD4(OnPriority,
61 void(SpdyStreamId stream_id,
62 SpdyStreamId parent_stream_id,
63 uint8 weight,
64 bool exclusive));
65 MOCK_METHOD2(OnUnknownFrame, bool(SpdyStreamId stream_id, int frame_type));
68 } // namespace test
70 } // namespace net
72 #endif // NET_SPDY_MOCK_SPDY_FRAMER_VISITOR_H_