DescriptionFixing destruction order in login database unit tests
Before, the ScopedTempDir would be destroyed before
LoginDatabase, which would still be locking the database file
within the temporary folder. This would cause an error in
ScopedTempDir's d-tor, and the temporary folder would stay
on disk.
Now the order of LoginDatabaseTest's members is aligned to
the order of initialization in SetUp and LoginDatabase is
destroyed before ScopedTempDir. This also makes the tests
run a lot faster on my Windows machine (>4s to 110ms).
TEST=unit_tests.exe --gtest_filter="LoginDatabaseTest.*"
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210374
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|