OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "components/sync_driver/sync_prefs.h" | 5 #include "components/sync_driver/sync_prefs.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/prefs/pref_notifier_impl.h" | 9 #include "base/prefs/pref_notifier_impl.h" |
10 #include "base/prefs/pref_value_store.h" | 10 #include "base/prefs/pref_value_store.h" |
11 #include "base/prefs/testing_pref_service.h" | 11 #include "base/prefs/testing_pref_service.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "components/pref_registry/pref_registry_syncable.h" |
13 #include "components/sync_driver/pref_names.h" | 14 #include "components/sync_driver/pref_names.h" |
14 #include "components/user_prefs/pref_registry_syncable.h" | |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 template <> | 19 template <> |
20 TestingPrefServiceBase<PrefService, user_prefs::PrefRegistrySyncable>:: | 20 TestingPrefServiceBase<PrefService, user_prefs::PrefRegistrySyncable>:: |
21 TestingPrefServiceBase(TestingPrefStore* managed_prefs, | 21 TestingPrefServiceBase(TestingPrefStore* managed_prefs, |
22 TestingPrefStore* user_prefs, | 22 TestingPrefStore* user_prefs, |
23 TestingPrefStore* recommended_prefs, | 23 TestingPrefStore* recommended_prefs, |
24 user_prefs::PrefRegistrySyncable* pref_registry, | 24 user_prefs::PrefRegistrySyncable* pref_registry, |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 sync_prefs.ClearPreferences(); | 284 sync_prefs.ClearPreferences(); |
285 | 285 |
286 EXPECT_FALSE(sync_prefs.HasSyncSetupCompleted()); | 286 EXPECT_FALSE(sync_prefs.HasSyncSetupCompleted()); |
287 EXPECT_EQ(base::Time(), sync_prefs.GetLastSyncedTime()); | 287 EXPECT_EQ(base::Time(), sync_prefs.GetLastSyncedTime()); |
288 EXPECT_TRUE(sync_prefs.GetEncryptionBootstrapToken().empty()); | 288 EXPECT_TRUE(sync_prefs.GetEncryptionBootstrapToken().empty()); |
289 } | 289 } |
290 | 290 |
291 } // namespace | 291 } // namespace |
292 | 292 |
293 } // namespace browser_sync | 293 } // namespace browser_sync |
OLD | NEW |