From 8e43e077d1115872a7556744b8aca51816ac69fd Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 28 Jul 2010 21:30:34 +0000 Subject: Make tests that rely on getting a temp dir exit if they don't. It may be the case that some tests march onward with the wrong directory and then do something bad. Review URL: http://codereview.chromium.org/3033037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54024 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/database/database_tracker_unittest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/database') diff --git a/webkit/database/database_tracker_unittest.cc b/webkit/database/database_tracker_unittest.cc index 8bb3f247..bc255dd 100644 --- a/webkit/database/database_tracker_unittest.cc +++ b/webkit/database/database_tracker_unittest.cc @@ -82,7 +82,7 @@ class DatabaseTracker_TestHelper_Test { static void TestDeleteOpenDatabase(bool incognito_mode) { // Initialize the tracker database. ScopedTempDir temp_dir; - EXPECT_TRUE(temp_dir.CreateUniqueTempDir()); + ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr tracker( new DatabaseTracker(temp_dir.path(), incognito_mode)); @@ -181,7 +181,7 @@ class DatabaseTracker_TestHelper_Test { static void TestDatabaseTracker(bool incognito_mode) { // Initialize the tracker database. ScopedTempDir temp_dir; - EXPECT_TRUE(temp_dir.CreateUniqueTempDir()); + ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr tracker( new DatabaseTracker(temp_dir.path(), incognito_mode)); -- cgit v1.1