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

Side by Side Diff: components/autofill/core/browser/autofill_manager_unittest.cc

Issue 2740633002: [Autofill] Add upstreaming UKM (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 private: 119 private:
120 payments::PaymentsClientDelegate* const delegate_; 120 payments::PaymentsClientDelegate* const delegate_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(TestPaymentsClient); 122 DISALLOW_COPY_AND_ASSIGN(TestPaymentsClient);
123 }; 123 };
124 124
125 class TestPersonalDataManager : public PersonalDataManager { 125 class TestPersonalDataManager : public PersonalDataManager {
126 public: 126 public:
127 TestPersonalDataManager() 127 TestPersonalDataManager()
128 : PersonalDataManager("en-US"), 128 : PersonalDataManager("en-US", nullptr /* ukm_service */),
129 num_times_save_imported_profile_called_(0) { 129 num_times_save_imported_profile_called_(0) {
130 CreateTestAutofillProfiles(&web_profiles_); 130 CreateTestAutofillProfiles(&web_profiles_);
131 CreateTestCreditCards(&local_credit_cards_); 131 CreateTestCreditCards(&local_credit_cards_);
132 } 132 }
133 133
134 using PersonalDataManager::set_database; 134 using PersonalDataManager::set_database;
135 using PersonalDataManager::SetPrefService; 135 using PersonalDataManager::SetPrefService;
136 136
137 int num_times_save_imported_profile_called() { 137 int num_times_save_imported_profile_called() {
138 return num_times_save_imported_profile_called_; 138 return num_times_save_imported_profile_called_;
(...skipping 5503 matching lines...) Expand 10 before | Expand all | Expand 10 after
5642 5642
5643 // The driver should always be notified. 5643 // The driver should always be notified.
5644 for (const FormFieldData& field : form.fields) { 5644 for (const FormFieldData& field : form.fields) {
5645 GetAutofillSuggestions(form, field); 5645 GetAutofillSuggestions(form, field);
5646 EXPECT_TRUE(autofill_driver_->did_interact_with_credit_card_form()); 5646 EXPECT_TRUE(autofill_driver_->did_interact_with_credit_card_form());
5647 autofill_driver_->ClearDidInteractWithCreditCardForm(); 5647 autofill_driver_->ClearDidInteractWithCreditCardForm();
5648 } 5648 }
5649 } 5649 }
5650 5650
5651 } // namespace autofill 5651 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698