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 "base/values.h" | 5 #include "base/values.h" |
6 #include "chrome/browser/sync/profile_sync_service_harness.h" | 6 #include "chrome/browser/sync/profile_sync_service_harness.h" |
7 #include "chrome/browser/translate/translate_prefs.h" | 7 #include "chrome/browser/translate/translate_prefs.h" |
8 #include "chrome/browser/sync/test/integration/sync_test.h" | 8 #include "chrome/browser/sync/test/integration/sync_test.h" |
9 #include "chrome/browser/sync/test/integration/preferences_helper.h" | 9 #include "chrome/browser/sync/test/integration/preferences_helper.h" |
10 #include "chrome/common/pref_names.h" | 10 #include "chrome/common/pref_names.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 ASSERT_TRUE(BooleanPrefMatches( | 353 ASSERT_TRUE(BooleanPrefMatches( |
354 prefs::kWebKitUsesUniversalDetector)); | 354 prefs::kWebKitUsesUniversalDetector)); |
355 | 355 |
356 ChangeBooleanPref(0, prefs::kWebKitUsesUniversalDetector); | 356 ChangeBooleanPref(0, prefs::kWebKitUsesUniversalDetector); |
357 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 357 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
358 ASSERT_TRUE(BooleanPrefMatches( | 358 ASSERT_TRUE(BooleanPrefMatches( |
359 prefs::kWebKitUsesUniversalDetector)); | 359 prefs::kWebKitUsesUniversalDetector)); |
360 } | 360 } |
361 | 361 |
362 // TCM ID - 3673298. | 362 // TCM ID - 3673298. |
363 IN_PROC_BROWSER_TEST_F(TwoClientPreferencesSyncTest, kDefaultCharset) { | 363 IN_PROC_BROWSER_TEST_F(TwoClientPreferencesSyncTest, kGlobalDefaultCharset) { |
364 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; | 364 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; |
365 ASSERT_TRUE(StringPrefMatches(prefs::kDefaultCharset)); | 365 ASSERT_TRUE(StringPrefMatches(prefs::kGlobalDefaultCharset)); |
366 | 366 |
367 ChangeStringPref(0, prefs::kDefaultCharset, "Thai"); | 367 ChangeStringPref(0, prefs::kGlobalDefaultCharset, "Thai"); |
368 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 368 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
369 ASSERT_TRUE(StringPrefMatches(prefs::kDefaultCharset)); | 369 ASSERT_TRUE(StringPrefMatches(prefs::kGlobalDefaultCharset)); |
370 } | 370 } |
371 | 371 |
372 // TCM ID - 3653296. | 372 // TCM ID - 3653296. |
373 IN_PROC_BROWSER_TEST_F(TwoClientPreferencesSyncTest, | 373 IN_PROC_BROWSER_TEST_F(TwoClientPreferencesSyncTest, |
374 kBlockThirdPartyCookies) { | 374 kBlockThirdPartyCookies) { |
375 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; | 375 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; |
376 ASSERT_TRUE(BooleanPrefMatches( | 376 ASSERT_TRUE(BooleanPrefMatches( |
377 prefs::kBlockThirdPartyCookies)); | 377 prefs::kBlockThirdPartyCookies)); |
378 | 378 |
379 ChangeBooleanPref(0, prefs::kBlockThirdPartyCookies); | 379 ChangeBooleanPref(0, prefs::kBlockThirdPartyCookies); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 ASSERT_TRUE(IsEncrypted(0, syncable::PREFERENCES)); | 681 ASSERT_TRUE(IsEncrypted(0, syncable::PREFERENCES)); |
682 ASSERT_TRUE(IsEncrypted(1, syncable::PREFERENCES)); | 682 ASSERT_TRUE(IsEncrypted(1, syncable::PREFERENCES)); |
683 ASSERT_TRUE(BooleanPrefMatches( | 683 ASSERT_TRUE(BooleanPrefMatches( |
684 prefs::kHomePageIsNewTabPage)); | 684 prefs::kHomePageIsNewTabPage)); |
685 | 685 |
686 ASSERT_TRUE(BooleanPrefMatches(prefs::kShowHomeButton)); | 686 ASSERT_TRUE(BooleanPrefMatches(prefs::kShowHomeButton)); |
687 ChangeBooleanPref(0, prefs::kShowHomeButton); | 687 ChangeBooleanPref(0, prefs::kShowHomeButton); |
688 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); | 688 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); |
689 ASSERT_TRUE(BooleanPrefMatches(prefs::kShowHomeButton)); | 689 ASSERT_TRUE(BooleanPrefMatches(prefs::kShowHomeButton)); |
690 } | 690 } |
OLD | NEW |