Allow fuzzy embedder test comparisons on macOS ARM as well Fuzzy comparison tolerance, implemented in GetPlatformMaxPixelDelta(), only tolerance minor differences on macOS x86. However, sometimes all platforms render the same except macOS ARM, because it is the only ARM platform being tested. To make fuzzy matching work for this situation, change GetPlatformMaxPixelDelta() to tolerate minor differences on macOS ARM as well. Bug: 468228360 Change-Id: I41a99e41c5e22e4956da0aebef4f8ec1eb15a37d Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/142590 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Andy Phan <andyphan@chromium.org>
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp index 1867a0e..be067ee 100644 --- a/testing/embedder_test.cpp +++ b/testing/embedder_test.cpp
@@ -291,11 +291,11 @@ } int GetPlatformMaxPixelDelta() { -#if BUILDFLAG(IS_APPLE) && !defined(ARCH_CPU_ARM64) +#if BUILDFLAG(IS_APPLE) return 1; #else return 0; -#endif // BUILDFLAG(IS_APPLE) && !defined(ARCH_CPU_ARM64) +#endif // BUILDFLAG(IS_APPLE) } std::string GetEmbedderTestExpectationPath(