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

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

Issue 2615403002: Added extension controlled prefs to TestingPrefService (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/incident_reporting/platform_state_store_win_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ash/common/accessibility_types.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/incident_reporting/platform_state_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698