From e6ab3071f0d71d7aaf80b76a0fabc4a5d8f93195 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Mon, 27 Aug 2012 10:51:34 +0000 Subject: Fix sync unit test. OnDiskSyncableDirectory::FailInitialWrite was using a ScopedTempDir without calling any Create method. TEST=None BUG=144537,144422 R=rlarocque@chromium.org Review URL: https://chromiumcodereview.appspot.com/10873062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153461 0039d316-1c4b-4281-b951-d872f2087c98 --- sync/syncable/syncable_unittest.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sync') diff --git a/sync/syncable/syncable_unittest.cc b/sync/syncable/syncable_unittest.cc index 6a25f75..b74d41c 100644 --- a/sync/syncable/syncable_unittest.cc +++ b/sync/syncable/syncable_unittest.cc @@ -1449,6 +1449,7 @@ TEST(OnDiskSyncableDirectory, FailInitialWrite) { FakeEncryptor encryptor; TestUnrecoverableErrorHandler handler; ScopedTempDir temp_dir; + ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().Append( FILE_PATH_LITERAL("Test.sqlite3")); std::string name = "user@x.com"; -- cgit v1.1