diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 20:34:23 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-16 20:34:23 +0000 |
commit | ea1a3f60aa4527939af680eda25c7697901f643c (patch) | |
tree | 6835e11842b4ff04ec277a5f961cbf1853b95bae /sync/syncable | |
parent | a628d191e68c0d1d308e1a20a5a4d7bf7884c4c5 (diff) | |
download | chromium_src-ea1a3f60aa4527939af680eda25c7697901f643c.zip chromium_src-ea1a3f60aa4527939af680eda25c7697901f643c.tar.gz chromium_src-ea1a3f60aa4527939af680eda25c7697901f643c.tar.bz2 |
Move scoped_temp_dir from base to base/files
Also add to base namespace.
BUG=
Review URL: https://codereview.chromium.org/11359217
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@168281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/syncable')
-rw-r--r-- | sync/syncable/directory_backing_store_unittest.cc | 4 | ||||
-rw-r--r-- | sync/syncable/syncable_unittest.cc | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sync/syncable/directory_backing_store_unittest.cc b/sync/syncable/directory_backing_store_unittest.cc index f7be920..0cb0044 100644 --- a/sync/syncable/directory_backing_store_unittest.cc +++ b/sync/syncable/directory_backing_store_unittest.cc @@ -8,8 +8,8 @@ #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" -#include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "base/string_number_conversions.h" #include "sql/connection.h" @@ -79,7 +79,7 @@ class MigrationTest : public testing::TestWithParam<int> { } private: - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; }; class DirectoryBackingStoreTest : public MigrationTest {}; diff --git a/sync/syncable/syncable_unittest.cc b/sync/syncable/syncable_unittest.cc index 8a49ba4..2a089ac 100644 --- a/sync/syncable/syncable_unittest.cc +++ b/sync/syncable/syncable_unittest.cc @@ -8,11 +8,11 @@ #include "base/compiler_specific.h" #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/location.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "base/stringprintf.h" #include "base/synchronization/condition_variable.h" #include "base/test/values_test_util.h" @@ -98,7 +98,7 @@ class SyncableGeneralTest : public testing::Test { } protected: MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; NullDirectoryChangeDelegate delegate_; FakeEncryptor encryptor_; TestUnrecoverableErrorHandler handler_; @@ -1483,7 +1483,7 @@ TestDirectory::~TestDirectory() { } TEST(OnDiskSyncableDirectory, FailInitialWrite) { FakeEncryptor encryptor; TestUnrecoverableErrorHandler handler; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().Append( FILE_PATH_LITERAL("Test.sqlite3")); @@ -1539,7 +1539,7 @@ class OnDiskSyncableDirectoryTest : public SyncableDirectoryTest { } TestDirectory *test_directory_; // mirrors scoped_ptr<Directory> dir_ - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; FilePath file_path_; }; @@ -1942,7 +1942,7 @@ class SyncableDirectoryManagement : public testing::Test { } protected: MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; FakeEncryptor encryptor_; TestUnrecoverableErrorHandler handler_; NullDirectoryChangeDelegate delegate_; @@ -2011,7 +2011,7 @@ class StressTransactionsDelegate : public base::PlatformThread::Delegate { TEST(SyncableDirectory, StressTransactions) { MessageLoop message_loop; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FakeEncryptor encryptor; TestUnrecoverableErrorHandler handler; |