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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_profile_syncable_service_unittest.cc

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/location.h" 5 #include "base/location.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/autofill/core/browser/autofill_profile.h" 8 #include "components/autofill/core/browser/autofill_profile.h"
9 #include "components/autofill/core/browser/webdata/autofill_change.h" 9 #include "components/autofill/core/browser/webdata/autofill_change.h"
10 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h" 10 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 return syncer::SyncData::CreateLocalData(kGuid1, kGuid1, entity_specifics); 221 return syncer::SyncData::CreateLocalData(kGuid1, kGuid1, entity_specifics);
222 } 222 }
223 223
224 } // namespace 224 } // namespace
225 225
226 class AutofillProfileSyncableServiceTest : public testing::Test { 226 class AutofillProfileSyncableServiceTest : public testing::Test {
227 public: 227 public:
228 AutofillProfileSyncableServiceTest() {} 228 AutofillProfileSyncableServiceTest() {}
229 229
230 virtual void SetUp() override { 230 void SetUp() override { sync_processor_.reset(new MockSyncChangeProcessor); }
231 sync_processor_.reset(new MockSyncChangeProcessor);
232 }
233 231
234 // Wrapper around AutofillProfileSyncableService::MergeDataAndStartSyncing() 232 // Wrapper around AutofillProfileSyncableService::MergeDataAndStartSyncing()
235 // that also verifies expectations. 233 // that also verifies expectations.
236 void MergeDataAndStartSyncing( 234 void MergeDataAndStartSyncing(
237 const std::vector<AutofillProfile*>& profiles_from_web_db, 235 const std::vector<AutofillProfile*>& profiles_from_web_db,
238 const syncer::SyncDataList& data_list, 236 const syncer::SyncDataList& data_list,
239 const MockAutofillProfileSyncableService::DataBundle& expected_bundle, 237 const MockAutofillProfileSyncableService::DataBundle& expected_bundle,
240 const syncer::SyncChangeList& expected_change_list) { 238 const syncer::SyncChangeList& expected_change_list) {
241 EXPECT_CALL(autofill_syncable_service_, LoadAutofillData(_)) 239 EXPECT_CALL(autofill_syncable_service_, LoadAutofillData(_))
242 .Times(1) 240 .Times(1)
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 1184
1187 // Expect no changes to remote data. 1185 // Expect no changes to remote data.
1188 syncer::SyncChangeList expected_empty_change_list; 1186 syncer::SyncChangeList expected_empty_change_list;
1189 1187
1190 MergeDataAndStartSyncing(profiles_from_web_db, data_list, 1188 MergeDataAndStartSyncing(profiles_from_web_db, data_list,
1191 expected_bundle, expected_empty_change_list); 1189 expected_bundle, expected_empty_change_list);
1192 autofill_syncable_service_.StopSyncing(syncer::AUTOFILL_PROFILE); 1190 autofill_syncable_service_.StopSyncing(syncer::AUTOFILL_PROFILE);
1193 } 1191 }
1194 1192
1195 } // namespace autofill 1193 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698