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

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

Issue 2544813002: Remove enum SpdyMajorVersion. (Closed)
Patch Set: Merge comment changes from 140661724. Created 4 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/spdy_test_util_common.cc ('k') | net/spdy/spdy_test_utils.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_TEST_UTILS_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTILS_H_
6 #define NET_SPDY_SPDY_TEST_UTILS_H_ 6 #define NET_SPDY_SPDY_TEST_UTILS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 24 matching lines...) Expand all
35 std::string HexDumpWithMarks(const unsigned char* data, int length, 35 std::string HexDumpWithMarks(const unsigned char* data, int length,
36 const bool* marks, int mark_length); 36 const bool* marks, int mark_length);
37 37
38 void CompareCharArraysWithHexError( 38 void CompareCharArraysWithHexError(
39 const std::string& description, 39 const std::string& description,
40 const unsigned char* actual, 40 const unsigned char* actual,
41 const int actual_len, 41 const int actual_len,
42 const unsigned char* expected, 42 const unsigned char* expected,
43 const int expected_len); 43 const int expected_len);
44 44
45 void SetFrameFlags(SpdySerializedFrame* frame, 45 void SetFrameFlags(SpdySerializedFrame* frame, uint8_t flags);
46 uint8_t flags,
47 SpdyMajorVersion spdy_version);
48 46
49 void SetFrameLength(SpdySerializedFrame* frame, 47 void SetFrameLength(SpdySerializedFrame* frame, size_t length);
50 size_t length,
51 SpdyMajorVersion spdy_version);
52 48
53 std::string a2b_hex(const char* hex_data); 49 std::string a2b_hex(const char* hex_data);
54 50
55 // Returns a SHA1 HashValue in which each byte has the value |label|. 51 // Returns a SHA1 HashValue in which each byte has the value |label|.
56 HashValue GetTestHashValue(uint8_t label); 52 HashValue GetTestHashValue(uint8_t label);
57 53
58 // Returns SHA1 pinning header for the of the base64 encoding of 54 // Returns SHA1 pinning header for the of the base64 encoding of
59 // GetTestHashValue(|label|). 55 // GetTestHashValue(|label|).
60 std::string GetTestPin(uint8_t label); 56 std::string GetTestPin(uint8_t label);
61 57
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool CancelPush(GURL url); 98 bool CancelPush(GURL url);
103 99
104 private: 100 private:
105 std::map<GURL, std::unique_ptr<ServerPushHelper>> push_helpers; 101 std::map<GURL, std::unique_ptr<ServerPushHelper>> push_helpers;
106 }; 102 };
107 103
108 } // namespace test 104 } // namespace test
109 } // namespace net 105 } // namespace net
110 106
111 #endif // NET_SPDY_SPDY_TEST_UTILS_H_ 107 #endif // NET_SPDY_SPDY_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698