Index: chrome/browser/sync/test/integration/sync_errors_test.cc |
diff --git a/chrome/browser/sync/test/integration/sync_errors_test.cc b/chrome/browser/sync/test/integration/sync_errors_test.cc |
index 6fb9c71df1833de4ad7d39055a72ae94a383649b..87d29a5b1f7e891b226c1132dd4ee9b73c678c15 100644 |
--- a/chrome/browser/sync/test/integration/sync_errors_test.cc |
+++ b/chrome/browser/sync/test/integration/sync_errors_test.cc |
@@ -140,20 +140,13 @@ IN_PROC_BROWSER_TEST_F(SyncErrorTest, |
protocol_error.error_description); |
} |
-// Trigger an auth error and make sure the sync client detects it when |
-// trying to commit. |
+// Trigger an auth error and make sure the sync client displays a warning in the |
+// UI. |
IN_PROC_BROWSER_TEST_F(SyncErrorTest, AuthErrorTest) { |
- ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; |
- |
- const BookmarkNode* node1 = AddFolder(0, 0, L"title1"); |
- SetTitle(0, node1, L"new_title1"); |
- ASSERT_TRUE(GetClient(0)->AwaitFullSyncCompletion("Sync.")); |
- |
+ ASSERT_TRUE(SetupClients()); |
TriggerAuthError(); |
- const BookmarkNode* node2 = AddFolder(0, 0, L"title2"); |
- SetTitle(0, node2, L"new_title2"); |
- ASSERT_TRUE(GetClient(0)->AwaitExponentialBackoffVerification()); |
+ ASSERT_FALSE(GetClient(0)->SetupSync()); |
ASSERT_EQ(GoogleServiceAuthError::INVALID_GAIA_CREDENTIALS, |
GetClient(0)->service()->GetAuthError().state()); |
} |