Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: minidump/minidump_crashpad_info_writer_test.cc

Issue 707543002: MinidumpLocationDescriptorListWriter (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Address review feedback Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « minidump/minidump.gyp ('k') | minidump/minidump_extensions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « minidump/minidump.gyp ('k') | minidump/minidump_extensions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698