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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/prefs/pref_notifier_impl.h"
12 #include "base/prefs/testing_pref_store.h"
13 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
14 #include "base/test/test_simple_task_runner.h" 12 #include "base/test/test_simple_task_runner.h"
15 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
16 #include "base/time/time.h" 14 #include "base/time/time.h"
17 #include "base/values.h" 15 #include "base/values.h"
18 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h" 17 #include "chrome/browser/chromeos/policy/recommendation_restorer_factory.h"
20 #include "chrome/browser/prefs/browser_prefs.h" 18 #include "chrome/browser/prefs/browser_prefs.h"
21 #include "chrome/common/chrome_constants.h" 19 #include "chrome/common/chrome_constants.h"
22 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
23 #include "chrome/test/base/testing_browser_process.h" 21 #include "chrome/test/base/testing_browser_process.h"
24 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
25 #include "chrome/test/base/testing_profile_manager.h" 23 #include "chrome/test/base/testing_profile_manager.h"
26 #include "components/pref_registry/pref_registry_syncable.h" 24 #include "components/pref_registry/pref_registry_syncable.h"
25 #include "components/prefs/pref_notifier_impl.h"
26 #include "components/prefs/testing_pref_store.h"
27 #include "components/syncable_prefs/pref_service_syncable.h" 27 #include "components/syncable_prefs/pref_service_syncable.h"
28 #include "components/syncable_prefs/testing_pref_service_syncable.h" 28 #include "components/syncable_prefs/testing_pref_service_syncable.h"
29 #include "content/public/browser/notification_details.h" 29 #include "content/public/browser/notification_details.h"
30 #include "content/public/browser/notification_service.h" 30 #include "content/public/browser/notification_service.h"
31 #include "content/public/browser/notification_source.h" 31 #include "content/public/browser/notification_source.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 #include "ui/chromeos/accessibility_types.h" 33 #include "ui/chromeos/accessibility_types.h"
34 34
35 namespace policy { 35 namespace policy {
36 36
(...skipping 517 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

Powered by Google App Engine
This is Rietveld 408576698