summaryrefslogtreecommitdiffstats
path: root/webkit/database
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 21:30:34 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 21:30:34 +0000
commit8e43e077d1115872a7556744b8aca51816ac69fd (patch)
tree6955f33b7216f0189dfa4579ec541cdfdff018ea /webkit/database
parent65049c1095517f4eb305469c42d94e10d47a9501 (diff)
downloadchromium_src-8e43e077d1115872a7556744b8aca51816ac69fd.zip
chromium_src-8e43e077d1115872a7556744b8aca51816ac69fd.tar.gz
chromium_src-8e43e077d1115872a7556744b8aca51816ac69fd.tar.bz2
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
Diffstat (limited to 'webkit/database')
-rw-r--r--webkit/database/database_tracker_unittest.cc4
1 files changed, 2 insertions, 2 deletions
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<DatabaseTracker> 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<DatabaseTracker> tracker(
new DatabaseTracker(temp_dir.path(), incognito_mode));