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

Side by Side Diff: net/spdy/spdy_framer.h

Issue 995453003: Add unittest for GetNumberRequiredContinuationFrames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | net/spdy/spdy_framer_test.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 #ifndef NET_SPDY_SPDY_FRAMER_H_ 5 #ifndef NET_SPDY_SPDY_FRAMER_H_
6 #define NET_SPDY_SPDY_FRAMER_H_ 6 #define NET_SPDY_SPDY_FRAMER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameSizesAreValidated); 591 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameSizesAreValidated);
592 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HeaderCompression); 592 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HeaderCompression);
593 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DecompressUncompressedFrame); 593 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, DecompressUncompressedFrame);
594 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ExpandBuffer_HeapSmash); 594 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ExpandBuffer_HeapSmash);
595 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HugeHeaderBlock); 595 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, HugeHeaderBlock);
596 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors); 596 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, UnclosedStreamDataCompressors);
597 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 597 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
598 UnclosedStreamDataCompressorsOneByteAtATime); 598 UnclosedStreamDataCompressorsOneByteAtATime);
599 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 599 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
600 UncompressLargerThanFrameBufferInitialSize); 600 UncompressLargerThanFrameBufferInitialSize);
601 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, GetNumberRequiredContinuationFrames);
601 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 602 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
602 CreatePushPromiseThenContinuationUncompressed); 603 CreatePushPromiseThenContinuationUncompressed);
603 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ReadLargeSettingsFrame); 604 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ReadLargeSettingsFrame);
604 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 605 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
605 ReadLargeSettingsFrameInSmallChunks); 606 ReadLargeSettingsFrameInSmallChunks);
606 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameAtMaxSizeLimit); 607 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameAtMaxSizeLimit);
607 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameTooLarge); 608 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, ControlFrameTooLarge);
608 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 609 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
609 TooLargeHeadersFrameUsesContinuation); 610 TooLargeHeadersFrameUsesContinuation);
610 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest, 611 FRIEND_TEST_ALL_PREFIXES(SpdyFramerTest,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM 798 // If a HEADERS frame is followed by a CONTINUATION frame, the FIN/END_STREAM
798 // flag is still carried in the HEADERS frame. If it's set, flip this so that 799 // flag is still carried in the HEADERS frame. If it's set, flip this so that
799 // we know to terminate the stream when the entire header block has been 800 // we know to terminate the stream when the entire header block has been
800 // processed. 801 // processed.
801 bool end_stream_when_done_; 802 bool end_stream_when_done_;
802 }; 803 };
803 804
804 } // namespace net 805 } // namespace net
805 806
806 #endif // NET_SPDY_SPDY_FRAMER_H_ 807 #endif // NET_SPDY_SPDY_FRAMER_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_framer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698