summaryrefslogtreecommitdiffstats
path: root/chrome/test/live_sync/profile_sync_service_test_harness.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 20:22:07 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-20 20:22:07 +0000
commitca8cf5f8032626708e47604d190dbda0ffd8d618 (patch)
tree4a73ad587be839680e0e0b879ef664558bf3a87a /chrome/test/live_sync/profile_sync_service_test_harness.cc
parent593df619ff5c865bea2ffdd8927e5462c91318a2 (diff)
downloadchromium_src-ca8cf5f8032626708e47604d190dbda0ffd8d618.zip
chromium_src-ca8cf5f8032626708e47604d190dbda0ffd8d618.tar.gz
chromium_src-ca8cf5f8032626708e47604d190dbda0ffd8d618.tar.bz2
Convert LOG(INFO) to VLOG(1) - chrome/test/.
Also fix indentation, remove a few unnecessary endls, collapse some append()s into +s, and remove a few extra {}s. BUG=none TEST=none Review URL: http://codereview.chromium.org/3915004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/live_sync/profile_sync_service_test_harness.cc')
-rw-r--r--chrome/test/live_sync/profile_sync_service_test_harness.cc51
1 files changed, 24 insertions, 27 deletions
diff --git a/chrome/test/live_sync/profile_sync_service_test_harness.cc b/chrome/test/live_sync/profile_sync_service_test_harness.cc
index 5d037f6..a903fa7 100644
--- a/chrome/test/live_sync/profile_sync_service_test_harness.cc
+++ b/chrome/test/live_sync/profile_sync_service_test_harness.cc
@@ -322,7 +322,7 @@ bool ProfileSyncServiceTestHarness::AwaitGroupSyncCycleCompletion(
// static
bool ProfileSyncServiceTestHarness::AwaitQuiescence(
std::vector<ProfileSyncServiceTestHarness*>& clients) {
- LOG(INFO) << "AwaitQuiescence.";
+ VLOG(1) << "AwaitQuiescence.";
bool return_value = true;
for (std::vector<ProfileSyncServiceTestHarness*>::iterator it =
clients.begin(); it != clients.end(); ++it) {
@@ -419,13 +419,11 @@ void ProfileSyncServiceTestHarness::EnableSyncForDatatype(
service()->OnUserChoseDatatypes(false, synced_datatypes);
wait_state_ = WAITING_FOR_SYNC_TO_FINISH;
AwaitSyncCycleCompletion("Waiting for datatype configuration.");
- LOG(INFO) << "EnableSyncForDatatype(): Enabled sync for datatype "
- << syncable::ModelTypeToString(datatype)
- << " on Client " << id_ << ".";
+ VLOG(1) << "EnableSyncForDatatype(): Enabled sync for datatype "
+ << syncable::ModelTypeToString(datatype) << " on Client " << id_;
} else {
- LOG(INFO) << "EnableSyncForDatatype(): Sync already enabled for datatype "
- << syncable::ModelTypeToString(datatype)
- << " on Client " << id_ << ".";
+ VLOG(1) << "EnableSyncForDatatype(): Sync already enabled for datatype "
+ << syncable::ModelTypeToString(datatype) << " on Client " << id_;
}
}
}
@@ -442,13 +440,11 @@ void ProfileSyncServiceTestHarness::DisableSyncForDatatype(
synced_datatypes.erase(it);
service()->OnUserChoseDatatypes(false, synced_datatypes);
AwaitSyncCycleCompletion("Waiting for datatype configuration.");
- LOG(INFO) << "DisableSyncForDatatype(): Disabled sync for datatype "
- << syncable::ModelTypeToString(datatype)
- << " on Client " << id_ << ".";
+ VLOG(1) << "DisableSyncForDatatype(): Disabled sync for datatype "
+ << syncable::ModelTypeToString(datatype) << " on Client " << id_;
} else {
- LOG(INFO) << "DisableSyncForDatatype(): Sync already disabled for datatype "
- << syncable::ModelTypeToString(datatype)
- << " on Client " << id_ << ".";
+ VLOG(1) << "DisableSyncForDatatype(): Sync already disabled for datatype "
+ << syncable::ModelTypeToString(datatype) << " on Client " << id_;
}
}
@@ -469,8 +465,8 @@ void ProfileSyncServiceTestHarness::EnableSyncForAllDatatypes() {
service()->OnUserChoseDatatypes(true, synced_datatypes);
wait_state_ = WAITING_FOR_SYNC_TO_FINISH;
AwaitSyncCycleCompletion("Waiting for datatype configuration.");
- LOG(INFO) << "EnableSyncForAllDatatypes(): Enabled sync for all datatypes"
- << " on Client " << id_ << ".";
+ VLOG(1) << "EnableSyncForAllDatatypes(): Enabled sync for all datatypes on "
+ "Client " << id_;
}
}
@@ -480,8 +476,8 @@ void ProfileSyncServiceTestHarness::DisableSyncForAllDatatypes() {
<< "EnableSyncForAllDatatypes(): service() is null.";
service()->DisableForUser();
wait_state_ = SYNC_DISABLED;
- LOG(INFO) << "DisableSyncForAllDatatypes(): Disabled sync for all datatypes"
- << " on Client " << id_ << ".";
+ VLOG(1) << "DisableSyncForAllDatatypes(): Disabled sync for all datatypes on "
+ "Client " << id_;
}
int64 ProfileSyncServiceTestHarness::GetUpdatedTimestamp() {
@@ -495,16 +491,17 @@ int64 ProfileSyncServiceTestHarness::GetUpdatedTimestamp() {
void ProfileSyncServiceTestHarness::LogClientInfo(std::string message) {
const SyncSessionSnapshot* snap = GetLastSessionSnapshot();
if (snap) {
- LOG(INFO) << "Client " << id_ << ": " << message << ": "
- << "max_local_timestamp: " << snap->max_local_timestamp
- << ", has_more_to_sync: " << snap->has_more_to_sync
- << ", unsynced_count: " << snap->unsynced_count
- << ", has_unsynced_items: " << service()->backend()->HasUnsyncedItems()
- << ", notifications_enabled: " << GetStatus().notifications_enabled
- << ", service_is_pushing_changes: " << ServiceIsPushingChanges()
- << ".";
+ VLOG(1) << "Client " << id_ << ": " << message
+ << ": max_local_timestamp: " << snap->max_local_timestamp
+ << ", has_more_to_sync: " << snap->has_more_to_sync
+ << ", unsynced_count: " << snap->unsynced_count
+ << ", has_unsynced_items: "
+ << service()->backend()->HasUnsyncedItems()
+ << ", notifications_enabled: "
+ << GetStatus().notifications_enabled
+ << ", service_is_pushing_changes: " << ServiceIsPushingChanges();
} else {
- LOG(INFO) << "Client " << id_ << ": " << message << ": "
- << "Sync session snapshot not available.";
+ VLOG(1) << "Client " << id_ << ": " << message
+ << ": Sync session snapshot not available.";
}
}