Commit 8ce8006d authored by John Z Wu's avatar John Z Wu Committed by Commit Bot

Override IsDataLoaded() in TestPersonalDataManager.

This will help with writing tests for CWVAutofillDataManager.

Change-Id: Ib548b0a5df28ca74d3e43bc6f9d30cd192f44570
Reviewed-on: https://chromium-review.googlesource.com/1068024
Commit-Queue: John Wu <jzw@chromium.org>
Reviewed-by: default avatarSebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: default avatarJared Saul <jsaul@google.com>
Cr-Commit-Position: refs/heads/master@{#560921}
parent e791f2f9
......@@ -196,6 +196,10 @@ std::string TestPersonalDataManager::CountryCodeForCurrentTimezone()
return timezone_country_code_;
}
bool TestPersonalDataManager::IsDataLoaded() const {
return true;
}
void TestPersonalDataManager::ClearProfiles() {
web_profiles_.clear();
}
......
......@@ -47,6 +47,7 @@ class TestPersonalDataManager : public PersonalDataManager {
bool IsAutofillCreditCardEnabled() const override;
bool IsAutofillWalletImportEnabled() const override;
std::string CountryCodeForCurrentTimezone() const override;
bool IsDataLoaded() const override;
// Unique to TestPersonalDataManager:
......
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