OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 time_t ModuleSnapshotWin::Timestamp() const { | 90 time_t ModuleSnapshotWin::Timestamp() const { |
91 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 91 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
92 return timestamp_; | 92 return timestamp_; |
93 } | 93 } |
94 | 94 |
95 void ModuleSnapshotWin::FileVersion(uint16_t* version_0, | 95 void ModuleSnapshotWin::FileVersion(uint16_t* version_0, |
96 uint16_t* version_1, | 96 uint16_t* version_1, |
97 uint16_t* version_2, | 97 uint16_t* version_2, |
98 uint16_t* version_3) const { | 98 uint16_t* version_3) const { |
99 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 99 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
100 CHECK(false) << "TODO(scottmg)"; | 100 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::FileVersion()"; |
| 101 *version_0 = 0; |
| 102 *version_1 = 0; |
| 103 *version_2 = 0; |
| 104 *version_3 = 0; |
101 } | 105 } |
102 | 106 |
103 void ModuleSnapshotWin::SourceVersion(uint16_t* version_0, | 107 void ModuleSnapshotWin::SourceVersion(uint16_t* version_0, |
104 uint16_t* version_1, | 108 uint16_t* version_1, |
105 uint16_t* version_2, | 109 uint16_t* version_2, |
106 uint16_t* version_3) const { | 110 uint16_t* version_3) const { |
107 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 111 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
108 CHECK(false) << "TODO(scottmg)"; | 112 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::SourceVersion()"; |
| 113 *version_0 = 0; |
| 114 *version_1 = 0; |
| 115 *version_2 = 0; |
| 116 *version_3 = 0; |
109 } | 117 } |
110 | 118 |
111 ModuleSnapshot::ModuleType ModuleSnapshotWin::GetModuleType() const { | 119 ModuleSnapshot::ModuleType ModuleSnapshotWin::GetModuleType() const { |
112 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 120 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
113 CHECK(false) << "TODO(scottmg)"; | 121 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::GetModuleType()"; |
114 return ModuleSnapshot::ModuleType(); | 122 return kModuleTypeSharedLibrary; |
115 } | 123 } |
116 | 124 |
117 void ModuleSnapshotWin::UUID(crashpad::UUID* uuid) const { | 125 void ModuleSnapshotWin::UUID(crashpad::UUID* uuid) const { |
118 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 126 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
119 CHECK(false) << "TODO(scottmg)"; | 127 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::UUID()"; |
| 128 *uuid = crashpad::UUID(); |
120 } | 129 } |
121 | 130 |
122 std::vector<std::string> ModuleSnapshotWin::AnnotationsVector() const { | 131 std::vector<std::string> ModuleSnapshotWin::AnnotationsVector() const { |
123 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 132 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
124 CHECK(false) << "TODO(scottmg)"; | 133 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::AnnotationsVector()"; |
125 return std::vector<std::string>(); | 134 return std::vector<std::string>(); |
126 } | 135 } |
127 | 136 |
128 std::map<std::string, std::string> ModuleSnapshotWin::AnnotationsSimpleMap() | 137 std::map<std::string, std::string> ModuleSnapshotWin::AnnotationsSimpleMap() |
129 const { | 138 const { |
130 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 139 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
131 CHECK(false) << "TODO(scottmg)"; | 140 LOG(ERROR) << "TODO(scottmg): ModuleSnapshotWin::AnnotationsSimpleMap()"; |
132 return std::map<std::string, std::string>(); | 141 return std::map<std::string, std::string>(); |
133 } | 142 } |
134 | 143 |
135 } // namespace internal | 144 } // namespace internal |
136 } // namespace crashpad | 145 } // namespace crashpad |
OLD | NEW |