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 /webkit/dom_storage | |
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 'webkit/dom_storage')
4 files changed, 15 insertions, 15 deletions
diff --git a/webkit/dom_storage/dom_storage_area_unittest.cc b/webkit/dom_storage/dom_storage_area_unittest.cc index 5d2e953..858176a 100644 --- a/webkit/dom_storage/dom_storage_area_unittest.cc +++ b/webkit/dom_storage/dom_storage_area_unittest.cc @@ -4,9 +4,9 @@ #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/threading/sequenced_worker_pool.h" #include "base/time.h" #include "base/utf_string_conversions.h" @@ -124,7 +124,7 @@ TEST_F(DomStorageAreaTest, DomStorageAreaBasics) { TEST_F(DomStorageAreaTest, BackingDatabaseOpened) { const int64 kSessionStorageNamespaceId = kLocalStorageNamespaceId + 1; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); const FilePath kExpectedOriginFilePath = temp_dir.path().Append( DomStorageArea::DatabaseFileNameFromOrigin(kOrigin)); @@ -202,7 +202,7 @@ TEST_F(DomStorageAreaTest, BackingDatabaseOpened) { } TEST_F(DomStorageAreaTest, CommitTasks) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DomStorageArea> area( @@ -280,7 +280,7 @@ TEST_F(DomStorageAreaTest, CommitTasks) { } TEST_F(DomStorageAreaTest, CommitChangesAtShutdown) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DomStorageArea> area( new DomStorageArea(kOrigin, @@ -307,7 +307,7 @@ TEST_F(DomStorageAreaTest, CommitChangesAtShutdown) { } TEST_F(DomStorageAreaTest, DeleteOrigin) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DomStorageArea> area( new DomStorageArea(kOrigin, @@ -368,7 +368,7 @@ TEST_F(DomStorageAreaTest, DeleteOrigin) { } TEST_F(DomStorageAreaTest, PurgeMemory) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DomStorageArea> area( new DomStorageArea(kOrigin, diff --git a/webkit/dom_storage/dom_storage_context_unittest.cc b/webkit/dom_storage/dom_storage_context_unittest.cc index 870513d..5481f43 100644 --- a/webkit/dom_storage/dom_storage_context_unittest.cc +++ b/webkit/dom_storage/dom_storage_context_unittest.cc @@ -4,9 +4,9 @@ #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/threading/sequenced_worker_pool.h" #include "base/time.h" #include "base/utf_string_conversions.h" @@ -63,7 +63,7 @@ class DomStorageContextTest : public testing::Test { protected: MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; scoped_refptr<quota::MockSpecialStoragePolicy> storage_policy_; scoped_refptr<MockDomStorageTaskRunner> task_runner_; scoped_refptr<DomStorageContext> context_; diff --git a/webkit/dom_storage/dom_storage_database_unittest.cc b/webkit/dom_storage/dom_storage_database_unittest.cc index b11ea89..3e9bfbd 100644 --- a/webkit/dom_storage/dom_storage_database_unittest.cc +++ b/webkit/dom_storage/dom_storage_database_unittest.cc @@ -6,8 +6,8 @@ #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/path_service.h" -#include "base/scoped_temp_dir.h" #include "base/utf_string_conversions.h" #include "sql/statement.h" #include "testing/gtest/include/gtest/gtest.h" @@ -108,7 +108,7 @@ TEST(DomStorageDatabaseTest, SimpleOpenAndClose) { } TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_name = temp_dir.path().AppendASCII("TestDomStorageDatabase.db"); ValuesMap storage; @@ -165,7 +165,7 @@ TEST(DomStorageDatabaseTest, CloseEmptyDatabaseDeletesFile) { TEST(DomStorageDatabaseTest, TestLazyOpenIsLazy) { // This test needs to operate with a file on disk to ensure that we will // open a file that already exists when only invoking ReadAllValues. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_name = temp_dir.path().AppendASCII("TestDomStorageDatabase.db"); @@ -212,7 +212,7 @@ TEST(DomStorageDatabaseTest, TestLazyOpenUpgradesDatabase) { // can create a table at version 1 and then close it again // so that LazyOpen sees there is work to do (LazyOpen will return // early if the database is already open). - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_name = temp_dir.path().AppendASCII("TestDomStorageDatabase.db"); @@ -332,7 +332,7 @@ TEST(DomStorageDatabaseTest, TestCanOpenAndReadWebCoreDatabase) { TEST(DomStorageDatabaseTest, TestCanOpenFileThatIsNotADatabase) { // Write into the temporary file first. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_name = temp_dir.path().AppendASCII("TestDomStorageDatabase.db"); diff --git a/webkit/dom_storage/session_storage_database_unittest.cc b/webkit/dom_storage/session_storage_database_unittest.cc index e685f93..44c62b5 100644 --- a/webkit/dom_storage/session_storage_database_unittest.cc +++ b/webkit/dom_storage/session_storage_database_unittest.cc @@ -10,8 +10,8 @@ #include <string> #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/logging.h" -#include "base/scoped_temp_dir.h" #include "base/string_number_conversions.h" #include "base/utf_string_conversions.h" #include "googleurl/src/gurl.h" @@ -59,7 +59,7 @@ class SessionStorageDatabaseTest : public testing::Test { const GURL& origin) const; int64 GetMapRefCount(const std::string& map_id) const; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; scoped_refptr<SessionStorageDatabase> db_; // Test data. |