DescriptionFixes targeting the unique creation times invariant in the CookieMonster:
* Make sure we don't import cookies with identical creation times.
* DCHECK that duplicate cookie list insertion succeeds (it
silently didn't when there were not unique creation times.)
* Confirm that we eliminate all the duplicats we find on cookie
import.
* Make Methods allowing setting of creation time private.
* Create performance test for import (involved refactoring
backing store mock.)
This change does increase the performance cost on import, and hence adds
to startup time. However, the increase for importing 15000 cookies was only
5 ms, so I think that's acceptable to prevent crashes.
rdsmith-macbookpro:~/tmp $ perfparse base_perf_import.txt new_perf_import.txt
base_perf_import.txt new_perf_import.txt
CookieMonsterTest.TestImport
Cookie_monster_import_from_store 26.36 +/- 0.88 31.38 +/- 1.1
BUG=43188
TEST=net_unittest --gtest_filter=CookieMonsterTest.* (including two new tests.), Linux & Windows
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53957
Patch Set 1 #Patch Set 2 : Fixed duplicate creation times bug in unit test, tweaked formatting. #
Total comments: 32
Patch Set 3 : Made creation times in perftest unique. #
Total comments: 2
Messages
Total messages: 5 (0 generated)
|