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

Unified Diff: chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nick's comment Created 8 years, 10 months 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
Index: chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc
diff --git a/chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc b/chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc
index 120a4ce175dcd1d18831e10616bac258f8a72600..a01c4b70d2d733b1a1e0cbe41c5f0bb2e3f04711 100644
--- a/chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc
+++ b/chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc
@@ -57,10 +57,8 @@ MATCHER_P(CheckSyncChanges, n_sync_changes_list, "") {
DCHECK(passed->IsValid());
if (passed->change_type() != expected->change_type())
return false;
- if (passed->sync_data().GetSpecifics().GetExtension(
- sync_pb::autofill_profile).guid() !=
- expected->sync_data().GetSpecifics().GetExtension(
- sync_pb::autofill_profile).guid()) {
+ if (passed->sync_data().GetSpecifics().autofill_profile().guid() !=
+ expected->sync_data().GetSpecifics().autofill_profile().guid()) {
return false;
}
}
@@ -210,9 +208,9 @@ TEST_F(AutofillProfileSyncableServiceTest, GetAllSyncData) {
EXPECT_EQ(2U, data.size());
EXPECT_EQ(guid_present1, data.front().GetSpecifics()
- .GetExtension(sync_pb::autofill_profile).guid());
+ .autofill_profile().guid());
akalin 2012/03/02 23:56:49 indentation
EXPECT_EQ(guid_present2, data.back().GetSpecifics()
- .GetExtension(sync_pb::autofill_profile).guid());
+ .autofill_profile().guid());
}
TEST_F(AutofillProfileSyncableServiceTest, ProcessSyncChanges) {

Powered by Google App Engine
This is Rietveld 408576698