Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Unified Diff: components/omnibox/browser/shortcuts_database_unittest.cc

Issue 2130353002: Prevents the shortcuts DB from going out of scope before unittests run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/shortcuts_database_unittest.cc
diff --git a/components/omnibox/browser/shortcuts_database_unittest.cc b/components/omnibox/browser/shortcuts_database_unittest.cc
index c98bdeb673397abc62695ec61d567572da25601c..2f151b116296a0f7abd66835cc0993710f200442 100644
--- a/components/omnibox/browser/shortcuts_database_unittest.cc
+++ b/components/omnibox/browser/shortcuts_database_unittest.cc
@@ -96,13 +96,13 @@ class ShortcutsDatabaseTest : public testing::Test {
void AddAll();
+ base::ScopedTempDir temp_dir_;
scoped_refptr<ShortcutsDatabase> db_;
};
void ShortcutsDatabaseTest::SetUp() {
- base::ScopedTempDir temp_dir;
- ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- base::FilePath db_path(temp_dir.path().Append(kShortcutsDatabaseName));
+ ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
+ base::FilePath db_path(temp_dir_.path().Append(kShortcutsDatabaseName));
db_ = new ShortcutsDatabase(db_path);
ASSERT_TRUE(db_->Init());
ClearDB();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698