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

Unified Diff: minidump/test/minidump_writable_test_util.cc

Issue 700143004: C++11: Use type aliases instead of typedefs (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « minidump/minidump_thread_writer_test.cc ('k') | snapshot/cpu_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/test/minidump_writable_test_util.cc
diff --git a/minidump/test/minidump_writable_test_util.cc b/minidump/test/minidump_writable_test_util.cc
index ccee7ed12c17e1453a5d5bf792378861d3f514c8..f1389908dc623399e07e51007ba174c97d7de07c 100644
--- a/minidump/test/minidump_writable_test_util.cc
+++ b/minidump/test/minidump_writable_test_util.cc
@@ -137,7 +137,7 @@ const MINIDUMP_HEADER* MinidumpWritableAtLocationDescriptor<MINIDUMP_HEADER>(
namespace {
struct MinidumpMemoryListTraits {
- typedef MINIDUMP_MEMORY_LIST ListType;
+ using ListType = MINIDUMP_MEMORY_LIST;
static constexpr size_t kElementSize = sizeof(MINIDUMP_MEMORY_DESCRIPTOR);
static size_t ElementCount(const ListType* list) {
return list->NumberOfMemoryRanges;
@@ -145,7 +145,7 @@ struct MinidumpMemoryListTraits {
};
struct MinidumpModuleListTraits {
- typedef MINIDUMP_MODULE_LIST ListType;
+ using ListType = MINIDUMP_MODULE_LIST;
static constexpr size_t kElementSize = sizeof(MINIDUMP_MODULE);
static size_t ElementCount(const ListType* list) {
return list->NumberOfModules;
@@ -153,7 +153,7 @@ struct MinidumpModuleListTraits {
};
struct MinidumpThreadListTraits {
- typedef MINIDUMP_THREAD_LIST ListType;
+ using ListType = MINIDUMP_THREAD_LIST;
static constexpr size_t kElementSize = sizeof(MINIDUMP_THREAD);
static size_t ElementCount(const ListType* list) {
return list->NumberOfThreads;
@@ -161,7 +161,7 @@ struct MinidumpThreadListTraits {
};
struct MinidumpModuleCrashpadInfoListTraits {
- typedef MinidumpModuleCrashpadInfoList ListType;
+ using ListType = MinidumpModuleCrashpadInfoList;
static constexpr size_t kElementSize = sizeof(MINIDUMP_LOCATION_DESCRIPTOR);
static size_t ElementCount(const ListType* list) {
return list->count;
@@ -169,7 +169,7 @@ struct MinidumpModuleCrashpadInfoListTraits {
};
struct MinidumpSimpleStringDictionaryListTraits {
- typedef MinidumpSimpleStringDictionary ListType;
+ using ListType = MinidumpSimpleStringDictionary;
static constexpr size_t kElementSize =
sizeof(MinidumpSimpleStringDictionaryEntry);
static size_t ElementCount(const ListType* list) {
« no previous file with comments | « minidump/minidump_thread_writer_test.cc ('k') | snapshot/cpu_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698