OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/sync/test/integration/preferences_helper.h" | 5 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
6 | 6 |
| 7 #include "base/prefs/pref_service.h" |
7 #include "base/values.h" | 8 #include "base/values.h" |
8 #include "chrome/browser/prefs/pref_service.h" | |
9 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 9 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/sync/profile_sync_service_harness.h" | 11 #include "chrome/browser/sync/profile_sync_service_harness.h" |
| 12 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" |
12 #include "chrome/browser/sync/test/integration/sync_test.h" | 13 #include "chrome/browser/sync/test/integration/sync_test.h" |
13 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" | |
14 | 14 |
15 using sync_datatype_helper::test; | 15 using sync_datatype_helper::test; |
16 | 16 |
17 namespace preferences_helper { | 17 namespace preferences_helper { |
18 | 18 |
19 PrefService* GetPrefs(int index) { | 19 PrefService* GetPrefs(int index) { |
20 return test()->GetProfile(index)->GetPrefs(); | 20 return test()->GetProfile(index)->GetPrefs(); |
21 } | 21 } |
22 | 22 |
23 PrefService* GetVerifierPrefs() { | 23 PrefService* GetVerifierPrefs() { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) { | 210 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) { |
211 LOG(ERROR) << "List preference " << pref_name << " mismatched in" | 211 LOG(ERROR) << "List preference " << pref_name << " mismatched in" |
212 << " profile " << i << "."; | 212 << " profile " << i << "."; |
213 return false; | 213 return false; |
214 } | 214 } |
215 } | 215 } |
216 return true; | 216 return true; |
217 } | 217 } |
218 | 218 |
219 } // namespace preferences_helper | 219 } // namespace preferences_helper |
OLD | NEW |