| 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, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include <map> | 21 #include <map> |
| 22 #include <string> | 22 #include <string> |
| 23 #include <vector> | 23 #include <vector> |
| 24 | 24 |
| 25 #include "base/basictypes.h" | 25 #include "base/basictypes.h" |
| 26 #include "snapshot/module_snapshot.h" | 26 #include "snapshot/module_snapshot.h" |
| 27 | 27 |
| 28 namespace crashpad { | 28 namespace crashpad { |
| 29 namespace test { | 29 namespace test { |
| 30 | 30 |
| 31 //! \brief A test ModuleSnapshot that can carries arbitrary data for testing | 31 //! \brief A test ModuleSnapshot that can carry arbitrary data for testing |
| 32 //! purposes. | 32 //! purposes. |
| 33 class TestModuleSnapshot final : public ModuleSnapshot { | 33 class TestModuleSnapshot final : public ModuleSnapshot { |
| 34 public: | 34 public: |
| 35 TestModuleSnapshot(); | 35 TestModuleSnapshot(); |
| 36 ~TestModuleSnapshot(); | 36 ~TestModuleSnapshot(); |
| 37 | 37 |
| 38 void SetName(const std::string& name) { name_ = name; } | 38 void SetName(const std::string& name) { name_ = name; } |
| 39 void SetAddressAndSize(uint64_t address, uint64_t size) { | 39 void SetAddressAndSize(uint64_t address, uint64_t size) { |
| 40 address_ = address; | 40 address_ = address; |
| 41 size_ = size; | 41 size_ = size; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 std::vector<std::string> annotations_vector_; | 101 std::vector<std::string> annotations_vector_; |
| 102 std::map<std::string, std::string> annotations_simple_map_; | 102 std::map<std::string, std::string> annotations_simple_map_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(TestModuleSnapshot); | 104 DISALLOW_COPY_AND_ASSIGN(TestModuleSnapshot); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace test | 107 } // namespace test |
| 108 } // namespace crashpad | 108 } // namespace crashpad |
| 109 | 109 |
| 110 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_MODULE_SNAPSHOT_H_ | 110 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_MODULE_SNAPSHOT_H_ |
| OLD | NEW |