OLD | NEW |
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 "base/macros.h" |
7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
8 #include "base/prefs/pref_notifier_impl.h" | 9 #include "base/prefs/pref_notifier_impl.h" |
9 #include "base/prefs/testing_pref_store.h" | 10 #include "base/prefs/testing_pref_store.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/test_simple_task_runner.h" | 12 #include "base/test/test_simple_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
16 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" | 17 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 552 |
552 // Fast forward until the reset timer fires. | 553 // Fast forward until the reset timer fires. |
553 VerifyTimerIsRunning(); | 554 VerifyTimerIsRunning(); |
554 runner_->RunUntilIdle(); | 555 runner_->RunUntilIdle(); |
555 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled, | 556 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled, |
556 base::FundamentalValue(false)); | 557 base::FundamentalValue(false)); |
557 VerifyTimerIsStopped(); | 558 VerifyTimerIsStopped(); |
558 } | 559 } |
559 | 560 |
560 } // namespace policy | 561 } // namespace policy |
OLD | NEW |