From 3e80b95054c868241ee3ec291603f5babda685e1 Mon Sep 17 00:00:00 2001 From: Leonard Grey Date: Thu, 18 Aug 2022 17:51:05 -0400 Subject: [PATCH] Run clang-format on process_reader_mac_test Missed this in https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3833512 Bug: None Change-Id: I90a122f3b671999464e6a62e1df7d654573d9f05 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3840479 Reviewed-by: Mark Mentovai --- snapshot/mac/process_reader_mac_test.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/snapshot/mac/process_reader_mac_test.cc b/snapshot/mac/process_reader_mac_test.cc index db982f93..7921311a 100644 --- a/snapshot/mac/process_reader_mac_test.cc +++ b/snapshot/mac/process_reader_mac_test.cc @@ -948,15 +948,15 @@ class ProcessReaderModulesChild final : public MachMultiprocess { EXPECT_EQ(modules[index].reader->Address(), expect_address); bool expect_timestamp; - if ((index == 0 && MacOSVersionNumber() < 12'00'00) || index == modules.size() - 1) { - // Pre-dyld4, dyld didn’t set the main executable's timestamp, and it - // was reported as 0. - // The last module is dyld. - EXPECT_EQ(modules[index].timestamp, 0); - } - else if (IsMalformedCLKernelsModule(modules[index].reader->FileType(), - modules[index].name, - &expect_timestamp)) { + if ((index == 0 && MacOSVersionNumber() < 12'00'00) || + index == modules.size() - 1) { + // Pre-dyld4, dyld didn’t set the main executable's timestamp, and it + // was reported as 0. + // The last module is dyld. + EXPECT_EQ(modules[index].timestamp, 0); + } else if (IsMalformedCLKernelsModule(modules[index].reader->FileType(), + modules[index].name, + &expect_timestamp)) { // cl_kernels doesn’t exist as a file, but may still have a timestamp. if (!expect_timestamp) { EXPECT_EQ(modules[index].timestamp, 0);