Use net::TestClosureCallback in SimpleCache tests.
commitf379a6efd4f9beb6cc49e7f4e00286dfc2717dcf
authorgavinp <gavinp@chromium.org>
Tue, 4 Nov 2014 20:20:57 +0000 (4 12:20 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Nov 2014 20:21:35 +0000 (4 20:21 +0000)
tree43c4d400689d7f4ad8880276b6414c884b4c6f29
parentfa3a3cc37f07130dedf6a017bbca6903d9ef4f7c
Use net::TestClosureCallback in SimpleCache tests.

Reduces flakiness; improves test readability. Also introduces a
callback on SimpleIndexFile to signal completion of writing the index,
useful for deflaking cache serialization.

R=jkarlin@chromium.org
BUG=255775,429672

Review URL: https://codereview.chromium.org/699743002

Cr-Commit-Position: refs/heads/master@{#302653}
net/disk_cache/simple/simple_index.cc
net/disk_cache/simple/simple_index_file.cc
net/disk_cache/simple/simple_index_file.h
net/disk_cache/simple/simple_index_file_unittest.cc
net/disk_cache/simple/simple_index_unittest.cc