diff options
Diffstat (limited to 'net/spdy/spdy_network_transaction_unittest.cc')
-rw-r--r-- | net/spdy/spdy_network_transaction_unittest.cc | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc index 805de3c3..c4caf88 100644 --- a/net/spdy/spdy_network_transaction_unittest.cc +++ b/net/spdy/spdy_network_transaction_unittest.cc @@ -99,8 +99,9 @@ MockWrite* ChopFrame(const char* data, int length, int num_chunks) { static const unsigned char kGetSyn[] = { 0x80, 0x01, 0x00, 0x01, // header - 0x01, 0x00, 0x00, 0x45, // FIN, len + 0x01, 0x00, 0x00, 0x49, // FIN, len 0x00, 0x00, 0x00, 0x01, // stream id + 0x00, 0x00, 0x00, 0x00, // associated 0xc0, 0x00, 0x00, 0x03, // 4 headers 0x00, 0x06, 'm', 'e', 't', 'h', 'o', 'd', 0x00, 0x03, 'G', 'E', 'T', @@ -113,16 +114,16 @@ static const unsigned char kGetSyn[] = { }; static const unsigned char kGetSynCompressed[] = { - 0x80, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x43, - 0x00, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x78, 0xbb, - 0xdf, 0xa2, 0x51, 0xb2, 0x62, 0x60, 0x66, 0x60, - 0xcb, 0x05, 0xe6, 0xc3, 0xfc, 0x14, 0x06, 0x66, - 0x77, 0xd7, 0x10, 0x06, 0x66, 0x90, 0xa0, 0x58, - 0x46, 0x49, 0x49, 0x81, 0x95, 0xbe, 0x3e, 0x30, - 0xe2, 0xf5, 0xd2, 0xf3, 0xf3, 0xd3, 0x73, 0x52, - 0xf5, 0x92, 0xf3, 0x73, 0xf5, 0x19, 0xd8, 0xa1, - 0x1a, 0x19, 0x38, 0x60, 0xe6, 0x01, 0x00, 0x00, - 0x00, 0xff, 0xff + 0x80, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x47, + 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, + 0xc0, 0x00, 0x78, 0xbb, 0xdf, 0xa2, 0x51, 0xb2, + 0x62, 0x60, 0x66, 0x60, 0xcb, 0x05, 0xe6, 0xc3, + 0xfc, 0x14, 0x06, 0x66, 0x77, 0xd7, 0x10, 0x06, + 0x66, 0x90, 0xa0, 0x58, 0x46, 0x49, 0x49, 0x81, + 0x95, 0xbe, 0x3e, 0x30, 0xe2, 0xf5, 0xd2, 0xf3, + 0xf3, 0xd3, 0x73, 0x52, 0xf5, 0x92, 0xf3, 0x73, + 0xf5, 0x19, 0xd8, 0xa1, 0x1a, 0x19, 0x38, 0x60, + 0xe6, 0x01, 0x00, 0x00, 0x00, 0xff, 0xff }; static const unsigned char kGetSynReply[] = { @@ -148,8 +149,9 @@ static const unsigned char kGetBodyFrame[] = { static const unsigned char kPostSyn[] = { 0x80, 0x01, 0x00, 0x01, // header - 0x00, 0x00, 0x00, 0x46, // flags, len + 0x00, 0x00, 0x00, 0x4a, // flags, len 0x00, 0x00, 0x00, 0x01, // stream id + 0x00, 0x00, 0x00, 0x00, // associated 0xc0, 0x00, 0x00, 0x03, // 4 headers 0x00, 0x06, 'm', 'e', 't', 'h', 'o', 'd', 0x00, 0x04, 'P', 'O', 'S', 'T', @@ -409,8 +411,9 @@ TEST_F(SpdyNetworkTransactionTest, Post) { TEST_F(SpdyNetworkTransactionTest, EmptyPost) { static const unsigned char kEmptyPostSyn[] = { 0x80, 0x01, 0x00, 0x01, // header - 0x01, 0x00, 0x00, 0x46, // flags, len + 0x01, 0x00, 0x00, 0x4a, // flags, len 0x00, 0x00, 0x00, 0x01, // stream id + 0x00, 0x00, 0x00, 0x00, // associated 0xc0, 0x00, 0x00, 0x03, // 4 headers 0x00, 0x06, 'm', 'e', 't', 'h', 'o', 'd', 0x00, 0x04, 'P', 'O', 'S', 'T', @@ -766,8 +769,9 @@ TEST_F(SpdyNetworkTransactionTest, ServerPush) { // Syn for the X-Associated-Content (foo.dat) static const unsigned char syn_push[] = { 0x80, 0x01, 0x00, 0x01, - 0x00, 0x00, 0x00, 0x47, + 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x02, + 0x00, 0x00, 0x00, 0x00, // TODO(mbelshe): use new server push protocol. 0x00, 0x00, 0x00, 0x04, 0x00, 0x04, 'p', 'a', 't', 'h', 0x00, 0x08, '/', 'f', 'o', 'o', '.', 'd', 'a', 't', |