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

Issue 6312174: Add a data-driven unit test to validate autofill profile merging during aggregation. (Closed)

Created:
9 years, 10 months ago by Ilya Sherman
Modified:
9 years, 7 months ago
Reviewers:
dyu1, dhollowa
CC:
chromium-reviews, pam+watch_chromium.org, Ilya Sherman, Paweł Hajdan Jr., James Hawkins, dhollowa, GeorgeY
Visibility:
Public.

Description

Add a data-driven unit test to validate autofill profile merging during aggregation. BUG=none TEST=unit_tests --gtest_filter=AutoFillMergeTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74210

Patch Set 1 #

Patch Set 2 : Too soon. #

Total comments: 18

Patch Set 3 : Addressed review comments #

Patch Set 4 : Rename reserialization script #

Unified diffs Side-by-side diffs Delta from patch set Stats (+915 lines, -242 lines) Patch
M chrome/browser/autofill/autofill_common_test.cc View 1 chunk +4 lines, -2 lines 0 comments Download
A chrome/browser/autofill/autofill_merge_unittest.cc View 1 2 1 chunk +225 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_type.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_type.cc View 2 chunks +192 lines, -0 lines 0 comments Download
A chrome/browser/autofill/data_driven_test.h View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/autofill/data_driven_test.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
M chrome/browser/autofill/form_structure_browsertest.cc View 2 chunks +47 lines, -208 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 2 chunks +58 lines, -46 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_de.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_en.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_es.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_fr.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_it.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_ja.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_pt.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_ru.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_zh_cn.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/input/form_zh_tw.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_de.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_en.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_es.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_fr.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_it.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_ja.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_pt.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_ru.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_zh_cn.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/autofill/heuristics/output/form_zh_tw.out View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/autofill/merge/input/identical.in View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/merge/output/identical.out View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/merge/tools/autofill_merge_common.py View 1 2 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/merge/tools/flatten.py View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/merge/tools/reserialize_profiles_from_query.py View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/test/data/autofill/merge/tools/serialize_profiles.py View 1 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ilya Sherman
@dyu: Please take a look at the python scripts and let me know if I'm ...
9 years, 10 months ago (2011-02-05 05:46:07 UTC) #1
dhollowa
LGTM. Great stuff! Some nits and a small data format change. http://codereview.chromium.org/6312174/diff/1001/chrome/browser/autofill/autofill_common_test.cc File chrome/browser/autofill/autofill_common_test.cc (right): ...
9 years, 10 months ago (2011-02-07 04:09:29 UTC) #2
dyu1
LGTM except field names comment. http://codereview.chromium.org/6312174/diff/1001/chrome/test/data/autofill/merge/tools/autofill_merge_common.py File chrome/test/data/autofill/merge/tools/autofill_merge_common.py (right): http://codereview.chromium.org/6312174/diff/1001/chrome/test/data/autofill/merge/tools/autofill_merge_common.py#newcode70 chrome/test/data/autofill/merge/tools/autofill_merge_common.py:70: field_type = "PHONE_HOME_NUMBER" Should ...
9 years, 10 months ago (2011-02-07 20:48:08 UTC) #3
Ilya Sherman
http://codereview.chromium.org/6312174/diff/1001/chrome/browser/autofill/autofill_common_test.cc File chrome/browser/autofill/autofill_common_test.cc (right): http://codereview.chromium.org/6312174/diff/1001/chrome/browser/autofill/autofill_common_test.cc#newcode89 chrome/browser/autofill/autofill_common_test.cc:89: if (profile) { On 2011/02/07 04:09:29, dhollowa wrote: > ...
9 years, 10 months ago (2011-02-08 05:31:40 UTC) #4
dhollowa
9 years, 10 months ago (2011-02-08 15:10:27 UTC) #5
LGTM.  Thanks.

http://codereview.chromium.org/6312174/diff/1001/chrome/test/data/autofill/me...
File chrome/test/data/autofill/merge/tools/translate_profile_dump.py (right):

http://codereview.chromium.org/6312174/diff/1001/chrome/test/data/autofill/me...
chrome/test/data/autofill/merge/tools/translate_profile_dump.py:19: #
TODO(isherman): This file could use a better name.
profile_dump.py

On 2011/02/08 05:31:41, Ilya Sherman wrote:
> Any suggestions for a better name?

Powered by Google App Engine
This is Rietveld 408576698