Commit aaea4cb4 authored by Matthias Körber's avatar Matthias Körber Committed by Commit Bot

[Autofill][Slimshady] WebDataService test to work with structured

With structured names, profiles must be finalized after an import.
For the tests to work correctly, the two necessary lines are added.

Bug: 1099202
Change-Id: I7b835fa144871cd4549415270685996f9bfabe51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2362825
Commit-Queue: Christoph Schwering <schwering@google.com>
Auto-Submit: Matthias Körber <koerber@google.com>
Reviewed-by: default avatarChristoph Schwering <schwering@google.com>
Cr-Commit-Position: refs/heads/master@{#799743}
parent 7c8bfedb
...@@ -333,9 +333,12 @@ TEST_F(WebDataServiceAutofillTest, ProfileUpdate) { ...@@ -333,9 +333,12 @@ TEST_F(WebDataServiceAutofillTest, ProfileUpdate) {
AutofillProfile profile1("6141084B-72D7-4B73-90CF-3D6AC154673B", AutofillProfile profile1("6141084B-72D7-4B73-90CF-3D6AC154673B",
std::string()); std::string());
profile1.SetRawInfo(NAME_FIRST, ASCIIToUTF16("Abe")); profile1.SetRawInfo(NAME_FIRST, ASCIIToUTF16("Abe"));
profile1.FinalizeAfterImport();
AutofillProfile profile2("087151C8-6AB1-487C-9095-28E80BE5DA15", AutofillProfile profile2("087151C8-6AB1-487C-9095-28E80BE5DA15",
std::string()); std::string());
profile2.SetRawInfo(NAME_FIRST, ASCIIToUTF16("Alice")); profile2.SetRawInfo(NAME_FIRST, ASCIIToUTF16("Alice"));
profile2.FinalizeAfterImport();
EXPECT_CALL(observer_, AutofillProfileChanged(_)) EXPECT_CALL(observer_, AutofillProfileChanged(_))
.WillOnce(DoDefault()) .WillOnce(DoDefault())
......
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