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

Side by Side Diff: third_party/crashpad/crashpad/test/hex_string.h

Issue 2710663006: Update Crashpad to 4a2043ea65e2641ef1a921801c0aaa15ada02fc7 (Closed)
Patch Set: Update Crashpad to 4a2043ea65e2 Created 3 years, 10 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
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2017 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #ifndef CRASHPAD_UTIL_NET_HTTP_HEADERS_H_ 15 #ifndef CRASHPAD_TEST_HEX_STRING_H_
16 #define CRASHPAD_UTIL_NET_HTTP_HEADERS_H_ 16 #define CRASHPAD_TEST_HEX_STRING_H_
17 17
18 #include <map> 18 #include <sys/types.h>
19
19 #include <string> 20 #include <string>
20 21
21 namespace crashpad { 22 namespace crashpad {
23 namespace test {
22 24
23 //! \brief A map of HTTP header fields to their values. 25 //! \brief Returns a hexadecimal string corresponding to \a bytes and \a length.
24 using HTTPHeaders = std::map<std::string, std::string>; 26 //!
27 //! Example usage:
28 //! \code
29 //! uint8_t expected[10];
30 //! uint8_t observed[10];
31 //! // …
32 //! EXPECT_EQ(BytesToHexString(expected, arraysize(expected)),
33 //! BytesToHexString(observed, arraysize(observed)));
34 //! \endcode
35 std::string BytesToHexString(const void* bytes, size_t length);
25 36
26 //! \brief The header name `"Content-Type"`. 37 } // namespace test
27 extern const char kContentType[];
28
29 //! \brief The header name `"Content-Length"`.
30 extern const char kContentLength[];
31
32 } // namespace crashpad 38 } // namespace crashpad
33 39
34 #endif // CRASHPAD_UTIL_NET_HTTP_HEADERS_H_ 40 #endif // CRASHPAD_TEST_HEX_STRING_H_
OLDNEW
« no previous file with comments | « third_party/crashpad/crashpad/snapshot/win/cpu_context_win_test.cc ('k') | third_party/crashpad/crashpad/test/hex_string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698