OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (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 |
| 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. |
| 14 |
| 15 #ifndef CRASHPAD_MINIDUMP_TEST_MINIDUMP_RVA_LIST_TEST_UTIL_H_ |
| 16 #define CRASHPAD_MINIDUMP_TEST_MINIDUMP_RVA_LIST_TEST_UTIL_H_ |
| 17 |
| 18 #include <sys/types.h> |
| 19 |
| 20 #include <string> |
| 21 |
| 22 namespace crashpad { |
| 23 |
| 24 struct MinidumpRVAList; |
| 25 |
| 26 namespace test { |
| 27 |
| 28 //! \brief Returns the MinidumpRVAList at the start of a minidump file. |
| 29 //! |
| 30 //! \param[in] file_contents The contents of the minidump file. |
| 31 //! \param[in] count The number of ::RVA objects expected in the |
| 32 //! MinidumpRVAList. This function will only be successful if exactly this |
| 33 //! many objects are present, and if space for them exists in \a |
| 34 //! file_contents. |
| 35 //! |
| 36 //! \return On success, the MinidumpRVAList at the beginning of the file. On |
| 37 //! failure, raises a gtest assertion and returns `nullptr`. |
| 38 const MinidumpRVAList* MinidumpRVAListAtStart(const std::string& file_contents, |
| 39 size_t count); |
| 40 |
| 41 } // namespace test |
| 42 } // namespace crashpad |
| 43 |
| 44 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_RVA_LIST_TEST_UTIL_H_ |
OLD | NEW |