| 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 age_(0), |
| 29 uuid_(), | 29 uuid_(), |
| 30 debug_file_name_(), |
| 30 annotations_vector_(), | 31 annotations_vector_(), |
| 31 annotations_simple_map_() { | 32 annotations_simple_map_() { |
| 32 } | 33 } |
| 33 | 34 |
| 34 TestModuleSnapshot::~TestModuleSnapshot() { | 35 TestModuleSnapshot::~TestModuleSnapshot() { |
| 35 } | 36 } |
| 36 | 37 |
| 37 std::string TestModuleSnapshot::Name() const { | 38 std::string TestModuleSnapshot::Name() const { |
| 38 return name_; | 39 return name_; |
| 39 } | 40 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 73 |
| 73 ModuleSnapshot::ModuleType TestModuleSnapshot::GetModuleType() const { | 74 ModuleSnapshot::ModuleType TestModuleSnapshot::GetModuleType() const { |
| 74 return module_type_; | 75 return module_type_; |
| 75 } | 76 } |
| 76 | 77 |
| 77 void TestModuleSnapshot::UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const { | 78 void TestModuleSnapshot::UUIDAndAge(crashpad::UUID* uuid, uint32_t* age) const { |
| 78 *uuid = uuid_; | 79 *uuid = uuid_; |
| 79 *age = age_; | 80 *age = age_; |
| 80 } | 81 } |
| 81 | 82 |
| 83 std::string TestModuleSnapshot::DebugFileName() const { |
| 84 return debug_file_name_; |
| 85 } |
| 86 |
| 82 std::vector<std::string> TestModuleSnapshot::AnnotationsVector() const { | 87 std::vector<std::string> TestModuleSnapshot::AnnotationsVector() const { |
| 83 return annotations_vector_; | 88 return annotations_vector_; |
| 84 } | 89 } |
| 85 | 90 |
| 86 std::map<std::string, std::string> TestModuleSnapshot::AnnotationsSimpleMap() | 91 std::map<std::string, std::string> TestModuleSnapshot::AnnotationsSimpleMap() |
| 87 const { | 92 const { |
| 88 return annotations_simple_map_; | 93 return annotations_simple_map_; |
| 89 } | 94 } |
| 90 | 95 |
| 91 } // namespace test | 96 } // namespace test |
| 92 } // namespace crashpad | 97 } // namespace crashpad |
| OLD | NEW |