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

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

Issue 2852029: Revert "Streams send a Rst frame upon being closed by client. Some minor editorial fixes." (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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 | « net/spdy/spdy_stream.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_TEST_UTIL_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 22 matching lines...) Expand all
33 0x00, 0x05, 'h', 'e', 'l', 'l', 'o', // "hello" 33 0x00, 0x05, 'h', 'e', 'l', 'l', 'o', // "hello"
34 0x00, 0x03, 'b', 'y', 'e', // "bye" 34 0x00, 0x03, 'b', 'y', 'e', // "bye"
35 0x00, 0x06, 's', 't', 'a', 't', 'u', 's', // "status" 35 0x00, 0x06, 's', 't', 'a', 't', 'u', 's', // "status"
36 0x00, 0x03, '2', '0', '0', // "200" 36 0x00, 0x03, '2', '0', '0', // "200"
37 0x00, 0x03, 'u', 'r', 'l', // "url" 37 0x00, 0x03, 'u', 'r', 'l', // "url"
38 0x00, 0x0a, '/', 'i', 'n', 'd', 'e', 'x', '.', 'p', 'h', 'p', // "/index... 38 0x00, 0x0a, '/', 'i', 'n', 'd', 'e', 'x', '.', 'p', 'h', 'p', // "/index...
39 0x00, 0x07, 'v', 'e', 'r', 's', 'i', 'o', 'n', // "version" 39 0x00, 0x07, 'v', 'e', 'r', 's', 'i', 'o', 'n', // "version"
40 0x00, 0x08, 'H', 'T', 'T', 'P', '/', '1', '.', '1', // "HTTP/1.1" 40 0x00, 0x08, 'H', 'T', 'T', 'P', '/', '1', '.', '1', // "HTTP/1.1"
41 }; 41 };
42 42
43 const uint8 kGetRst[] = {
44 0x80, 0x01, 0x00, 0x03, // header
45 0x00, 0x00, 0x00, 0x08,
46 0x00, 0x00, 0x00, 0x01,
47 0x00, 0x00, 0x00, 0x05, // 4 headers
48 };
49
50 const uint8 kGetBodyFrame[] = { 43 const uint8 kGetBodyFrame[] = {
51 0x00, 0x00, 0x00, 0x01, // header 44 0x00, 0x00, 0x00, 0x01, // header
52 0x01, 0x00, 0x00, 0x06, // FIN, length 45 0x01, 0x00, 0x00, 0x06, // FIN, length
53 'h', 'e', 'l', 'l', 'o', '!', // "hello" 46 'h', 'e', 'l', 'l', 'o', '!', // "hello"
54 }; 47 };
55 48
56 const uint8 kGetSynCompressed[] = { 49 const uint8 kGetSynCompressed[] = {
57 0x80, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x47, 50 0x80, 0x01, 0x00, 0x01, 0x01, 0x00, 0x00, 0x47,
58 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 51 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
59 0xc0, 0x00, 0x38, 0xea, 0xdf, 0xa2, 0x51, 0xb2, 52 0xc0, 0x00, 0x38, 0xea, 0xdf, 0xa2, 0x51, 0xb2,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 106
114 const uint8 kGoAway[] = { 107 const uint8 kGoAway[] = {
115 0x80, 0x01, 0x00, 0x07, // header 108 0x80, 0x01, 0x00, 0x07, // header
116 0x00, 0x00, 0x00, 0x04, // flags, len 109 0x00, 0x00, 0x00, 0x04, // flags, len
117 0x00, 0x00, 0x00, 0x00, // last-accepted-stream-id 110 0x00, 0x00, 0x00, 0x00, // last-accepted-stream-id
118 }; 111 };
119 112
120 } // namespace net 113 } // namespace net
121 114
122 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 115 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698