Remove TestingProfile teardown workaround from CRVHTH
This reverts https://chromium-review.googlesource.com/c/chromium/src/+/1685372, which has been obsoleted by https://chromium-review.googlesource.com/c/chromium/src/+/2332703. The profile directory is now guaranteed to outlive both TestingProfile and TaskEnvironment. The revert introduced a failure in TabManagerTest.IsTabRestoredInForeground: PathDeleterOnTestEnd was not able to delete the profile directory on Windows. This is fixed here by getting rid of TestMockTimeTaskRunner in favor of using the MOCK_TIME trait for TaskEnvironment. This is the preferred way of mocking time and it makes the test simpler. Bug: 978442 Change-Id: I3810d2ae57911f5b2d3337f954be5f5f360d7d4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416354Reviewed-by:Colin Blundell <blundell@chromium.org> Commit-Queue: Wojciech Dzierżanowski <wdzierzanowski@opera.com> Cr-Commit-Position: refs/heads/master@{#809729}
Showing
Please register or sign in to comment