Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7612)

Unified Diff: chrome/browser/sync/profile_sync_service_harness.cc

Issue 6010007: Logging tweak for sync integration test harness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/live_sync/many_client_live_preferences_sync_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_harness.cc
diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
index d27514763ae87bbf30c7cc7b88e9abd1bd377166..dc6ac98b323a8676db5a71b260fc111387fc4da4 100644
--- a/chrome/browser/sync/profile_sync_service_harness.cc
+++ b/chrome/browser/sync/profile_sync_service_harness.cc
@@ -424,8 +424,13 @@ bool ProfileSyncServiceHarness::AwaitStatusChangeWithTimeout(
timeout_milliseconds);
loop->Run();
loop->SetNestableTasksAllowed(did_allow_nestable_tasks);
- LogClientInfo("AwaitStatusChangeWithTimeout succeeded");
- return timeout_signal->Abort();
+ if (timeout_signal->Abort()) {
+ LogClientInfo("AwaitStatusChangeWithTimeout succeeded");
+ return true;
+ } else {
+ LogClientInfo("AwaitStatusChangeWithTimeout timed out");
+ return false;
+ }
}
ProfileSyncService::Status ProfileSyncServiceHarness::GetStatus() {
« no previous file with comments | « no previous file | chrome/test/live_sync/many_client_live_preferences_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698