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

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

Issue 707543002: MinidumpLocationDescriptorListWriter (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Share MinidumpLocationDescriptorListAtStart() 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
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_LOCATION_DESCRIPTOR_LIST_TEST_UTIL_H_
16 #define CRASHPAD_MINIDUMP_TEST_MINIDUMP_LOCATION_DESCRIPTOR_LIST_TEST_UTIL_H_
17
18 #include <sys/types.h>
19
20 #include <string>
21
22 namespace crashpad {
23
24 struct MinidumpLocationDescriptorList;
25
26 namespace test {
27
28 //! \brief Returns the MinidumpLocationDescriptorList at the start of a minidump
29 //! file.
30 //!
31 //! \param[in] file_contents The contents of the minidump file.
32 //! \param[in] count The number of MINIDUMP_LOCATION_DESCRIPTOR objects expected
33 //! in the MinidumpLocationDescriptorList. This function will only be
34 //! successful if exactly this many objects are present, and if space for
35 //! them exists in \a file_contents.
36 //!
37 //! \return On success, the MinidumpLocationDescriptorList at the beginning of
38 //! the file. On failure, raises a gtest assertion and returns `nullptr`.
39 const MinidumpLocationDescriptorList* MinidumpLocationDescriptorListAtStart(
40 const std::string& file_contents,
41 size_t count);
42
43 } // namespace test
44 } // namespace crashpad
45
46 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_LOCATION_DESCRIPTOR_LIST_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698