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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 ASSERT_NO_FATAL_FAILURE(GetCrashpadInfoStream( | 91 ASSERT_NO_FATAL_FAILURE(GetCrashpadInfoStream( |
92 file_writer.string(), &crashpad_info, &module_list)); | 92 file_writer.string(), &crashpad_info, &module_list)); |
93 | 93 |
94 EXPECT_EQ(MinidumpCrashpadInfo::kVersion, crashpad_info->version); | 94 EXPECT_EQ(MinidumpCrashpadInfo::kVersion, crashpad_info->version); |
95 ASSERT_TRUE(module_list); | 95 ASSERT_TRUE(module_list); |
96 ASSERT_EQ(1u, module_list->count); | 96 ASSERT_EQ(1u, module_list->count); |
97 | 97 |
98 const MinidumpModuleCrashpadInfo* module = | 98 const MinidumpModuleCrashpadInfo* module = |
99 MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfo>( | 99 MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfo>( |
100 file_writer.string(), module_list->modules[0]); | 100 file_writer.string(), module_list->children[0]); |
101 ASSERT_TRUE(module); | 101 ASSERT_TRUE(module); |
102 | 102 |
103 EXPECT_EQ(MinidumpModuleCrashpadInfo::kVersion, module->version); | 103 EXPECT_EQ(MinidumpModuleCrashpadInfo::kVersion, module->version); |
104 EXPECT_EQ(kMinidumpModuleListIndex, module->minidump_module_list_index); | 104 EXPECT_EQ(kMinidumpModuleListIndex, module->minidump_module_list_index); |
105 EXPECT_EQ(0u, module->simple_annotations.DataSize); | 105 EXPECT_EQ(0u, module->simple_annotations.DataSize); |
106 EXPECT_EQ(0u, module->simple_annotations.Rva); | 106 EXPECT_EQ(0u, module->simple_annotations.Rva); |
107 } | 107 } |
108 | 108 |
109 } // namespace | 109 } // namespace |
110 } // namespace test | 110 } // namespace test |
111 } // namespace crashpad | 111 } // namespace crashpad |
OLD | NEW |