Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: sandbox/win/tests/validation_tests/suite.cc

Issue 1814863004: Cleanup/Remove Windows XP/Vista version checks from Windows sandbox code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed Wow64 stuff. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« sandbox/win/src/win_utils.cc ('K') | « sandbox/win/src/win_utils.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/validation_tests/suite.cc
diff --git a/sandbox/win/tests/validation_tests/suite.cc b/sandbox/win/tests/validation_tests/suite.cc
index 9fe25cebf13e2a4e10d724b59bee8ca457557247..14fba74cd17feb6277712287c416fa4f22319bef 100644
--- a/sandbox/win/tests/validation_tests/suite.cc
+++ b/sandbox/win/tests/validation_tests/suite.cc
@@ -121,9 +121,6 @@ TEST(ValidationSuite, TestDesktop) {
// Tests that the permissions on the Windowstation does not allow the sandbox
// to get to the interactive desktop or to make the sbox desktop interactive.
TEST(ValidationSuite, TestAlternateDesktop) {
- base::win::Version version = base::win::GetVersion();
- if (version < base::win::VERSION_WIN7)
- return;
TestRunner runner;
EXPECT_EQ(SBOX_TEST_DENIED, runner.RunTest(L"EnumAlternateWinsta NULL"));
@@ -167,9 +164,6 @@ TEST(ValidationSuite, TestProcessDenyLockdown) {
// Tests that a low-integrity process cannot open a locked-down process (due
// to the integrity label changing after startup via SetDelayedIntegrityLevel).
TEST(ValidationSuite, TestProcessDenyLowIntegrity) {
- // This test applies only to Vista and above.
- if (base::win::GetVersion() < base::win::VERSION_VISTA)
- return;
TestRunner runner;
TestRunner target;
@@ -188,9 +182,6 @@ TEST(ValidationSuite, TestProcessDenyLowIntegrity) {
// Tests that a locked-down process cannot open a low-integrity process.
TEST(ValidationSuite, TestProcessDenyBelowLowIntegrity) {
- // This test applies only to Vista and above.
- if (base::win::GetVersion() < base::win::VERSION_VISTA)
- return;
TestRunner runner;
TestRunner target;
« sandbox/win/src/win_utils.cc ('K') | « sandbox/win/src/win_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698