Commit 17238d32 authored by Austin Tankiang's avatar Austin Tankiang Committed by Commit Bot

Remove policy tests using legacy drive sync client

DriveFS is going to be used regardless of its feature flag, and the
legacy drive sync client will be deleted, so clean up code that relies
on the legacy drive sync client.

Bug: 1002339
Change-Id: Iba820095870d8aad1ba92b747af0849b750a150d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1798257Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
Commit-Queue: Austin Tankiang <austinct@chromium.org>
Cr-Commit-Position: refs/heads/master@{#697037}
parent bd65dcb0
......@@ -2148,24 +2148,8 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, DownloadDirectory) {
}
#if defined(OS_CHROMEOS)
class DrivePolicyTest : public PolicyTest,
public testing::WithParamInterface<bool> {
public:
void SetUpCommandLine(base::CommandLine* command_line) override {
PolicyTest::SetUpCommandLine(command_line);
if (GetParam()) {
scoped_feature_list_.InitAndEnableFeature(chromeos::features::kDriveFs);
} else {
scoped_feature_list_.InitAndDisableFeature(chromeos::features::kDriveFs);
}
}
private:
base::test::ScopedFeatureList scoped_feature_list_;
};
// Verifies that the download directory can be forced to Google Drive by policy.
IN_PROC_BROWSER_TEST_P(DrivePolicyTest, DownloadDirectory_Drive) {
IN_PROC_BROWSER_TEST_F(PolicyTest, DownloadDirectory_Drive) {
// Override the download directory with the policy.
{
PolicyMap policies;
......@@ -2198,11 +2182,6 @@ IN_PROC_BROWSER_TEST_P(DrivePolicyTest, DownloadDirectory_Drive) {
.DownloadPath()
.StripTrailingSeparators());
}
INSTANTIATE_TEST_SUITE_P(DrivePolicyTestInstance,
DrivePolicyTest,
testing::Bool());
#endif // !defined(OS_CHROMEOS)
IN_PROC_BROWSER_TEST_F(PolicyTest, ExtensionInstallBlacklistSelective) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment