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

Unified Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 2544813002: Remove enum SpdyMajorVersion. (Closed)
Patch Set: Merge comment changes from 140661724. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_headers_block_parser_test.cc ('k') | net/spdy/spdy_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_network_transaction_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc
index cb82d44479bcae16a7071850192930e3d2846896..7b8a8597e6ecc957cecf293a3dfe715814eca408 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -3239,9 +3239,9 @@ TEST_F(SpdyNetworkTransactionTest, CorruptFrameSessionError) {
SpdySerializedFrame reply_wrong_length(
spdy_util_.ConstructSpdyGetReply(nullptr, 0, 1));
size_t right_size =
- reply_wrong_length.size() - SpdyConstants::GetFrameHeaderSize(HTTP2);
+ reply_wrong_length.size() - SpdyConstants::kFrameHeaderSize;
size_t wrong_size = right_size - 4;
- test::SetFrameLength(&reply_wrong_length, wrong_size, HTTP2);
+ test::SetFrameLength(&reply_wrong_length, wrong_size);
MockRead reads[] = {
MockRead(ASYNC, reply_wrong_length.data(), reply_wrong_length.size() - 4,
@@ -3287,7 +3287,7 @@ TEST_F(SpdyNetworkTransactionTest, GoAwayOnFrameSizeError) {
// Read WINDOW_UPDATE with incorrectly-sized payload.
SpdySerializedFrame bad_window_update(
spdy_util_.ConstructSpdyWindowUpdate(1, 1));
- test::SetFrameLength(&bad_window_update, bad_window_update.size() - 1, HTTP2);
+ test::SetFrameLength(&bad_window_update, bad_window_update.size() - 1);
MockRead reads[] = {CreateMockRead(bad_window_update, 1)};
SequencedSocketData data(reads, arraysize(reads), writes, arraysize(writes));
« no previous file with comments | « net/spdy/spdy_headers_block_parser_test.cc ('k') | net/spdy/spdy_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698