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

Side by Side Diff: minidump/test/minidump_string_writer_test_util.h

Issue 804593002: Move string16 and char16 in to base:: (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: include roll of mini_chromium to 37bac7... Created 6 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 | « minidump/minidump_writer_util.cc ('k') | minidump/test/minidump_string_writer_test_util.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 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 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,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 //! returns the string data as a `string16`. 71 //! returns the string data as a `string16`.
72 //! 72 //!
73 //! \param[in] file_contents The contents of the minidump file. 73 //! \param[in] file_contents The contents of the minidump file.
74 //! \param[in] rva The offset within the minidump file of the desired 74 //! \param[in] rva The offset within the minidump file of the desired
75 //! MINIDUMP_STRING. 75 //! MINIDUMP_STRING.
76 //! 76 //!
77 //! \return On success, the string read from \a file_writer at offset \a rva. On 77 //! \return On success, the string read from \a file_writer at offset \a rva. On
78 //! failure, raises a gtest assertion and returns an empty string. 78 //! failure, raises a gtest assertion and returns an empty string.
79 //! 79 //!
80 //! \sa MinidumpUTF8StringAtRVAAsString() 80 //! \sa MinidumpUTF8StringAtRVAAsString()
81 string16 MinidumpStringAtRVAAsString(const std::string& file_contents, RVA rva); 81 base::string16 MinidumpStringAtRVAAsString(const std::string& file_contents,
82 RVA rva);
82 83
83 //! \brief Returns the contents of a MinidumpUTF8String as a `std::string`. 84 //! \brief Returns the contents of a MinidumpUTF8String as a `std::string`.
84 //! 85 //!
85 //! This function uses MinidumpUTF8StringAtRVA() to obtain a MinidumpUTF8String, 86 //! This function uses MinidumpUTF8StringAtRVA() to obtain a MinidumpUTF8String,
86 //! and returns the string data as a `std::string`. 87 //! and returns the string data as a `std::string`.
87 //! 88 //!
88 //! \param[in] file_contents The contents of the minidump file. 89 //! \param[in] file_contents The contents of the minidump file.
89 //! \param[in] rva The offset within the minidump file of the desired 90 //! \param[in] rva The offset within the minidump file of the desired
90 //! MinidumpUTF8String. 91 //! MinidumpUTF8String.
91 //! 92 //!
92 //! \return On success, the string read from \a file_writer at offset \a rva. On 93 //! \return On success, the string read from \a file_writer at offset \a rva. On
93 //! failure, raises a gtest assertion and returns an empty string. 94 //! failure, raises a gtest assertion and returns an empty string.
94 //! 95 //!
95 //! \sa MinidumpStringAtRVAAsString() 96 //! \sa MinidumpStringAtRVAAsString()
96 std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents, 97 std::string MinidumpUTF8StringAtRVAAsString(const std::string& file_contents,
97 RVA rva); 98 RVA rva);
98 99
99 } // namespace test 100 } // namespace test
100 } // namespace crashpad 101 } // namespace crashpad
101 102
102 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_STRING_WRITER_TEST_UTIL_H_ 103 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_STRING_WRITER_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « minidump/minidump_writer_util.cc ('k') | minidump/test/minidump_string_writer_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698