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

Side by Side Diff: net/quic/test_tools/mock_quic_spdy_client_stream.h

Issue 2462823002: Deletes dead code. (Closed)
Patch Set: Updated patchset dependency Created 4 years, 1 month 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
« no previous file with comments | « net/quic/core/quic_spdy_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.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 (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 #ifndef NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_
6 #define NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ 6 #define NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "net/quic/core/quic_header_list.h"
9 #include "net/quic/core/quic_protocol.h" 10 #include "net/quic/core/quic_protocol.h"
10 #include "net/tools/quic/quic_spdy_client_stream.h" 11 #include "net/tools/quic/quic_spdy_client_stream.h"
11 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
12 // #include "testing/gtest/include/gtest/gtest.h" 13 // #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace net { 15 namespace net {
15 namespace test { 16 namespace test {
16 17
17 class MockQuicSpdyClientStream : public net::QuicSpdyClientStream { 18 class MockQuicSpdyClientStream : public net::QuicSpdyClientStream {
18 public: 19 public:
19 MockQuicSpdyClientStream(QuicStreamId id, net::QuicClientSession* session); 20 MockQuicSpdyClientStream(QuicStreamId id, net::QuicClientSession* session);
20 ~MockQuicSpdyClientStream() override; 21 ~MockQuicSpdyClientStream() override;
21 22
22 MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame& frame)); 23 MOCK_METHOD1(OnStreamFrame, void(const QuicStreamFrame& frame));
23 MOCK_METHOD2(OnInitialHeadersComplete, void(bool fin, size_t frame_len)); 24 MOCK_METHOD3(OnPromiseHeaderList,
24 MOCK_METHOD3(OnTrailingHeadersComplete, 25 void(QuicStreamId promised_stream_id,
25 void(bool fin,
26 size_t frame_len, 26 size_t frame_len,
27 const QuicHeaderList& header_list)); 27 const QuicHeaderList& list));
28 MOCK_METHOD1(OnPromiseHeaders, void(base::StringPiece headers_data));
29 MOCK_METHOD2(OnPromiseHeadersComplete,
30 void(QuicStreamId promised_stream_id, size_t frame_len));
31 MOCK_METHOD0(OnDataAvailable, void()); 28 MOCK_METHOD0(OnDataAvailable, void());
32 }; 29 };
33 30
34 } // namespace test 31 } // namespace test
35 } // namespace net 32 } // namespace net
36 33
37 #endif // NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_ 34 #endif // NET_QUIC_TEST_TOOLS_MOCK_QUIC_SPDY_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_spdy_stream_test.cc ('k') | net/quic/test_tools/quic_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698