Commit 8e43e077 authored by evan@chromium.org's avatar evan@chromium.org

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
parent 65049c10
......@@ -54,7 +54,7 @@ TEST(AppCacheDatabaseTest, LazyOpen) {
TEST(AppCacheDatabaseTest, ReCreate) {
// Real files on disk for this test.
ScopedTempDir temp_dir;
EXPECT_TRUE(temp_dir.CreateUniqueTempDir());
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
const FilePath kDbFile = temp_dir.path().AppendASCII("appcache.db");
const FilePath kNestedDir = temp_dir.path().AppendASCII("nested");
const FilePath kOtherFile = kNestedDir.AppendASCII("other_file");
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment