Index: net/spdy/spdy_framer_test.cc |
diff --git a/net/spdy/spdy_framer_test.cc b/net/spdy/spdy_framer_test.cc |
index c2979131cf9d1e03845340d26c073061b5682797..9c19520884f879dd8db64683217ed64c572008c6 100644 |
--- a/net/spdy/spdy_framer_test.cc |
+++ b/net/spdy/spdy_framer_test.cc |
@@ -3283,18 +3283,19 @@ TEST_P(SpdyFramerTest, CreateContinuationUncompressed) { |
const char kDescription[] = "CONTINUATION frame"; |
const unsigned char kFrameData[] = { |
- 0x00, 0x00, 0x12, 0x09, 0x00, // CONTINUATION |
- 0x00, 0x00, 0x00, 0x2a, // Stream 42 |
- 0x00, 0x03, 0x62, 0x61, // @.ba |
- 0x72, 0x03, 0x66, 0x6f, // r.fo |
- 0x6f, 0x00, 0x03, 0x66, // o@.f |
- 0x6f, 0x6f, 0x03, 0x62, // oo.b |
- 0x61, 0x72, // ar |
+ 0x00, 0x00, 0x12, 0x09, // CONTINUATION |
+ 0x04, 0x00, 0x00, 0x00, // end_headers = true |
+ 0x2a, 0x00, 0x03, 0x62, // Stream 42, @.b |
+ 0x61, 0x72, 0x03, 0x66, // ar.f |
+ 0x6f, 0x6f, 0x00, 0x03, // oo@. |
+ 0x66, 0x6f, 0x6f, 0x03, // foo. |
+ 0x62, 0x61, 0x72, // bar |
}; |
SpdyContinuationIR continuation(42); |
continuation.SetHeader("bar", "foo"); |
continuation.SetHeader("foo", "bar"); |
+ continuation.set_end_headers(true); |
scoped_ptr<SpdySerializedFrame> frame( |
framer.SerializeContinuation(continuation)); |
CompareFrame(kDescription, *frame, kFrameData, arraysize(kFrameData)); |
@@ -3451,6 +3452,12 @@ TEST_P(SpdyFramerTest, CreatePriority) { |
SpdyPriorityIR priority_ir(2, 1, 16, true); |
scoped_ptr<SpdySerializedFrame> frame(framer.SerializeFrame(priority_ir)); |
CompareFrame(kDescription, *frame, kFrameData, arraysize(kFrameData)); |
+ SpdyPriorityIR priority2(2); |
+ priority2.set_parent_stream_id(1); |
+ priority2.set_weight(16); |
+ priority2.set_exclusive(true); |
+ frame.reset(framer.SerializeFrame(priority2)); |
+ CompareFrame(kDescription, *frame, kFrameData, arraysize(kFrameData)); |
} |
TEST_P(SpdyFramerTest, ReadCompressedSynStreamHeaderBlock) { |