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

Side by Side Diff: net/spdy/spdy_test_util_common.cc

Issue 485833002: HTTP2 draft 14 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add ignore_result(). Created 6 years, 4 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
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_utils.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "net/spdy/spdy_test_util_common.h" 5 #include "net/spdy/spdy_test_util_common.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 virtual void OnPing(SpdyPingId unique_id, bool is_ack) OVERRIDE {} 241 virtual void OnPing(SpdyPingId unique_id, bool is_ack) OVERRIDE {}
242 virtual void OnRstStream(SpdyStreamId stream_id, 242 virtual void OnRstStream(SpdyStreamId stream_id,
243 SpdyRstStreamStatus status) OVERRIDE {} 243 SpdyRstStreamStatus status) OVERRIDE {}
244 virtual void OnGoAway(SpdyStreamId last_accepted_stream_id, 244 virtual void OnGoAway(SpdyStreamId last_accepted_stream_id,
245 SpdyGoAwayStatus status) OVERRIDE {} 245 SpdyGoAwayStatus status) OVERRIDE {}
246 virtual void OnWindowUpdate(SpdyStreamId stream_id, 246 virtual void OnWindowUpdate(SpdyStreamId stream_id,
247 uint32 delta_window_size) OVERRIDE {} 247 uint32 delta_window_size) OVERRIDE {}
248 virtual void OnPushPromise(SpdyStreamId stream_id, 248 virtual void OnPushPromise(SpdyStreamId stream_id,
249 SpdyStreamId promised_stream_id, 249 SpdyStreamId promised_stream_id,
250 const SpdyHeaderBlock& headers) OVERRIDE {} 250 const SpdyHeaderBlock& headers) OVERRIDE {}
251 virtual bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) OVERRIDE {
252 return false;
253 }
251 254
252 private: 255 private:
253 SpdyPriority priority_; 256 SpdyPriority priority_;
254 }; 257 };
255 258
256 } // namespace 259 } // namespace
257 260
258 bool GetSpdyPriority(SpdyMajorVersion version, 261 bool GetSpdyPriority(SpdyMajorVersion version,
259 const SpdyFrame& frame, 262 const SpdyFrame& frame,
260 SpdyPriority* priority) { 263 SpdyPriority* priority) {
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 } 1314 }
1312 } 1315 }
1313 1316
1314 void SpdyTestUtil::SetPriority(RequestPriority priority, 1317 void SpdyTestUtil::SetPriority(RequestPriority priority,
1315 SpdySynStreamIR* ir) const { 1318 SpdySynStreamIR* ir) const {
1316 ir->set_priority(ConvertRequestPriorityToSpdyPriority( 1319 ir->set_priority(ConvertRequestPriorityToSpdyPriority(
1317 priority, spdy_version())); 1320 priority, spdy_version()));
1318 } 1321 }
1319 1322
1320 } // namespace net 1323 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698