Commit 587df4a7 authored by Mathieu Perreault's avatar Mathieu Perreault Committed by Commit Bot

[Autofill] Use a test address normalizer in TestAutofillClient

Bug: 788432
Change-Id: I0c6b058149896f693caeb0420dd3475aa5486e08
Reviewed-on: https://chromium-review.googlesource.com/1141925
Commit-Queue: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: default avatarSebastien Seguin-Gagnon <sebsg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576468}
parent b04cbd7e
...@@ -52,8 +52,7 @@ void TestAutofillClient::InitializeUKMSources() { ...@@ -52,8 +52,7 @@ void TestAutofillClient::InitializeUKMSources() {
} }
AddressNormalizer* TestAutofillClient::GetAddressNormalizer() { AddressNormalizer* TestAutofillClient::GetAddressNormalizer() {
// TODO(crbug.com/788432): Should use a TestAddressNormalizer. return &test_address_normalizer_;
return nullptr;
} }
security_state::SecurityLevel security_state::SecurityLevel
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "base/i18n/rtl.h" #include "base/i18n/rtl.h"
#include "base/macros.h" #include "base/macros.h"
#include "components/autofill/core/browser/autofill_client.h" #include "components/autofill/core/browser/autofill_client.h"
#include "components/autofill/core/browser/test_address_normalizer.h"
#include "components/prefs/pref_service.h" #include "components/prefs/pref_service.h"
#include "components/ukm/test_ukm_recorder.h" #include "components/ukm/test_ukm_recorder.h"
#include "services/identity/public/cpp/identity_test_environment.h" #include "services/identity/public/cpp/identity_test_environment.h"
...@@ -110,6 +111,7 @@ class TestAutofillClient : public AutofillClient { ...@@ -110,6 +111,7 @@ class TestAutofillClient : public AutofillClient {
private: private:
identity::IdentityTestEnvironment identity_test_env_; identity::IdentityTestEnvironment identity_test_env_;
syncer::SyncService* test_sync_service_ = nullptr; syncer::SyncService* test_sync_service_ = nullptr;
TestAddressNormalizer test_address_normalizer_;
// NULL by default. // NULL by default.
std::unique_ptr<PrefService> prefs_; std::unique_ptr<PrefService> prefs_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment