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: minidump/test/minidump_rva_list_test_util.h

Issue 704333002: Add MinidumpRVAListWriter and test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump_location_descriptor_list
Patch Set: Rebase Created 6 years, 1 month 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_rva_list_writer_test.cc ('k') | minidump/test/minidump_rva_list_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
(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_
OLDNEW
« no previous file with comments | « minidump/minidump_rva_list_writer_test.cc ('k') | minidump/test/minidump_rva_list_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698