commit | 5310924e2982f6ce82e64fb7a3558fb46248ae47 | [log] [tgz] |
---|---|---|
author | Greg Thompson <[email protected]> | Mon Nov 04 20:22:02 2019 |
committer | Commit Bot <[email protected]> | Mon Nov 04 20:22:02 2019 |
tree | 5460bfafe0c1f055a8d94282002c272655f19388 | |
parent | 6b91cecb6200ed5b2088a9085ce30cadeb39c966 [diff] [blame] |
IWYU fix in visitedlink_unittest.cc. Also ensure that the temp dir can be deleted in TearDown. BUG=546640 [email protected] Change-Id: I8e939324616a3e278c0508f639d0caaec2042f56 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894007 Commit-Queue: Scott Violet <[email protected]> Auto-Submit: Greg Thompson <[email protected]> Reviewed-by: Scott Violet <[email protected]> Cr-Commit-Position: refs/heads/master@{#712235}
diff --git a/components/visitedlink/test/visitedlink_unittest.cc b/components/visitedlink/test/visitedlink_unittest.cc index 9a51eff..2027c72e 100644 --- a/components/visitedlink/test/visitedlink_unittest.cc +++ b/components/visitedlink/test/visitedlink_unittest.cc
@@ -12,6 +12,7 @@ #include "base/bind.h" #include "base/files/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/location.h" #include "base/macros.h" #include "base/process/process_handle.h" @@ -239,7 +240,10 @@ visited_file_ = history_dir_.Append(FILE_PATH_LITERAL("VisitedLinks")); } - void TearDown() override { ClearDB(); } + void TearDown() override { + ClearDB(); + ASSERT_TRUE(temp_dir_.Delete()); + } base::ScopedTempDir temp_dir_;