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

Unified Diff: chrome/installer/util/legacy_firewall_manager_win_unittest.cc

Issue 921913002: Move GetProcessIntegrityLevel to file_info.h and remove the handle argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cast Created 5 years, 10 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: chrome/installer/util/legacy_firewall_manager_win_unittest.cc
diff --git a/chrome/installer/util/legacy_firewall_manager_win_unittest.cc b/chrome/installer/util/legacy_firewall_manager_win_unittest.cc
index 26df3b889bb28d0f483df1fe4e3eca68a757c4e9..5fd46388c97021c7cea17589208936cb1bb1ae91 100644
--- a/chrome/installer/util/legacy_firewall_manager_win_unittest.cc
+++ b/chrome/installer/util/legacy_firewall_manager_win_unittest.cc
@@ -5,7 +5,7 @@
#include "chrome/installer/util/legacy_firewall_manager_win.h"
#include "base/path_service.h"
-#include "base/process/process_handle.h"
+#include "base/process/process_info.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace installer {
@@ -17,9 +17,7 @@ class LegacyFirewallManagerTest : public ::testing::Test {
protected:
// Sets up the test fixture.
virtual void SetUp() override {
- base::IntegrityLevel level = base::INTEGRITY_UNKNOWN;
- if (GetProcessIntegrityLevel(base::GetCurrentProcessHandle(), &level) &&
- level != base::HIGH_INTEGRITY) {
+ if (base::GetCurrentProcessIntegrityLevel() != base::HIGH_INTEGRITY) {
LOG(WARNING) << "Not elevated. Skipping the test.";
return;
};

Powered by Google App Engine
This is Rietveld 408576698