| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include "chrome/test/base/web_ui_browser_test.h" | 8 #include "chrome/test/base/web_ui_browser_test.h" |
| 9 | 9 |
| 10 // This is a helper class used by downloads_ui_browsertest.js. | 10 // This is a helper class used by downloads_ui_browsertest.js. |
| 11 class DownloadsUIBrowserTest : public WebUIBrowserTest { | 11 class DownloadsUIBrowserTest : public WebUIBrowserTest { |
| 12 public: | 12 public: |
| 13 DownloadsUIBrowserTest(); | 13 DownloadsUIBrowserTest(); |
| 14 ~DownloadsUIBrowserTest() override; | 14 ~DownloadsUIBrowserTest() override; |
| 15 | 15 |
| 16 // WebUIBrowserTest: |
| 17 void SetUpCommandLine(base::CommandLine* command_line) override; |
| 18 |
| 16 protected: | 19 protected: |
| 17 // Sets the pref to allow or prohibit deleting history entries. | 20 // Sets the pref to allow or prohibit deleting history entries. |
| 18 void SetDeleteAllowed(bool allowed); | 21 void SetDeleteAllowed(bool allowed); |
| 19 | 22 |
| 20 private: | 23 private: |
| 21 DISALLOW_COPY_AND_ASSIGN(DownloadsUIBrowserTest); | 24 DISALLOW_COPY_AND_ASSIGN(DownloadsUIBrowserTest); |
| 22 }; | 25 }; |
| 23 | 26 |
| 24 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ | 27 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_UI_BROWSERTEST_H_ |
| OLD | NEW |