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

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

Issue 246073007: SPDY & HPACK: Land recent internal changes (through 65328503) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on upstream change: Expanded FRAME_TOO_LARGE/FRAME_SIZE_ERROR comment. 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/spdy_session.cc ('k') | net/spdy/spdy_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_session.h" 5 #include "net/spdy/spdy_session.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 4117 matching lines...) Expand 10 before | Expand all | Expand 10 after
4128 SpdyFramer::SPDY_GOAWAY_FRAME_CORRUPT)); 4128 SpdyFramer::SPDY_GOAWAY_FRAME_CORRUPT));
4129 CHECK_EQ(SPDY_ERROR_UNEXPECTED_FRAME, 4129 CHECK_EQ(SPDY_ERROR_UNEXPECTED_FRAME,
4130 MapFramerErrorToProtocolError( 4130 MapFramerErrorToProtocolError(
4131 SpdyFramer::SPDY_UNEXPECTED_FRAME)); 4131 SpdyFramer::SPDY_UNEXPECTED_FRAME));
4132 } 4132 }
4133 4133
4134 TEST(MapRstStreamStatusToProtocolError, MapsValues) { 4134 TEST(MapRstStreamStatusToProtocolError, MapsValues) {
4135 CHECK_EQ(STATUS_CODE_PROTOCOL_ERROR, 4135 CHECK_EQ(STATUS_CODE_PROTOCOL_ERROR,
4136 MapRstStreamStatusToProtocolError( 4136 MapRstStreamStatusToProtocolError(
4137 RST_STREAM_PROTOCOL_ERROR)); 4137 RST_STREAM_PROTOCOL_ERROR));
4138 CHECK_EQ(STATUS_CODE_FRAME_TOO_LARGE, 4138 CHECK_EQ(STATUS_CODE_FRAME_SIZE_ERROR,
4139 MapRstStreamStatusToProtocolError( 4139 MapRstStreamStatusToProtocolError(
4140 RST_STREAM_FRAME_TOO_LARGE)); 4140 RST_STREAM_FRAME_SIZE_ERROR));
4141 CHECK_EQ(STATUS_CODE_ENHANCE_YOUR_CALM,
4142 MapRstStreamStatusToProtocolError(
4143 RST_STREAM_ENHANCE_YOUR_CALM));
4141 } 4144 }
4142 4145
4143 } // namespace net 4146 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | net/spdy/spdy_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698