Fix the singleton in ConsentAuditorFactory
ConsentAuditorFactory used CR_DEFINE_STATIC_LOCAL to define a singleton. In single-process tests, this results in the factory surviving between subsequent test runs. Instead, use base::Singleton which is destroyed and recreated with the test fixture. Bug: 781765 Change-Id: I46374d6c28ece58eec764db3ff4fa5cffd43216b Reviewed-on: https://chromium-review.googlesource.com/897947Reviewed-by:Balazs Engedy <engedy@chromium.org> Commit-Queue: Martin Šrámek <msramek@chromium.org> Cr-Commit-Position: refs/heads/master@{#533885}
Showing
Please register or sign in to comment