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

Side by Side Diff: snapshot/test/test_process_snapshot.cc

Issue 1407643004: Some plumbing for the beginning of getting handles into snapshot/minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@handles-redux
Patch Set: . Created 5 years, 2 months 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 | « snapshot/test/test_process_snapshot.h ('k') | snapshot/win/process_snapshot_win.h » ('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 16 matching lines...) Expand all
27 process_cpu_user_time_(), 27 process_cpu_user_time_(),
28 process_cpu_system_time_(), 28 process_cpu_system_time_(),
29 report_id_(), 29 report_id_(),
30 client_id_(), 30 client_id_(),
31 annotations_simple_map_(), 31 annotations_simple_map_(),
32 system_(), 32 system_(),
33 threads_(), 33 threads_(),
34 modules_(), 34 modules_(),
35 exception_(), 35 exception_(),
36 memory_map_(), 36 memory_map_(),
37 handles_(),
37 extra_memory_() { 38 extra_memory_() {
38 } 39 }
39 40
40 TestProcessSnapshot::~TestProcessSnapshot() { 41 TestProcessSnapshot::~TestProcessSnapshot() {
41 } 42 }
42 43
43 pid_t TestProcessSnapshot::ProcessID() const { 44 pid_t TestProcessSnapshot::ProcessID() const {
44 return process_id_; 45 return process_id_;
45 } 46 }
46 47
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 101 }
101 102
102 std::vector<const MemoryMapRegionSnapshot*> TestProcessSnapshot::MemoryMap() 103 std::vector<const MemoryMapRegionSnapshot*> TestProcessSnapshot::MemoryMap()
103 const { 104 const {
104 std::vector<const MemoryMapRegionSnapshot*> memory_map; 105 std::vector<const MemoryMapRegionSnapshot*> memory_map;
105 for (const auto& item : memory_map_) 106 for (const auto& item : memory_map_)
106 memory_map.push_back(item); 107 memory_map.push_back(item);
107 return memory_map; 108 return memory_map;
108 } 109 }
109 110
111 std::vector<HandleSnapshot> TestProcessSnapshot::Handles() const {
112 return handles_;
113 }
114
110 std::vector<const MemorySnapshot*> TestProcessSnapshot::ExtraMemory() const { 115 std::vector<const MemorySnapshot*> TestProcessSnapshot::ExtraMemory() const {
111 std::vector<const MemorySnapshot*> extra_memory; 116 std::vector<const MemorySnapshot*> extra_memory;
112 for (const auto& em : extra_memory_) 117 for (const auto& em : extra_memory_)
113 extra_memory.push_back(em); 118 extra_memory.push_back(em);
114 return extra_memory; 119 return extra_memory;
115 } 120 }
116 121
117 } // namespace test 122 } // namespace test
118 } // namespace crashpad 123 } // namespace crashpad
OLDNEW
« no previous file with comments | « snapshot/test/test_process_snapshot.h ('k') | snapshot/win/process_snapshot_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698