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

Unified Diff: sandbox/src/policy_target_test.cc

Issue 3823002: Move windows version-related stuff out of base/win_util and into base/win/win... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
Index: sandbox/src/policy_target_test.cc
===================================================================
--- sandbox/src/policy_target_test.cc (revision 62510)
+++ sandbox/src/policy_target_test.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/win_util.h"
+#include "base/win/windows_version.h"
#include "sandbox/src/sandbox.h"
#include "sandbox/src/sandbox_factory.h"
#include "sandbox/src/sandbox_utils.h"
@@ -158,7 +158,7 @@
TEST(PolicyTargetTest, SetInformationThread) {
TestRunner runner;
- if (win_util::GetWinVersion() >= win_util::WINVERSION_XP) {
+ if (base::win::GetVersion() >= base::win::VERSION_XP) {
runner.SetTestState(BEFORE_REVERT);
EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"PolicyTargetTest_token"));
}
@@ -167,13 +167,13 @@
EXPECT_EQ(ERROR_NO_TOKEN, runner.RunTest(L"PolicyTargetTest_token"));
runner.SetTestState(EVERY_STATE);
- if (win_util::GetWinVersion() >= win_util::WINVERSION_XP)
+ if (base::win::GetVersion() >= base::win::VERSION_XP)
EXPECT_EQ(SBOX_TEST_FAILED, runner.RunTest(L"PolicyTargetTest_steal"));
}
TEST(PolicyTargetTest, OpenThreadToken) {
TestRunner runner;
- if (win_util::GetWinVersion() >= win_util::WINVERSION_XP) {
+ if (base::win::GetVersion() >= base::win::VERSION_XP) {
runner.SetTestState(BEFORE_REVERT);
EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(L"PolicyTargetTest_token2"));
}
@@ -184,7 +184,7 @@
TEST(PolicyTargetTest, OpenThreadTokenEx) {
TestRunner runner;
- if (win_util::GetWinVersion() < win_util::WINVERSION_XP)
+ if (base::win::GetVersion() < base::win::VERSION_XP)
return;
runner.SetTestState(BEFORE_REVERT);

Powered by Google App Engine
This is Rietveld 408576698