Home | History | Annotate | Download | only in win

Lines Matching refs:os

97 // Retrieves the expected value from advapi32.dll based on the OS.
98 int GetExpectedValue(Value value, DWORD os) {
121 // OS version: [Value][os_version]
135 if (50 == os)
136 os = 0; // 5.0
137 else if (51 == os || 52 == os)
138 os = 1;
139 else if (os == 60)
140 os = 2; // 6.x
141 else if (os >= 61)
142 os = 3;
146 return expected[value][os];
162 DWORD os = pe.GetNTHeaders()->OptionalHeader.MajorOperatingSystemVersion;
163 os = os * 10 + pe.GetNTHeaders()->OptionalHeader.MinorOperatingSystemVersion;
166 EXPECT_EQ(GetExpectedValue(sections, os), count);
170 EXPECT_EQ(GetExpectedValue(imports_dlls, os), count);
174 EXPECT_EQ(GetExpectedValue(delay_dlls, os), count);
178 EXPECT_GT(count, GetExpectedValue(exports, os) - 20);
179 EXPECT_LT(count, GetExpectedValue(exports, os) + 100);
183 EXPECT_GT(count, GetExpectedValue(imports, os) - 20);
184 EXPECT_LT(count, GetExpectedValue(imports, os) + 100);
188 EXPECT_GT(count, GetExpectedValue(delay_imports, os) - 2);
189 EXPECT_LT(count, GetExpectedValue(delay_imports, os) + 8);
193 EXPECT_GT(count, GetExpectedValue(relocs, os) - 150);
194 EXPECT_LT(count, GetExpectedValue(relocs, os) + 1500);