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

Side by Side Diff: chrome/browser/ui/webui/options2/preferences_browsertest.h

Issue 10834109: Consistently decorate pref values sent to the settings UI code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Browser test added. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_PREFERENCES_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_PREFERENCES_BROWSERTEST_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/policy/mock_configuration_policy_provider.h"
13 #include "chrome/browser/policy/policy_constants.h"
14 #include "chrome/test/base/in_process_browser_test.h"
15
16 namespace base {
17 class DictionaryValue;
James Hawkins 2012/08/07 17:59:05 nit: Forward declarations inside namespaces should
bartfab (slow) 2012/08/07 18:27:05 Done.
18 class Value;
19 }
20
21 namespace content {
22 class RenderViewHost;
23 }
24
25 class PreferencesBrowserTest : public InProcessBrowserTest {
James Hawkins 2012/08/07 17:59:05 nit: Document class.
bartfab (slow) 2012/08/07 18:27:05 Done.
26 public:
27 PreferencesBrowserTest();
28
James Hawkins 2012/08/07 17:59:05 nit: // InProcessBrowserTest implementation.
bartfab (slow) 2012/08/07 18:27:05 Done.
29 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE;
30 virtual void SetUpOnMainThread() OVERRIDE;
31
32 protected:
33 void VerifyValue(const base::DictionaryValue* dict,
James Hawkins 2012/08/07 17:59:05 nit: Document this block of similar methods.
bartfab (slow) 2012/08/07 18:27:05 Done.
34 const std::string& key,
35 base::Value* expected);
36 void VerifyDict(const base::DictionaryValue* dict,
37 const base::Value* value,
38 const std::string& controlledBy,
39 bool disabled);
40 void VerifyPref(const base::DictionaryValue* prefs,
41 const std::string& name,
42 const base::Value* value,
43 const std::string& controlledBy,
44 bool disabled);
45 void VerifyPrefs(const base::DictionaryValue* prefs,
46 const std::vector<std::string>& names,
47 const std::vector<base::Value*>& values,
48 const std::string& controlledBy,
49 bool disabled);
50 void VerifySetPref(const std::string& name,
51 const std::string& type,
52 base::Value* set_value,
53 base::Value* expected_value);
54
55 void FetchPrefs(const std::vector<std::string>& names,
James Hawkins 2012/08/07 17:59:05 nit: Document method.
bartfab (slow) 2012/08/07 18:27:05 Done.
56 base::DictionaryValue** prefs);
57
58 void SetUserPolicies(const std::vector<std::string>& names,
James Hawkins 2012/08/07 17:59:05 nit: Document method.
bartfab (slow) 2012/08/07 18:27:05 Done.
59 const std::vector<base::Value*>& values,
60 policy::PolicyLevel level);
61
62 void DeleteValues(std::vector<base::Value*>& values);
James Hawkins 2012/08/07 17:59:05 nit: Document method.
bartfab (slow) 2012/08/07 18:27:05 Done.
63
64 content::RenderViewHost* render_view_host_;
James Hawkins 2012/08/07 17:59:05 nit: Document member variable.
bartfab (slow) 2012/08/07 18:27:05 Done.
65
66 policy::MockConfigurationPolicyProvider policy_provider_;
James Hawkins 2012/08/07 17:59:05 nit: Document member variable.
bartfab (slow) 2012/08/07 18:27:05 Done.
67 };
James Hawkins 2012/08/07 17:59:05 DISALLOW_COPY_AND_ASSIGN?
bartfab (slow) 2012/08/07 18:27:05 Done.
68
69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_PREFERENCES_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698