Skip to content

Commit

Permalink
Removed BraveMainDelegateBrowserTest.PathOverride
Browse files Browse the repository at this point in the history
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().
  • Loading branch information
simonhong committed Dec 1, 2020
1 parent b5fef01 commit 0906488
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions app/brave_main_delegate_browsertest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

0 comments on commit 0906488

Please sign in to comment.