Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: chrome/browser/ui/webui/options/options_browsertest.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_OPTIONS_OPTIONS_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_BROWSERTEST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/test/base/web_ui_browser_test.h" 10 #include "chrome/test/base/web_ui_browser_test.h"
11 #include "content/public/browser/web_ui_message_handler.h" 11 #include "content/public/browser/web_ui_message_handler.h"
12 12
13 // This is a helper class used by options_browsertest.js to feed the navigation 13 // This is a helper class used by options_browsertest.js to feed the navigation
14 // history back to the test. 14 // history back to the test.
15 class OptionsBrowserTest : public WebUIBrowserTest, 15 class OptionsBrowserTest : public WebUIBrowserTest,
16 public content::WebUIMessageHandler { 16 public content::WebUIMessageHandler {
17 public: 17 public:
18 OptionsBrowserTest(); 18 OptionsBrowserTest();
19 virtual ~OptionsBrowserTest(); 19 virtual ~OptionsBrowserTest();
20 20
21 protected: 21 protected:
22 // Clears the preference at the given |path|. 22 // Clears the preference at the given |path|.
23 void ClearPref(const char* path); 23 void ClearPref(const char* path);
24 24
25 private: 25 private:
26 // WebUIMessageHandler implementation. 26 // WebUIMessageHandler implementation.
27 virtual void RegisterMessages() override; 27 void RegisterMessages() override;
28 28
29 // WebUIBrowserTest implementation. 29 // WebUIBrowserTest implementation.
30 virtual content::WebUIMessageHandler* GetMockMessageHandler() override; 30 content::WebUIMessageHandler* GetMockMessageHandler() override;
31 31
32 // A callback for the 'optionsTestReportHistory' message, this sends the 32 // A callback for the 'optionsTestReportHistory' message, this sends the
33 // URLs in the "back" tab history, including the current entry, back to the 33 // URLs in the "back" tab history, including the current entry, back to the
34 // WebUI via a callback. 34 // WebUI via a callback.
35 void ReportHistory(const base::ListValue* list_value); 35 void ReportHistory(const base::ListValue* list_value);
36 36
37 // A callback for the 'optionsTestSetPref' message. The first argument should 37 // A callback for the 'optionsTestSetPref' message. The first argument should
38 // be a pref path (e.g., "profile.managed_users"); the second, the new value 38 // be a pref path (e.g., "profile.managed_users"); the second, the new value
39 // to set for that pref. 39 // to set for that pref.
40 void HandleSetPref(const base::ListValue* args); 40 void HandleSetPref(const base::ListValue* args);
41 41
42 DISALLOW_COPY_AND_ASSIGN(OptionsBrowserTest); 42 DISALLOW_COPY_AND_ASSIGN(OptionsBrowserTest);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_BROWSERTEST_H_ 45 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698