| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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_PREFERENCES_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PREFERENCES_BROWSERTEST_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PREFERENCES_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PREFERENCES_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 14 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 15 #include "components/policy/core/common/mock_configuration_policy_provider.h" | 15 #include "components/policy/core/common/mock_configuration_policy_provider.h" |
| 16 #include "components/policy/core/common/policy_types.h" | 16 #include "components/policy/core/common/policy_types.h" |
| 17 #include "components/prefs/pref_change_registrar.h" | 17 #include "components/prefs/pref_change_registrar.h" |
| 18 #include "components/prefs/pref_service.h" | 18 #include "components/prefs/pref_service.h" |
| 19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class DictionaryValue; | 23 class DictionaryValue; |
| 24 class Value; | 24 class Value; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 class NotificationDetails; | |
| 29 class NotificationSource; | |
| 30 class RenderViewHost; | 28 class RenderViewHost; |
| 31 } | 29 } |
| 32 | 30 |
| 33 // Tests verifying that the JavaScript Preferences class, the underlying C++ | 31 // Tests verifying that the JavaScript Preferences class, the underlying C++ |
| 34 // CoreOptionsHandler and the specialized classes handling Chrome OS device and | 32 // CoreOptionsHandler and the specialized classes handling Chrome OS device and |
| 35 // proxy prefs behave correctly. | 33 // proxy prefs behave correctly. |
| 36 class PreferencesBrowserTest : public InProcessBrowserTest { | 34 class PreferencesBrowserTest : public InProcessBrowserTest { |
| 37 public: | 35 public: |
| 38 PreferencesBrowserTest(); | 36 PreferencesBrowserTest(); |
| 39 ~PreferencesBrowserTest() override; | 37 ~PreferencesBrowserTest() override; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 std::vector<std::string> pref_names_; | 185 std::vector<std::string> pref_names_; |
| 188 std::vector<std::string> policy_names_; | 186 std::vector<std::string> policy_names_; |
| 189 ScopedVector<base::Value> default_values_; | 187 ScopedVector<base::Value> default_values_; |
| 190 ScopedVector<base::Value> non_default_values_; | 188 ScopedVector<base::Value> non_default_values_; |
| 191 | 189 |
| 192 private: | 190 private: |
| 193 DISALLOW_COPY_AND_ASSIGN(PreferencesBrowserTest); | 191 DISALLOW_COPY_AND_ASSIGN(PreferencesBrowserTest); |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PREFERENCES_BROWSERTEST_H_ | 194 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PREFERENCES_BROWSERTEST_H_ |
| OLD | NEW |