diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 21:50:30 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 21:50:30 +0000 |
commit | 0b6ba683f33a5298e943d0077cd37d35cd1c88ae (patch) | |
tree | 7e79cdec9394ff91641b92904937ebbfc14a57c0 | |
parent | 243cf289bfa5cef3a65653340e9320a64dd1fe65 (diff) | |
download | chromium_src-0b6ba683f33a5298e943d0077cd37d35cd1c88ae.zip chromium_src-0b6ba683f33a5298e943d0077cd37d35cd1c88ae.tar.gz chromium_src-0b6ba683f33a5298e943d0077cd37d35cd1c88ae.tar.bz2 |
Fixes for the EnumeratesPE base_unittest failures seen on Windows 8 X64. The values
used by this test for sections and import dlls, needed to be changed. These values
are different for X86 and X64.
BUG=123096
R=cpu
Review URL: https://chromiumcodereview.appspot.com/10083011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132278 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/win/pe_image_unittest.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/base/win/pe_image_unittest.cc b/base/win/pe_image_unittest.cc index 4d91e68..f0fb61d 100644 --- a/base/win/pe_image_unittest.cc +++ b/base/win/pe_image_unittest.cc @@ -121,12 +121,20 @@ int GetExpectedValue(Value value, DWORD os) { const int win8_imports = 568; const int win8_delay_imports = 113; const int win8_relocs = 9478; + int win8_sections = 4; + int win8_import_dlls = 17; + + base::win::OSInfo* os_info = base::win::OSInfo::GetInstance(); + if (os_info->architecture() == base::win::OSInfo::X86_ARCHITECTURE) { + win8_sections = 5; + win8_import_dlls = 19; + } // Contains the expected value, for each enumerated property (Value), and the // OS version: [Value][os_version] const int expected[][5] = { - {4, 4, 4, 4, 5}, - {3, 3, 3, 13, 19}, + {4, 4, 4, 4, win8_sections}, + {3, 3, 3, 13, win8_import_dlls}, {w2k_delay_dlls, xp_delay_dlls, vista_delay_dlls, win7_delay_dlls, win8_delay_dlls}, {w2k_exports, xp_exports, vista_exports, win7_exports, win8_exports}, |