| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/values.h" | 5 #include "base/values.h" |
| 6 #include "chrome/browser/chromeos/arc/arc_util.h" | 6 #include "chrome/browser/chromeos/arc/arc_util.h" |
| 7 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 7 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 8 #include "chrome/browser/chromeos/settings/cros_settings.h" | 8 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 9 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" | 9 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" |
| 10 #include "chrome/browser/extensions/extension_apitest.h" | 10 #include "chrome/browser/extensions/extension_apitest.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 30 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 31 switches::kForceAppMode); | 31 switches::kForceAppMode); |
| 32 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kAppId, | 32 base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(switches::kAppId, |
| 33 kTestAppId); | 33 kTestAppId); |
| 34 } | 34 } |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 IN_PROC_BROWSER_TEST_F(ChromeOSInfoPrivateTest, TestGetAndSet) { | 37 IN_PROC_BROWSER_TEST_F(ChromeOSInfoPrivateTest, TestGetAndSet) { |
| 38 // Set the initial timezone different from what JS function | 38 // Set the initial timezone different from what JS function |
| 39 // timezoneSetTest() will attempt to set. | 39 // timezoneSetTest() will attempt to set. |
| 40 base::StringValue initial_timezone("America/Los_Angeles"); | 40 base::Value initial_timezone("America/Los_Angeles"); |
| 41 chromeos::CrosSettings::Get()->Set(chromeos::kSystemTimezone, | 41 chromeos::CrosSettings::Get()->Set(chromeos::kSystemTimezone, |
| 42 initial_timezone); | 42 initial_timezone); |
| 43 | 43 |
| 44 // Check that accessibility settings are set to default values. | 44 // Check that accessibility settings are set to default values. |
| 45 PrefService* prefs = profile()->GetPrefs(); | 45 PrefService* prefs = profile()->GetPrefs(); |
| 46 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); | 46 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityLargeCursorEnabled)); |
| 47 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); | 47 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityStickyKeysEnabled)); |
| 48 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled)); | 48 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilitySpokenFeedbackEnabled)); |
| 49 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityHighContrastEnabled)); | 49 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityHighContrastEnabled)); |
| 50 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityScreenMagnifierEnabled)); | 50 ASSERT_FALSE(prefs->GetBoolean(prefs::kAccessibilityScreenMagnifierEnabled)); |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 private: | 134 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(ChromeOSManagedDeviceInfoPrivateTest); | 135 DISALLOW_COPY_AND_ASSIGN(ChromeOSManagedDeviceInfoPrivateTest); |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 IN_PROC_BROWSER_TEST_F(ChromeOSManagedDeviceInfoPrivateTest, Managed) { | 138 IN_PROC_BROWSER_TEST_F(ChromeOSManagedDeviceInfoPrivateTest, Managed) { |
| 139 ASSERT_TRUE( | 139 ASSERT_TRUE( |
| 140 RunPlatformAppTestWithArg("chromeos_info_private/extended", "managed")) | 140 RunPlatformAppTestWithArg("chromeos_info_private/extended", "managed")) |
| 141 << message_; | 141 << message_; |
| 142 } | 142 } |
| OLD | NEW |