Commit d070688c authored by Cliff Smolinsky's avatar Cliff Smolinsky Committed by Commit Bot

Fix EnumeratesPEWithTargetModule test for ARM64

The test was incorrectly expecting >1 dll to be enumerated for the case
when a target module is specified.

Bug: 1014527
Change-Id: I1e8fd5474411f5e4286a171e0353e24e46e668b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863450Reviewed-by: default avatarBruce Dawson <brucedawson@chromium.org>
Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
Commit-Queue: Cliff Smolinsky <cliffsmo@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#706505}
parent 3ec106d0
...@@ -182,29 +182,19 @@ TEST(PEImageTest, EnumeratesPEWithTargetModule) { ...@@ -182,29 +182,19 @@ TEST(PEImageTest, EnumeratesPEWithTargetModule) {
const char kTargetModuleStatic[] = "user32.dll"; const char kTargetModuleStatic[] = "user32.dll";
const char kTargetModuleDelay[] = "cfgmgr32.dll"; const char kTargetModuleDelay[] = "cfgmgr32.dll";
#if defined(ARCH_CPU_ARM64) const int kImportsDlls = 1;
const int kSections = 7;
const int kImportsDlls = 2;
const int kDelayDlls = 1; const int kDelayDlls = 1;
const int kExports = 3; const int kExports = 3;
const int kImports = 2; const int kImports = 2;
const int kDelayImports = 1; const int kDelayImports = 1;
#if defined(ARCH_CPU_ARM64)
const int kSections = 7;
const int kRelocs = 740; const int kRelocs = 740;
#elif defined(ARCH_CPU_64_BITS) #elif defined(ARCH_CPU_64_BITS)
const int kSections = 6; const int kSections = 6;
const int kImportsDlls = 1;
const int kDelayDlls = 1;
const int kExports = 3;
const int kImports = 2;
const int kDelayImports = 1;
const int kRelocs = 976; const int kRelocs = 976;
#else #else
const int kSections = 5; const int kSections = 5;
const int kImportsDlls = 1;
const int kDelayDlls = 1;
const int kExports = 3;
const int kImports = 2;
const int kDelayImports = 1;
const int kRelocs = 2114; const int kRelocs = 2114;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment