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

Unified Diff: minidump/minidump_thread_writer_test.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_string_writer.h ('k') | minidump/test/minidump_writable_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_thread_writer_test.cc
diff --git a/minidump/minidump_thread_writer_test.cc b/minidump/minidump_thread_writer_test.cc
index a74307e90222c0ef5889c229b5b7daeaea481013..8b629bb51b2c2ac0bfdc8998152017a52366e7be 100644
--- a/minidump/minidump_thread_writer_test.cc
+++ b/minidump/minidump_thread_writer_test.cc
@@ -481,7 +481,7 @@ TEST(MinidumpThreadWriter, ThreeThreads_x86_MemoryList) {
}
struct InitializeFromSnapshotX86Traits {
- typedef MinidumpContextX86 MinidumpContextType;
+ using MinidumpContextType = MinidumpContextX86;
static void InitializeCPUContext(CPUContext* context, uint32_t seed) {
return InitializeCPUContextX86(context, seed);
}
@@ -492,7 +492,7 @@ struct InitializeFromSnapshotX86Traits {
};
struct InitializeFromSnapshotAMD64Traits {
- typedef MinidumpContextAMD64 MinidumpContextType;
+ using MinidumpContextType = MinidumpContextAMD64;
static void InitializeCPUContext(CPUContext* context, uint32_t seed) {
return InitializeCPUContextX86_64(context, seed);
}
@@ -504,7 +504,7 @@ struct InitializeFromSnapshotAMD64Traits {
};
struct InitializeFromSnapshotNoContextTraits {
- typedef MinidumpContextX86 MinidumpContextType;
+ using MinidumpContextType = MinidumpContextX86;
static void InitializeCPUContext(CPUContext* context, uint32_t seed) {
context->architecture = kCPUArchitectureUnknown;
}
@@ -517,7 +517,7 @@ struct InitializeFromSnapshotNoContextTraits {
template <typename Traits>
void RunInitializeFromSnapshotTest(bool thread_id_collision) {
- typedef typename Traits::MinidumpContextType MinidumpContextType;
+ using MinidumpContextType = typename Traits::MinidumpContextType;
MINIDUMP_THREAD expect_threads[3] = {};
uint64_t thread_ids[arraysize(expect_threads)] = {};
uint8_t memory_values[arraysize(expect_threads)] = {};
« no previous file with comments | « minidump/minidump_string_writer.h ('k') | minidump/test/minidump_writable_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698