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

Side by Side Diff: third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 //! 114 //!
115 //! \param[in] region The memory map region snapshot that will be included in 115 //! \param[in] region The memory map region snapshot that will be included in
116 //! MemoryMap(). The TestProcessSnapshot object takes ownership of \a 116 //! MemoryMap(). The TestProcessSnapshot object takes ownership of \a
117 //! region. 117 //! region.
118 void AddMemoryMapRegion(std::unique_ptr<MemoryMapRegionSnapshot> region) { 118 void AddMemoryMapRegion(std::unique_ptr<MemoryMapRegionSnapshot> region) {
119 memory_map_.push_back(region.release()); 119 memory_map_.push_back(region.release());
120 } 120 }
121 121
122 //! \brief Adds a handle snapshot to be returned by Handles(). 122 //! \brief Adds a handle snapshot to be returned by Handles().
123 //! 123 //!
124 //! \param[in] region The handle snapshot that will be included in Handles(). 124 //! \param[in] handle The handle snapshot that will be included in Handles().
125 void AddHandle(const HandleSnapshot& handle) { 125 void AddHandle(const HandleSnapshot& handle) {
126 handles_.push_back(handle); 126 handles_.push_back(handle);
127 } 127 }
128 128
129 //! \brief Add a memory snapshot to be returned by ExtraMemory(). 129 //! \brief Add a memory snapshot to be returned by ExtraMemory().
130 //! 130 //!
131 //! \param[in] extra_memory The memory snapshot that will be included in 131 //! \param[in] extra_memory The memory snapshot that will be included in
132 //! ExtraMemory(). The TestProcessSnapshot object takes ownership of \a 132 //! ExtraMemory(). The TestProcessSnapshot object takes ownership of \a
133 //! extra_memory. 133 //! extra_memory.
134 void AddExtraMemory(std::unique_ptr<MemorySnapshot> extra_memory) { 134 void AddExtraMemory(std::unique_ptr<MemorySnapshot> extra_memory) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 std::vector<HandleSnapshot> handles_; 174 std::vector<HandleSnapshot> handles_;
175 PointerVector<MemorySnapshot> extra_memory_; 175 PointerVector<MemorySnapshot> extra_memory_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot); 177 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot);
178 }; 178 };
179 179
180 } // namespace test 180 } // namespace test
181 } // namespace crashpad 181 } // namespace crashpad
182 182
183 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_ 183 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698