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

Side by Side Diff: chrome/browser/chromeos/policy/recommendation_restorer_unittest.cc

Issue 2074913005: Convert TrayAccessibility to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webnotification
Patch Set: rebase Created 4 years, 6 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 #include "chrome/browser/chromeos/policy/recommendation_restorer.h" 5 #include "chrome/browser/chromeos/policy/recommendation_restorer.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/common/accessibility_types.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
12 #include "base/test/test_simple_task_runner.h" 13 #include "base/test/test_simple_task_runner.h"
13 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/time.h" 15 #include "base/time/time.h"
15 #include "base/values.h" 16 #include "base/values.h"
16 #include "chrome/browser/chrome_notification_types.h" 17 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" 18 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h"
18 #include "chrome/browser/prefs/browser_prefs.h" 19 #include "chrome/browser/prefs/browser_prefs.h"
19 #include "chrome/common/chrome_constants.h" 20 #include "chrome/common/chrome_constants.h"
20 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
21 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
22 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
23 #include "chrome/test/base/testing_profile_manager.h" 24 #include "chrome/test/base/testing_profile_manager.h"
24 #include "components/pref_registry/pref_registry_syncable.h" 25 #include "components/pref_registry/pref_registry_syncable.h"
25 #include "components/prefs/pref_notifier_impl.h" 26 #include "components/prefs/pref_notifier_impl.h"
26 #include "components/prefs/testing_pref_store.h" 27 #include "components/prefs/testing_pref_store.h"
27 #include "components/syncable_prefs/pref_service_syncable.h" 28 #include "components/syncable_prefs/pref_service_syncable.h"
28 #include "components/syncable_prefs/testing_pref_service_syncable.h" 29 #include "components/syncable_prefs/testing_pref_service_syncable.h"
29 #include "content/public/browser/notification_details.h" 30 #include "content/public/browser/notification_details.h"
30 #include "content/public/browser/notification_service.h" 31 #include "content/public/browser/notification_service.h"
31 #include "content/public/browser/notification_source.h" 32 #include "content/public/browser/notification_source.h"
32 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
33 #include "ui/chromeos/accessibility_types.h"
34 34
35 namespace policy { 35 namespace policy {
36 36
37 namespace { 37 namespace {
38 // The amount of idle time after which recommended values are restored. 38 // The amount of idle time after which recommended values are restored.
39 const int kRestoreDelayInMs = 60 * 1000; // 1 minute. 39 const int kRestoreDelayInMs = 60 * 1000; // 1 minute.
40 } // namespace 40 } // namespace
41 41
42 class RecommendationRestorerTest : public testing::Test { 42 class RecommendationRestorerTest : public testing::Test {
43 protected: 43 protected:
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 554
555 // Fast forward until the reset timer fires. 555 // Fast forward until the reset timer fires.
556 VerifyTimerIsRunning(); 556 VerifyTimerIsRunning();
557 runner_->RunUntilIdle(); 557 runner_->RunUntilIdle();
558 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled, 558 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled,
559 base::FundamentalValue(false)); 559 base::FundamentalValue(false));
560 VerifyTimerIsStopped(); 560 VerifyTimerIsStopped();
561 } 561 }
562 562
563 } // namespace policy 563 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc ('k') | chrome/browser/chromeos/preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698