Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / ui / webui / downloads_ui_browsertest.cc
blob68c227bc1f1a9e941b6e17f4ce348ccd4bd904a8
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/downloads_ui_browsertest.h"
7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/webui/downloads_util.h"
12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/pref_names.h"
14 #include "content/public/test/test_utils.h"
16 DownloadsUIBrowserTest::DownloadsUIBrowserTest() {}
18 DownloadsUIBrowserTest::~DownloadsUIBrowserTest() {}
20 void DownloadsUIBrowserTest::SetUpCommandLine(
21 base::CommandLine* command_line) {
22 WebUIBrowserTest::SetUpCommandLine(command_line);
23 command_line->AppendSwitch(switches::kDisableMaterialDesignDownloads);
24 ASSERT_FALSE(MdDownloadsEnabled());
27 void DownloadsUIBrowserTest::SetDeleteAllowed(bool allowed) {
28 browser()->profile()->GetPrefs()->
29 SetBoolean(prefs::kAllowDeletingBrowserHistory, allowed);