| OLD | NEW |
| 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, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. | 13 // limitations under the License. |
| 14 | 14 |
| 15 #include "snapshot/test/test_module_snapshot.h" | 15 #include "snapshot/test/test_module_snapshot.h" |
| 16 | 16 |
| 17 namespace crashpad { | 17 namespace crashpad { |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 TestModuleSnapshot::TestModuleSnapshot() | 20 TestModuleSnapshot::TestModuleSnapshot() |
| 21 : name_(), | 21 : name_(), |
| 22 address_(0), | 22 address_(0), |
| 23 size_(0), | 23 size_(0), |
| 24 timestamp_(0), | 24 timestamp_(0), |
| 25 file_version_(), | 25 file_version_(), |
| 26 source_version_(), | 26 source_version_(), |
| 27 module_type_(kModuleTypeUnknown), | 27 module_type_(kModuleTypeUnknown), |
| 28 age_(0), |
| 28 uuid_(), | 29 uuid_(), |
| 29 annotations_vector_(), | 30 annotations_vector_(), |
| 30 annotations_simple_map_() { | 31 annotations_simple_map_() { |
| 31 } | 32 } |
| 32 | 33 |
| 33 TestModuleSnapshot::~TestModuleSnapshot() { | 34 TestModuleSnapshot::~TestModuleSnapshot() { |
| 34 } | 35 } |
| 35 | 36 |
| 36 std::string TestModuleSnapshot::Name() const { | 37 std::string TestModuleSnapshot::Name() const { |
| 37 return name_; | 38 return name_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 66 *version_0 = source_version_[0]; | 67 *version_0 = source_version_[0]; |
| 67 *version_1 = source_version_[1]; | 68 *version_1 = source_version_[1]; |
| 68 *version_2 = source_version_[2]; | 69 *version_2 = source_version_[2]; |
| 69 *version_3 = source_version_[3]; | 70 *version_3 = source_version_[3]; |
| 70 } | 71 } |
| 71 | 72 |
| 72 ModuleSnapshot::ModuleType TestModuleSnapshot::GetModuleType() const { | 73 ModuleSnapshot::ModuleType TestModuleSnapshot::GetModuleType() const { |
| 73 return module_type_; | 74 return module_type_; |
| 74 } | 75 } |
| 75 | 76 |
| 76 void TestModuleSnapshot::UUID(crashpad::UUID* uuid) const { | 77 void TestModuleSnapshot::UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const { |
| 77 *uuid = uuid_; | 78 *uuid = uuid_; |
| 79 *age = age_; |
| 78 } | 80 } |
| 79 | 81 |
| 80 std::vector<std::string> TestModuleSnapshot::AnnotationsVector() const { | 82 std::vector<std::string> TestModuleSnapshot::AnnotationsVector() const { |
| 81 return annotations_vector_; | 83 return annotations_vector_; |
| 82 } | 84 } |
| 83 | 85 |
| 84 std::map<std::string, std::string> TestModuleSnapshot::AnnotationsSimpleMap() | 86 std::map<std::string, std::string> TestModuleSnapshot::AnnotationsSimpleMap() |
| 85 const { | 87 const { |
| 86 return annotations_simple_map_; | 88 return annotations_simple_map_; |
| 87 } | 89 } |
| 88 | 90 |
| 89 } // namespace test | 91 } // namespace test |
| 90 } // namespace crashpad | 92 } // namespace crashpad |
| OLD | NEW |