Commit 0b6ba683 authored by ananta@chromium.org's avatar ananta@chromium.org

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
parent 243cf289
...@@ -121,12 +121,20 @@ int GetExpectedValue(Value value, DWORD os) { ...@@ -121,12 +121,20 @@ int GetExpectedValue(Value value, DWORD os) {
const int win8_imports = 568; const int win8_imports = 568;
const int win8_delay_imports = 113; const int win8_delay_imports = 113;
const int win8_relocs = 9478; 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 // Contains the expected value, for each enumerated property (Value), and the
// OS version: [Value][os_version] // OS version: [Value][os_version]
const int expected[][5] = { const int expected[][5] = {
{4, 4, 4, 4, 5}, {4, 4, 4, 4, win8_sections},
{3, 3, 3, 13, 19}, {3, 3, 3, 13, win8_import_dlls},
{w2k_delay_dlls, xp_delay_dlls, vista_delay_dlls, win7_delay_dlls, {w2k_delay_dlls, xp_delay_dlls, vista_delay_dlls, win7_delay_dlls,
win8_delay_dlls}, win8_delay_dlls},
{w2k_exports, xp_exports, vista_exports, win7_exports, win8_exports}, {w2k_exports, xp_exports, vista_exports, win7_exports, win8_exports},
......
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