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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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 unified diff | Download patch
« no previous file with comments | « net/spdy/buffered_spdy_framer.cc ('k') | net/spdy/fuzzing/hpack_fuzz_mutator.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) 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/buffered_spdy_framer.h" 5 #include "net/spdy/buffered_spdy_framer.h"
6 6
7 #include "net/spdy/spdy_test_util_common.h" 7 #include "net/spdy/spdy_test_util_common.h"
8 #include "testing/platform_test.h" 8 #include "testing/platform_test.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 LOG(FATAL) << "Unexpected OnHeaderFrameStart call."; 93 LOG(FATAL) << "Unexpected OnHeaderFrameStart call.";
94 return nullptr; 94 return nullptr;
95 } 95 }
96 96
97 void OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) override { 97 void OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) override {
98 LOG(FATAL) << "Unexpected OnHeaderFrameEnd call."; 98 LOG(FATAL) << "Unexpected OnHeaderFrameEnd call.";
99 } 99 }
100 100
101 void OnSettings(bool clear_persisted) override {} 101 void OnSettings(bool clear_persisted) override {}
102 102
103 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override { 103 void OnSetting(SpdySettingsIds id, uint8_t flags, uint32_t value) override {
104 setting_count_++; 104 setting_count_++;
105 } 105 }
106 106
107 void OnPing(SpdyPingId unique_id, bool is_ack) override {} 107 void OnPing(SpdyPingId unique_id, bool is_ack) override {}
108 108
109 void OnRstStream(SpdyStreamId stream_id, 109 void OnRstStream(SpdyStreamId stream_id,
110 SpdyRstStreamStatus status) override {} 110 SpdyRstStreamStatus status) override {}
111 111
112 void OnGoAway(SpdyStreamId last_accepted_stream_id, 112 void OnGoAway(SpdyStreamId last_accepted_stream_id,
113 SpdyGoAwayStatus status, 113 SpdyGoAwayStatus status,
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 reinterpret_cast<unsigned char*>(goaway_frame.get()->data()), 340 reinterpret_cast<unsigned char*>(goaway_frame.get()->data()),
341 goaway_frame.get()->size()); 341 goaway_frame.get()->size());
342 EXPECT_EQ(0, visitor.error_count_); 342 EXPECT_EQ(0, visitor.error_count_);
343 EXPECT_EQ(1, visitor.goaway_count_); 343 EXPECT_EQ(1, visitor.goaway_count_);
344 EXPECT_EQ(2u, visitor.goaway_last_accepted_stream_id_); 344 EXPECT_EQ(2u, visitor.goaway_last_accepted_stream_id_);
345 EXPECT_EQ(GOAWAY_FRAME_SIZE_ERROR, visitor.goaway_status_); 345 EXPECT_EQ(GOAWAY_FRAME_SIZE_ERROR, visitor.goaway_status_);
346 EXPECT_EQ("foo", visitor.goaway_debug_data_); 346 EXPECT_EQ("foo", visitor.goaway_debug_data_);
347 } 347 }
348 348
349 } // namespace net 349 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/buffered_spdy_framer.cc ('k') | net/spdy/fuzzing/hpack_fuzz_mutator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698