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/live_sync/preferences_helper.h" | 5 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "chrome/browser/prefs/pref_service.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/live_sync/live_sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
13 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) { | 187 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) { |
188 LOG(ERROR) << "List preference " << pref_name << " mismatched in" | 188 LOG(ERROR) << "List preference " << pref_name << " mismatched in" |
189 << " profile " << i << "."; | 189 << " profile " << i << "."; |
190 return false; | 190 return false; |
191 } | 191 } |
192 } | 192 } |
193 return true; | 193 return true; |
194 } | 194 } |
195 | 195 |
196 } // namespace preferences_helper | 196 } // namespace preferences_helper |
OLD | NEW |