Order returning profiles and card by descending date_modified
The unittests (WebDataServiceAutofillTest.CreditUpdate) assume that the newly modified credit card information will be the first one returned. Since it has the highest date_modified value, this imply a descending ordering of the cards when iterating. The unittests were previously flaky as the precision of date_modified is not high enough and both card ended up with the same value most of the time. When the test was taking slightly more time to run, then the modified car would end up last and the test would fail. BUG=None Review URL: https://codereview.chromium.org/600873002 Cr-Commit-Position: refs/heads/master@{#296623}
Showing
Please register or sign in to comment