diff options
author | scottmg <scottmg@chromium.org> | 2015-08-06 07:22:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 14:22:59 +0000 |
commit | f1489143aefdf35c7afdd0199273766ae15e141e (patch) | |
tree | dfc53e5879898e433b0ed27e1c789544eb4bab13 /sandbox | |
parent | fce47d709dbe8dc27ce0552323fd731690cd83cf (diff) | |
download | chromium_src-f1489143aefdf35c7afdd0199273766ae15e141e.zip chromium_src-f1489143aefdf35c7afdd0199273766ae15e141e.tar.gz chromium_src-f1489143aefdf35c7afdd0199273766ae15e141e.tar.bz2 |
Fix version check in ValidationSuite
This was previously default constructing a base::win::Version enum,
resulting in comparisons of "0 < VERSION_VISTA", so these tests were
always skipped.
(They have been disabled for >3 years, so if this causes problems,
feel free to revert this CL.)
R=wfh@chromium.org
Review URL: https://codereview.chromium.org/1212893008
Cr-Commit-Position: refs/heads/master@{#342109}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/win/tests/validation_tests/suite.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox/win/tests/validation_tests/suite.cc b/sandbox/win/tests/validation_tests/suite.cc index 35fb5dd..df2cb3e 100644 --- a/sandbox/win/tests/validation_tests/suite.cc +++ b/sandbox/win/tests/validation_tests/suite.cc @@ -167,7 +167,7 @@ TEST(ValidationSuite, TestProcessDenyLockdown) { // to the integrity label changing after startup via SetDelayedIntegrityLevel). TEST(ValidationSuite, TestProcessDenyLowIntegrity) { // This test applies only to Vista and above. - if (base::win::Version() < base::win::VERSION_VISTA) + if (base::win::GetVersion() < base::win::VERSION_VISTA) return; TestRunner runner; @@ -188,7 +188,7 @@ 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::Version() < base::win::VERSION_VISTA) + if (base::win::GetVersion() < base::win::VERSION_VISTA) return; TestRunner runner; |