From 0906488095bee5aaecace0180a9e79dbd4d6a9c9 Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Tue, 1 Dec 2020 16:27:32 +0900 Subject: [PATCH] Removed BraveMainDelegateBrowserTest.PathOverride Disabled because policy path is overridden again in browser test to make sure that the machine policy directory is inside the clear profile. See test_launcher_utils::OverrideUserDataDir(). --- app/brave_main_delegate_browsertest.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/brave_main_delegate_browsertest.cc b/app/brave_main_delegate_browsertest.cc index 96e654cc0e7a..1abd35cd1cd9 100644 --- a/app/brave_main_delegate_browsertest.cc +++ b/app/brave_main_delegate_browsertest.cc @@ -3,13 +3,11 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "base/path_service.h" #include "chrome/browser/domain_reliability/service_factory.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" #include "chrome/browser/ui/ui_features.h" #include "chrome/common/chrome_features.h" -#include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/base/in_process_browser_test.h" #include "components/autofill/core/common/autofill_features.h" @@ -98,13 +96,3 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, EnabledFeatures) { for (const auto* feature : enabled_features) EXPECT_TRUE(base::FeatureList::IsEnabled(*feature)); } - -IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, PathOverride) { -#if defined(OS_POSIX) && !defined(OS_MAC) - base::FilePath policy_files_path; - EXPECT_TRUE(base::PathService::Get(chrome::DIR_POLICY_FILES, - &policy_files_path)); - EXPECT_EQ(base::FilePath(FILE_PATH_LITERAL("/etc/brave/policies")), - policy_files_path); -#endif -}