Index: chrome/test/live_sync/two_client_live_preferences_sync_test.cc |
diff --git a/chrome/test/live_sync/two_client_live_preferences_sync_test.cc b/chrome/test/live_sync/two_client_live_preferences_sync_test.cc |
index 04b4ee446f44f78480725b10e75fb7a4b20c1215..8348896f110c13a7f812bd1be7449a45fa3b282e 100644 |
--- a/chrome/test/live_sync/two_client_live_preferences_sync_test.cc |
+++ b/chrome/test/live_sync/two_client_live_preferences_sync_test.cc |
@@ -55,14 +55,15 @@ class TwoClientLivePreferencesSyncTest : public LiveSyncTest { |
IN_PROC_BROWSER_TEST_F(TwoClientLivePreferencesSyncTest, Sanity) { |
SetupSync(); |
- EXPECT_EQ(false, prefs1()->GetBoolean(prefs::kHomePageIsNewTabPage)); |
- EXPECT_EQ(false, prefs2()->GetBoolean(prefs::kHomePageIsNewTabPage)); |
+ EXPECT_EQ(prefs1()->GetBoolean(prefs::kHomePageIsNewTabPage), |
+ prefs2()->GetBoolean(prefs::kHomePageIsNewTabPage)); |
PrefService* expected = LiveSyncTest::MakeProfile( |
FILE_PATH_LITERAL("verifier"))->GetPrefs(); |
- expected->SetBoolean(prefs::kHomePageIsNewTabPage, true); |
+ bool value = !expected->GetBoolean(prefs::kHomePageIsNewTabPage); |
+ expected->SetBoolean(prefs::kHomePageIsNewTabPage, value); |
- prefs1()->SetBoolean(prefs::kHomePageIsNewTabPage, true); |
+ prefs1()->SetBoolean(prefs::kHomePageIsNewTabPage, value); |
EXPECT_TRUE(client2()->AwaitMutualSyncCycleCompletion(client1())); |
EXPECT_EQ(expected->GetBoolean(prefs::kHomePageIsNewTabPage), |