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

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: fred's review 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
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service.cc ('k') | net/tools/testserver/chromiumsync.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6f34719f872741324f1075d8c09c43501ab1dd42 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());
EXPECT_EQ(guid_present2, data.back().GetSpecifics()
- .GetExtension(sync_pb::autofill_profile).guid());
+ .autofill_profile().guid());
}
TEST_F(AutofillProfileSyncableServiceTest, ProcessSyncChanges) {
« no previous file with comments | « chrome/browser/webdata/autofill_profile_syncable_service.cc ('k') | net/tools/testserver/chromiumsync.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698