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 <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "ash/common/accessibility_types.h" | 10 #include "ash/common/accessibility_types.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 TestingProfileManager profile_manager_; | 87 TestingProfileManager profile_manager_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(RecommendationRestorerTest); | 89 DISALLOW_COPY_AND_ASSIGN(RecommendationRestorerTest); |
90 }; | 90 }; |
91 | 91 |
92 RecommendationRestorerTest::RecommendationRestorerTest() | 92 RecommendationRestorerTest::RecommendationRestorerTest() |
93 : recommended_prefs_(new TestingPrefStore), | 93 : recommended_prefs_(new TestingPrefStore), |
94 prefs_(new sync_preferences::TestingPrefServiceSyncable( | 94 prefs_(new sync_preferences::TestingPrefServiceSyncable( |
95 new TestingPrefStore, | 95 new TestingPrefStore, |
96 new TestingPrefStore, | 96 new TestingPrefStore, |
| 97 new TestingPrefStore, |
97 recommended_prefs_, | 98 recommended_prefs_, |
98 new user_prefs::PrefRegistrySyncable, | 99 new user_prefs::PrefRegistrySyncable, |
99 new PrefNotifierImpl)), | 100 new PrefNotifierImpl)), |
100 restorer_(NULL), | 101 restorer_(NULL), |
101 runner_(new base::TestSimpleTaskRunner), | 102 runner_(new base::TestSimpleTaskRunner), |
102 prefs_owner_(prefs_), | 103 prefs_owner_(prefs_), |
103 profile_manager_(TestingBrowserProcess::GetGlobal()) {} | 104 profile_manager_(TestingBrowserProcess::GetGlobal()) {} |
104 | 105 |
105 void RecommendationRestorerTest::SetUp() { | 106 void RecommendationRestorerTest::SetUp() { |
106 testing::Test::SetUp(); | 107 testing::Test::SetUp(); |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 560 |
560 // Fast forward until the reset timer fires. | 561 // Fast forward until the reset timer fires. |
561 VerifyTimerIsRunning(); | 562 VerifyTimerIsRunning(); |
562 runner_->RunUntilIdle(); | 563 runner_->RunUntilIdle(); |
563 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled, | 564 VerifyPrefFollowsRecommendation(prefs::kAccessibilityLargeCursorEnabled, |
564 base::FundamentalValue(false)); | 565 base::FundamentalValue(false)); |
565 VerifyTimerIsStopped(); | 566 VerifyTimerIsStopped(); |
566 } | 567 } |
567 | 568 |
568 } // namespace policy | 569 } // namespace policy |
OLD | NEW |