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 | |
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')
44 files changed, 128 insertions, 130 deletions
diff --git a/webkit/appcache/appcache_database_unittest.cc b/webkit/appcache/appcache_database_unittest.cc index 3a9a5ad..d84d451 100644 --- a/webkit/appcache/appcache_database_unittest.cc +++ b/webkit/appcache/appcache_database_unittest.cc @@ -5,7 +5,7 @@ #include "testing/gtest/include/gtest/gtest.h" #include "base/file_util.h" -#include "base/scoped_temp_dir.h" +#include "base/files/scoped_temp_dir.h" #include "base/stringprintf.h" #include "sql/connection.h" #include "sql/meta_table.h" @@ -63,7 +63,7 @@ TEST(AppCacheDatabaseTest, LazyOpen) { TEST(AppCacheDatabaseTest, ReCreate) { // Real files on disk for this test. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); const FilePath kDbFile = temp_dir.path().AppendASCII("appcache.db"); const FilePath kNestedDir = temp_dir.path().AppendASCII("nested"); @@ -619,7 +619,7 @@ TEST(AppCacheDatabaseTest, OriginUsage) { TEST(AppCacheDatabaseTest, UpgradeSchema3to4) { // Real file on disk for this test. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); const FilePath kDbFile = temp_dir.path().AppendASCII("upgrade.db"); diff --git a/webkit/blob/blob_url_request_job_unittest.cc b/webkit/blob/blob_url_request_job_unittest.cc index 1141714..a9b2241 100644 --- a/webkit/blob/blob_url_request_job_unittest.cc +++ b/webkit/blob/blob_url_request_job_unittest.cc @@ -5,10 +5,10 @@ #include "base/bind.h" #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "base/time.h" #include "net/base/io_buffer.h" #include "net/http/http_request_headers.h" @@ -295,7 +295,7 @@ class BlobURLRequestJobTest : public testing::Test { } protected: - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; FilePath temp_file1_; FilePath temp_file2_; base::Time temp_file_modification_time1_; diff --git a/webkit/blob/local_file_stream_reader_unittest.cc b/webkit/blob/local_file_stream_reader_unittest.cc index 4087037..9c2a228d 100644 --- a/webkit/blob/local_file_stream_reader_unittest.cc +++ b/webkit/blob/local_file_stream_reader_unittest.cc @@ -8,10 +8,10 @@ #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/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/threading/thread.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" @@ -118,7 +118,7 @@ class LocalFileStreamReaderTest : public testing::Test { private: MessageLoop message_loop_; base::Thread file_thread_; - ScopedTempDir dir_; + base::ScopedTempDir dir_; base::Time test_file_modification_time_; }; diff --git a/webkit/blob/shareable_file_reference_unittest.cc b/webkit/blob/shareable_file_reference_unittest.cc index 6234f42..7136fcd 100644 --- a/webkit/blob/shareable_file_reference_unittest.cc +++ b/webkit/blob/shareable_file_reference_unittest.cc @@ -5,9 +5,9 @@ #include "webkit/blob/shareable_file_reference.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 "testing/gtest/include/gtest/gtest.h" namespace webkit_blob { @@ -16,7 +16,7 @@ TEST(ShareableFileReferenceTest, TestReferences) { MessageLoop message_loop; scoped_refptr<base::MessageLoopProxy> loop_proxy = base::MessageLoopProxy::current(); - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); // Create a file. diff --git a/webkit/database/database_tracker_unittest.cc b/webkit/database/database_tracker_unittest.cc index 303dbd8..ef95d8f 100644 --- a/webkit/database/database_tracker_unittest.cc +++ b/webkit/database/database_tracker_unittest.cc @@ -4,11 +4,11 @@ #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/message_loop.h" #include "base/message_loop_proxy.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/time.h" #include "base/utf_string_conversions.h" #include "net/base/net_errors.h" @@ -187,7 +187,7 @@ class DatabaseTracker_TestHelper_Test { public: static void TestDeleteOpenDatabase(bool incognito_mode) { // Initialize the tracker database. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = new quota::MockSpecialStoragePolicy; @@ -292,7 +292,7 @@ class DatabaseTracker_TestHelper_Test { static void TestDatabaseTracker(bool incognito_mode) { // Initialize the tracker database. - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy = new quota::MockSpecialStoragePolicy; @@ -441,7 +441,7 @@ class DatabaseTracker_TestHelper_Test { const string16 kName = ASCIIToUTF16("name"); const string16 kDescription = ASCIIToUTF16("description"); - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); // Initialize the tracker with a QuotaManagerProxy @@ -541,7 +541,7 @@ class DatabaseTracker_TestHelper_Test { // Initialize the tracker database. MessageLoop message_loop; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath origin1_db_dir; FilePath origin2_db_dir; @@ -619,7 +619,7 @@ class DatabaseTracker_TestHelper_Test { // Initialize the tracker database. MessageLoop message_loop; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath origin1_db_dir; FilePath origin2_db_dir; @@ -692,7 +692,7 @@ class DatabaseTracker_TestHelper_Test { // Initialize a tracker database, no need to put it on disk. const bool kUseInMemoryTrackerDatabase = true; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DatabaseTracker> tracker( new DatabaseTracker(temp_dir.path(), kUseInMemoryTrackerDatabase, @@ -738,7 +738,7 @@ class DatabaseTracker_TestHelper_Test { // Initialize a tracker database, no need to put it on disk. const bool kUseInMemoryTrackerDatabase = true; - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); scoped_refptr<DatabaseTracker> tracker( new DatabaseTracker(temp_dir.path(), kUseInMemoryTrackerDatabase, 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. diff --git a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc index 0c8b06c..3d24205 100644 --- a/webkit/fileapi/file_system_dir_url_request_job_unittest.cc +++ b/webkit/fileapi/file_system_dir_url_request_job_unittest.cc @@ -7,11 +7,11 @@ #include <string> #include "base/file_path.h" +#include "base/files/scoped_temp_dir.h" #include "base/format_macros.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/string_piece.h" #include "base/utf_string_conversions.h" #include "net/base/net_errors.h" @@ -212,7 +212,7 @@ class FileSystemDirURLRequestJobTest : public testing::Test { // leaks caused by tasks posted during shutdown. MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; net::URLRequestContext empty_context_; scoped_ptr<net::TestDelegate> delegate_; scoped_ptr<net::URLRequest> request_; diff --git a/webkit/fileapi/file_system_directory_database_unittest.cc b/webkit/fileapi/file_system_directory_database_unittest.cc index ab708fd..d5c31ae 100644 --- a/webkit/fileapi/file_system_directory_database_unittest.cc +++ b/webkit/fileapi/file_system_directory_database_unittest.cc @@ -8,9 +8,9 @@ #include <limits> #include "base/file_util.h" -#include "base/platform_file.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" -#include "base/scoped_temp_dir.h" +#include "base/platform_file.h" #include "base/string_number_conversions.h" #include "base/string_util.h" #include "testing/gtest/include/gtest/gtest.h" @@ -137,7 +137,7 @@ class FileSystemDirectoryDatabaseTest : public testing::Test { protected: // Common temp base for nondestructive uses. - ScopedTempDir base_; + base::ScopedTempDir base_; scoped_ptr<FileSystemDirectoryDatabase> db_; DISALLOW_COPY_AND_ASSIGN(FileSystemDirectoryDatabaseTest); diff --git a/webkit/fileapi/file_system_file_stream_reader_unittest.cc b/webkit/fileapi/file_system_file_stream_reader_unittest.cc index f95a1d5..c2de0cd 100644 --- a/webkit/fileapi/file_system_file_stream_reader_unittest.cc +++ b/webkit/fileapi/file_system_file_stream_reader_unittest.cc @@ -7,10 +7,10 @@ #include <limits> #include <string> +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "net/base/io_buffer.h" #include "net/base/net_errors.h" #include "net/base/test_completion_callback.h" @@ -151,7 +151,7 @@ class FileSystemFileStreamReaderTest : public testing::Test { } MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy_; scoped_refptr<FileSystemContext> file_system_context_; base::Time test_file_modification_time_; diff --git a/webkit/fileapi/file_system_file_util_unittest.cc b/webkit/fileapi/file_system_file_util_unittest.cc index e0bbb66..7e45cef 100644 --- a/webkit/fileapi/file_system_file_util_unittest.cc +++ b/webkit/fileapi/file_system_file_util_unittest.cc @@ -3,11 +3,11 @@ // found in the LICENSE file. #include "base/file_path.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_operation_context.h" @@ -49,7 +49,7 @@ class FileSystemFileUtilTest : public testing::Test { const GURL& src_origin, fileapi::FileSystemType src_type, const GURL& dest_origin, fileapi::FileSystemType dest_type, bool copy) { - ScopedTempDir base_dir; + base::ScopedTempDir base_dir; ASSERT_TRUE(base_dir.CreateUniqueTempDir()); scoped_ptr<ObfuscatedFileUtil> file_util( new ObfuscatedFileUtil(base_dir.path())); diff --git a/webkit/fileapi/file_system_mount_point_provider_unittest.cc b/webkit/fileapi/file_system_mount_point_provider_unittest.cc index f9cfb3b..a09f090 100644 --- a/webkit/fileapi/file_system_mount_point_provider_unittest.cc +++ b/webkit/fileapi/file_system_mount_point_provider_unittest.cc @@ -8,12 +8,12 @@ #include "base/basictypes.h" #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/sys_string_conversions.h" #include "base/utf_string_conversions.h" #include "googleurl/src/gurl.h" @@ -253,7 +253,7 @@ class FileSystemMountPointProviderTest : public testing::Test { } private: - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; base::WeakPtrFactory<FileSystemMountPointProviderTest> weak_factory_; diff --git a/webkit/fileapi/file_system_origin_database_unittest.cc b/webkit/fileapi/file_system_origin_database_unittest.cc index 68ad6e3..695bea8 100644 --- a/webkit/fileapi/file_system_origin_database_unittest.cc +++ b/webkit/fileapi/file_system_origin_database_unittest.cc @@ -9,8 +9,8 @@ #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/leveldatabase/src/db/filename.h" @@ -28,7 +28,7 @@ const FilePath::CharType kOriginDatabaseName[] = FILE_PATH_LITERAL("Origins"); } // namespace TEST(FileSystemOriginDatabaseTest, BasicTest) { - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); EXPECT_FALSE(file_util::PathExists(kFSDir)); @@ -58,7 +58,7 @@ TEST(FileSystemOriginDatabaseTest, BasicTest) { } TEST(FileSystemOriginDatabaseTest, TwoPathTest) { - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); EXPECT_FALSE(file_util::PathExists(kFSDir)); @@ -86,7 +86,7 @@ TEST(FileSystemOriginDatabaseTest, TwoPathTest) { } TEST(FileSystemOriginDatabaseTest, DropDatabaseTest) { - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); EXPECT_FALSE(file_util::PathExists(kFSDir)); @@ -114,7 +114,7 @@ TEST(FileSystemOriginDatabaseTest, DropDatabaseTest) { } TEST(FileSystemOriginDatabaseTest, DeleteOriginTest) { - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); EXPECT_FALSE(file_util::PathExists(kFSDir)); @@ -141,7 +141,7 @@ TEST(FileSystemOriginDatabaseTest, DeleteOriginTest) { } TEST(FileSystemOriginDatabaseTest, ListOriginsTest) { - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); EXPECT_FALSE(file_util::PathExists(kFSDir)); @@ -190,7 +190,7 @@ TEST(FileSystemOriginDatabaseTest, DatabaseRecoveryTest) { // After repairing, the origin database should be consistent even when some // entries lost. - ScopedTempDir dir; + base::ScopedTempDir dir; ASSERT_TRUE(dir.CreateUniqueTempDir()); const FilePath kFSDir = dir.path().Append(kFileSystemDirName); const FilePath kDBDir = kFSDir.Append(kOriginDatabaseName); diff --git a/webkit/fileapi/file_system_quota_client_unittest.cc b/webkit/fileapi/file_system_quota_client_unittest.cc index 1dd308f..4dc3383 100644 --- a/webkit/fileapi/file_system_quota_client_unittest.cc +++ b/webkit/fileapi/file_system_quota_client_unittest.cc @@ -2,13 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/bind.h" #include "base/basictypes.h" +#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/platform_file.h" -#include "base/scoped_temp_dir.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" @@ -251,7 +251,7 @@ class FileSystemQuotaClientTest : public testing::Test { deletion_status_ = status; } - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; scoped_refptr<FileSystemContext> file_system_context_; base::WeakPtrFactory<FileSystemQuotaClientTest> weak_factory_; diff --git a/webkit/fileapi/file_system_url_request_job_unittest.cc b/webkit/fileapi/file_system_url_request_job_unittest.cc index 7297194..b0091dc 100644 --- a/webkit/fileapi/file_system_url_request_job_unittest.cc +++ b/webkit/fileapi/file_system_url_request_job_unittest.cc @@ -9,13 +9,13 @@ #include "base/bind.h" #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/format_macros.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" #include "base/platform_file.h" #include "base/rand_util.h" -#include "base/scoped_temp_dir.h" #include "base/string_piece.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" @@ -197,7 +197,7 @@ class FileSystemURLRequestJobTest : public testing::Test { // Put the message loop at the top, so that it's the last thing deleted. MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; scoped_refptr<quota::MockSpecialStoragePolicy> special_storage_policy_; scoped_refptr<FileSystemContext> file_system_context_; base::WeakPtrFactory<FileSystemURLRequestJobTest> weak_factory_; diff --git a/webkit/fileapi/file_system_usage_cache_unittest.cc b/webkit/fileapi/file_system_usage_cache_unittest.cc index 90c6a4d..8662dc8 100644 --- a/webkit/fileapi/file_system_usage_cache_unittest.cc +++ b/webkit/fileapi/file_system_usage_cache_unittest.cc @@ -6,7 +6,7 @@ #include "base/basictypes.h" #include "base/file_util.h" -#include "base/scoped_temp_dir.h" +#include "base/files/scoped_temp_dir.h" #include "testing/gtest/include/gtest/gtest.h" namespace fileapi { @@ -25,7 +25,7 @@ class FileSystemUsageCacheTest : public testing::Test { } private: - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; DISALLOW_COPY_AND_ASSIGN(FileSystemUsageCacheTest); }; diff --git a/webkit/fileapi/file_writer_delegate_unittest.cc b/webkit/fileapi/file_writer_delegate_unittest.cc index 345f1ee..415c2d9 100644 --- a/webkit/fileapi/file_writer_delegate_unittest.cc +++ b/webkit/fileapi/file_writer_delegate_unittest.cc @@ -7,8 +7,8 @@ #include "base/basictypes.h" #include "base/bind.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "googleurl/src/gurl.h" #include "net/base/io_buffer.h" #include "net/url_request/url_request.h" @@ -128,7 +128,7 @@ class FileWriterDelegateTest : public PlatformTest { scoped_ptr<Result> result_; LocalFileSystemTestOriginHelper test_helper_; - ScopedTempDir dir_; + base::ScopedTempDir dir_; static const char* content_; }; diff --git a/webkit/fileapi/isolated_file_util_unittest.cc b/webkit/fileapi/isolated_file_util_unittest.cc index c8be5c9..9a5b48e 100644 --- a/webkit/fileapi/isolated_file_util_unittest.cc +++ b/webkit/fileapi/isolated_file_util_unittest.cc @@ -8,10 +8,10 @@ #include <vector> #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/logging.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/time.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" @@ -234,7 +234,7 @@ class IsolatedFileUtilTest : public testing::Test { filesystem_id_ = isolated_context()->RegisterDraggedFileSystem(toplevels); } - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; std::string filesystem_id_; scoped_refptr<FileSystemContext> file_system_context_; diff --git a/webkit/fileapi/local_file_stream_writer_unittest.cc b/webkit/fileapi/local_file_stream_writer_unittest.cc index e26eed9..2a7fa68 100644 --- a/webkit/fileapi/local_file_stream_writer_unittest.cc +++ b/webkit/fileapi/local_file_stream_writer_unittest.cc @@ -8,10 +8,10 @@ #include "base/callback.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/logging.h" -#include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" +#include "base/message_loop.h" #include "net/base/io_buffer.h" #include "net/base/test_completion_callback.h" #include "testing/gtest/include/gtest/gtest.h" @@ -67,7 +67,7 @@ class LocalFileStreamWriterTest : public testing::Test { private: MessageLoop message_loop_; - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; }; void NeverCalled(int unused) { diff --git a/webkit/fileapi/local_file_system_operation_unittest.cc b/webkit/fileapi/local_file_system_operation_unittest.cc index 6da4718..1fe046a 100644 --- a/webkit/fileapi/local_file_system_operation_unittest.cc +++ b/webkit/fileapi/local_file_system_operation_unittest.cc @@ -5,11 +5,11 @@ #include "webkit/fileapi/local_file_system_operation.h" #include "base/bind.h" +#include "base/files/scoped_temp_dir.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "base/string_number_conversions.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" @@ -22,8 +22,8 @@ #include "webkit/fileapi/file_util_helper.h" #include "webkit/fileapi/local_file_system_test_helper.h" #include "webkit/fileapi/mock_file_change_observer.h" -#include "webkit/quota/quota_manager.h" #include "webkit/quota/mock_quota_manager.h" +#include "webkit/quota/quota_manager.h" using quota::QuotaManager; using quota::QuotaManagerProxy; @@ -71,7 +71,7 @@ class LocalFileSystemOperationTest protected: // Common temp base for nondestructive uses. - ScopedTempDir base_; + base::ScopedTempDir base_; quota::MockQuotaManager* quota_manager() { return static_cast<quota::MockQuotaManager*>(quota_manager_.get()); diff --git a/webkit/fileapi/local_file_system_operation_write_unittest.cc b/webkit/fileapi/local_file_system_operation_write_unittest.cc index eb51b8b..6ba606d 100644 --- a/webkit/fileapi/local_file_system_operation_write_unittest.cc +++ b/webkit/fileapi/local_file_system_operation_write_unittest.cc @@ -4,11 +4,11 @@ #include <vector> +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request.h" #include "net/url_request/url_request_context.h" @@ -152,7 +152,7 @@ class LocalFileSystemOperationWriteTest MessageLoop loop_; - ScopedTempDir dir_; + base::ScopedTempDir dir_; FilePath virtual_path_; // For post-operation status. diff --git a/webkit/fileapi/local_file_system_quota_unittest.cc b/webkit/fileapi/local_file_system_quota_unittest.cc index 0b861d3..e848afb 100644 --- a/webkit/fileapi/local_file_system_quota_unittest.cc +++ b/webkit/fileapi/local_file_system_quota_unittest.cc @@ -8,12 +8,12 @@ // 3) the result of QuotaManager::GetUsageAndQuota. #include "base/bind.h" +#include "base/files/scoped_temp_dir.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/string_number_conversions.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_usage_cache.h" @@ -162,7 +162,7 @@ class LocalFileSystemQuotaTest LocalFileSystemTestOriginHelper test_helper_; - ScopedTempDir work_dir_; + base::ScopedTempDir work_dir_; MessageLoop message_loop_; scoped_refptr<quota::QuotaManager> quota_manager_; diff --git a/webkit/fileapi/local_file_util_unittest.cc b/webkit/fileapi/local_file_util_unittest.cc index 5dea512..9d29082 100644 --- a/webkit/fileapi/local_file_util_unittest.cc +++ b/webkit/fileapi/local_file_util_unittest.cc @@ -5,10 +5,10 @@ #include <string> #include "base/file_path.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/sys_string_conversions.h" #include "base/utf_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" @@ -97,7 +97,7 @@ class LocalFileUtilTest : public testing::Test { private: scoped_ptr<LocalFileUtil> local_file_util_; - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; LocalFileSystemTestOriginHelper test_helper_; diff --git a/webkit/fileapi/media/native_media_file_util_unittest.cc b/webkit/fileapi/media/native_media_file_util_unittest.cc index f14c7aa..6be9471 100644 --- a/webkit/fileapi/media/native_media_file_util_unittest.cc +++ b/webkit/fileapi/media/native_media_file_util_unittest.cc @@ -6,8 +6,8 @@ #include <string> #include "base/bind.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_operation.h" @@ -146,7 +146,7 @@ class NativeMediaFileUtilTest : public testing::Test { private: MessageLoop message_loop_; - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; scoped_refptr<FileSystemContext> file_system_context_; FileSystemFileUtil* file_util_; diff --git a/webkit/fileapi/obfuscated_file_util_unittest.cc b/webkit/fileapi/obfuscated_file_util_unittest.cc index df2ad66..afb5efd 100644 --- a/webkit/fileapi/obfuscated_file_util_unittest.cc +++ b/webkit/fileapi/obfuscated_file_util_unittest.cc @@ -9,10 +9,10 @@ #include "base/bind.h" #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/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/sys_string_conversions.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" @@ -495,7 +495,7 @@ class ObfuscatedFileUtilTest : public testing::Test { } void TestCopyInForeignFileHelper(bool overwrite) { - ScopedTempDir source_dir; + base::ScopedTempDir source_dir; ASSERT_TRUE(source_dir.CreateUniqueTempDir()); FilePath root_file_path = source_dir.path(); FilePath src_file_path = root_file_path.AppendASCII("file_name"); @@ -634,7 +634,7 @@ class ObfuscatedFileUtilTest : public testing::Test { } private: - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; ObfuscatedFileUtil* obfuscated_file_util_; scoped_refptr<quota::QuotaManager> quota_manager_; @@ -1412,7 +1412,7 @@ TEST_F(ObfuscatedFileUtilTest, TestEnumerator) { } TEST_F(ObfuscatedFileUtilTest, TestMigration) { - ScopedTempDir source_dir; + base::ScopedTempDir source_dir; ASSERT_TRUE(source_dir.CreateUniqueTempDir()); FilePath root_path = source_dir.path().AppendASCII("chrome-pLmnMWXE7NzTFRsn"); ASSERT_TRUE(file_util::CreateDirectory(root_path)); diff --git a/webkit/fileapi/sandbox_mount_point_provider_unittest.cc b/webkit/fileapi/sandbox_mount_point_provider_unittest.cc index 20f56c0..2e4f209 100644 --- a/webkit/fileapi/sandbox_mount_point_provider_unittest.cc +++ b/webkit/fileapi/sandbox_mount_point_provider_unittest.cc @@ -10,13 +10,13 @@ #include "base/basictypes.h" #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "googleurl/src/gurl.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/fileapi/file_system_context.h" @@ -59,7 +59,7 @@ class SandboxMountPointProviderOriginEnumeratorTest : public testing::Test { ASSERT_TRUE(file_util::DirectoryExists(target)); } - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; scoped_ptr<SandboxMountPointProvider> sandbox_provider_; }; @@ -329,7 +329,7 @@ class SandboxMountPointProviderMigrationTest : public testing::Test { } protected: - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; scoped_refptr<FileSystemContext> file_system_context_; base::WeakPtrFactory<SandboxMountPointProviderMigrationTest> weak_factory_; diff --git a/webkit/fileapi/syncable/canned_syncable_file_system.h b/webkit/fileapi/syncable/canned_syncable_file_system.h index 1e5de78..783bfa5 100644 --- a/webkit/fileapi/syncable/canned_syncable_file_system.h +++ b/webkit/fileapi/syncable/canned_syncable_file_system.h @@ -9,10 +9,10 @@ #include <vector> #include "base/callback_forward.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" #include "base/observer_list_threadsafe.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "webkit/fileapi/file_system_types.h" #include "webkit/fileapi/file_system_url.h" #include "webkit/fileapi/file_system_util.h" @@ -181,7 +181,7 @@ class CannedSyncableFileSystem void InitializeSyncStatusObserver(); - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; const std::string service_name_; scoped_refptr<quota::QuotaManager> quota_manager_; diff --git a/webkit/fileapi/syncable/local_file_change_tracker_unittest.cc b/webkit/fileapi/syncable/local_file_change_tracker_unittest.cc index ce37e60..cc54e8c 100644 --- a/webkit/fileapi/syncable/local_file_change_tracker_unittest.cc +++ b/webkit/fileapi/syncable/local_file_change_tracker_unittest.cc @@ -8,10 +8,10 @@ #include <set> #include "base/basictypes.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/blob/mock_blob_url_request_context.h" diff --git a/webkit/fileapi/syncable/local_file_sync_context_unittest.cc b/webkit/fileapi/syncable/local_file_sync_context_unittest.cc index 58be431..a61c141d 100644 --- a/webkit/fileapi/syncable/local_file_sync_context_unittest.cc +++ b/webkit/fileapi/syncable/local_file_sync_context_unittest.cc @@ -467,7 +467,7 @@ TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForDeletion) { } TEST_F(LocalFileSyncContextTest, ApplyRemoteChangeForAddOrUpdate) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); CannedSyncableFileSystem file_system(GURL(kOrigin1), kServiceName, diff --git a/webkit/fileapi/syncable/syncable_file_system_unittest.cc b/webkit/fileapi/syncable/syncable_file_system_unittest.cc index 5d42509..6accbd0 100644 --- a/webkit/fileapi/syncable/syncable_file_system_unittest.cc +++ b/webkit/fileapi/syncable/syncable_file_system_unittest.cc @@ -81,7 +81,7 @@ class SyncableFileSystemTest : public testing::Test { return file_system_context()->change_tracker(); } - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; MessageLoop message_loop_; CannedSyncableFileSystem file_system_; diff --git a/webkit/plugins/ppapi/quota_file_io_unittest.cc b/webkit/plugins/ppapi/quota_file_io_unittest.cc index aba1660..4a60db2 100644 --- a/webkit/plugins/ppapi/quota_file_io_unittest.cc +++ b/webkit/plugins/ppapi/quota_file_io_unittest.cc @@ -8,10 +8,10 @@ #include "base/basictypes.h" #include "base/bind.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "webkit/plugins/ppapi/mock_plugin_delegate.h" #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" #include "webkit/plugins/ppapi/ppapi_unittest.h" @@ -422,7 +422,7 @@ class QuotaFileIOTest : public PpapiUnittest { } private: - ScopedTempDir dir_; + base::ScopedTempDir dir_; PlatformFile file_; scoped_ptr<QuotaFileIO> quota_file_io_; std::deque<int> bytes_written_; diff --git a/webkit/quota/mock_quota_manager_unittest.cc b/webkit/quota/mock_quota_manager_unittest.cc index c606902..edd6642 100644 --- a/webkit/quota/mock_quota_manager_unittest.cc +++ b/webkit/quota/mock_quota_manager_unittest.cc @@ -7,10 +7,10 @@ #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "testing/gtest/include/gtest/gtest.h" #include "webkit/quota/mock_quota_manager.h" #include "webkit/quota/mock_special_storage_policy.h" @@ -99,7 +99,7 @@ class MockQuotaManagerTest : public testing::Test { private: MessageLoop message_loop_; - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; base::WeakPtrFactory<MockQuotaManagerTest> weak_factory_; scoped_refptr<MockQuotaManager> manager_; scoped_refptr<MockSpecialStoragePolicy> policy_; diff --git a/webkit/quota/quota_database_unittest.cc b/webkit/quota/quota_database_unittest.cc index 1e3e562..40e671c 100644 --- a/webkit/quota/quota_database_unittest.cc +++ b/webkit/quota/quota_database_unittest.cc @@ -9,8 +9,8 @@ #include "base/bind.h" #include "base/callback.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/message_loop.h" -#include "base/scoped_temp_dir.h" #include "googleurl/src/gurl.h" #include "sql/connection.h" #include "sql/meta_table.h" @@ -493,7 +493,7 @@ class QuotaDatabaseTest : public testing::Test { }; TEST_F(QuotaDatabaseTest, LazyOpen) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); LazyOpen(kDbFile); @@ -501,14 +501,14 @@ TEST_F(QuotaDatabaseTest, LazyOpen) { } TEST_F(QuotaDatabaseTest, UpgradeSchema) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); UpgradeSchemaV2toV3(kDbFile); } TEST_F(QuotaDatabaseTest, HostQuota) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); HostQuota(kDbFile); @@ -516,7 +516,7 @@ TEST_F(QuotaDatabaseTest, HostQuota) { } TEST_F(QuotaDatabaseTest, GlobalQuota) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); GlobalQuota(kDbFile); @@ -524,7 +524,7 @@ TEST_F(QuotaDatabaseTest, GlobalQuota) { } TEST_F(QuotaDatabaseTest, OriginLastAccessTimeLRU) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); OriginLastAccessTimeLRU(kDbFile); @@ -532,7 +532,7 @@ TEST_F(QuotaDatabaseTest, OriginLastAccessTimeLRU) { } TEST_F(QuotaDatabaseTest, OriginLastModifiedSince) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); OriginLastModifiedSince(kDbFile); @@ -540,7 +540,7 @@ TEST_F(QuotaDatabaseTest, OriginLastModifiedSince) { } TEST_F(QuotaDatabaseTest, BootstrapFlag) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); @@ -554,7 +554,7 @@ TEST_F(QuotaDatabaseTest, BootstrapFlag) { } TEST_F(QuotaDatabaseTest, RegisterInitialOriginInfo) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); RegisterInitialOriginInfo(kDbFile); @@ -562,7 +562,7 @@ TEST_F(QuotaDatabaseTest, RegisterInitialOriginInfo) { } TEST_F(QuotaDatabaseTest, DumpQuotaTable) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); DumpQuotaTable(kDbFile); @@ -570,7 +570,7 @@ TEST_F(QuotaDatabaseTest, DumpQuotaTable) { } TEST_F(QuotaDatabaseTest, DumpOriginInfoTable) { - ScopedTempDir data_dir; + base::ScopedTempDir data_dir; ASSERT_TRUE(data_dir.CreateUniqueTempDir()); const FilePath kDbFile = data_dir.path().AppendASCII("quota_manager.db"); DumpOriginInfoTable(kDbFile); diff --git a/webkit/quota/quota_manager_unittest.cc b/webkit/quota/quota_manager_unittest.cc index 99e0636..4e05604 100644 --- a/webkit/quota/quota_manager_unittest.cc +++ b/webkit/quota/quota_manager_unittest.cc @@ -8,11 +8,11 @@ #include "base/bind.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" #include "base/message_loop.h" #include "base/message_loop_proxy.h" -#include "base/scoped_temp_dir.h" #include "base/stl_util.h" #include "base/sys_info.h" #include "base/time.h" @@ -404,7 +404,7 @@ class QuotaManagerTest : public testing::Test { } MessageLoop message_loop_; - ScopedTempDir data_dir_; + base::ScopedTempDir data_dir_; base::WeakPtrFactory<QuotaManagerTest> weak_factory_; scoped_refptr<QuotaManager> quota_manager_; diff --git a/webkit/support/simple_database_system.h b/webkit/support/simple_database_system.h index f04a5fa..bd92fc2 100644 --- a/webkit/support/simple_database_system.h +++ b/webkit/support/simple_database_system.h @@ -6,10 +6,10 @@ #define WEBKIT_SUPPORT_SIMPLE_DATABASE_SYSTEM_H_ #include "base/file_path.h" +#include "base/files/scoped_temp_dir.h" #include "base/hash_tables.h" #include "base/memory/ref_counted.h" #include "base/platform_file.h" -#include "base/scoped_temp_dir.h" #include "base/string16.h" #include "base/synchronization/lock.h" #include "base/threading/thread.h" @@ -86,7 +86,7 @@ class SimpleDatabaseSystem : public webkit_database::DatabaseTracker::Observer, void ThreadCleanup(base::WaitableEvent* done_event); // Where the tracker database file and per origin database files reside. - ScopedTempDir temp_dir_; + base::ScopedTempDir temp_dir_; // All access to the db_tracker (except for its construction) and // vfs operations are serialized on a background thread. diff --git a/webkit/support/test_webkit_platform_support.cc b/webkit/support/test_webkit_platform_support.cc index 7437979..c379576 100644 --- a/webkit/support/test_webkit_platform_support.cc +++ b/webkit/support/test_webkit_platform_support.cc @@ -5,9 +5,9 @@ #include "webkit/support/test_webkit_platform_support.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/metrics/stats_counters.h" #include "base/path_service.h" -#include "base/scoped_temp_dir.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" #include "media/base/media.h" @@ -17,9 +17,11 @@ #include "third_party/hyphen/hyphen.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebAudioDevice.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" @@ -28,8 +30,6 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageArea.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" #include "v8/include/v8.h" #include "webkit/appcache/web_application_cache_host_impl.h" #include "webkit/database/vfs_backend.h" @@ -40,18 +40,18 @@ #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" #include "webkit/plugins/npapi/plugin_list.h" -#include "webkit/support/simple_database_system.h" #include "webkit/support/gc_extension.h" +#include "webkit/support/simple_database_system.h" #include "webkit/support/test_webmessageportchannel.h" -#include "webkit/support/webkit_support.h" -#include "webkit/support/weburl_loader_mock_factory.h" #include "webkit/support/web_audio_device_mock.h" #include "webkit/support/web_gesture_curve_mock.h" +#include "webkit/support/webkit_support.h" +#include "webkit/support/weburl_loader_mock_factory.h" #include "webkit/tools/test_shell/mock_webclipboard_impl.h" #include "webkit/tools/test_shell/simple_appcache_system.h" #include "webkit/tools/test_shell/simple_file_system.h" -#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" +#include "webkit/tools/test_shell/simple_socket_stream_bridge.h" #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" #include "webkit/tools/test_shell/test_shell_request_context.h" #include "webkit/tools/test_shell/test_shell_webblobregistry_impl.h" @@ -391,7 +391,7 @@ class TestWebIDBFactory : public WebKit::WebIDBFactory { } private: scoped_ptr<WebIDBFactory> factory_; - ScopedTempDir indexed_db_dir_; + base::ScopedTempDir indexed_db_dir_; WebString data_dir_; }; diff --git a/webkit/support/test_webkit_platform_support.h b/webkit/support/test_webkit_platform_support.h index ecf5dcb..a16263d 100644 --- a/webkit/support/test_webkit_platform_support.h +++ b/webkit/support/test_webkit_platform_support.h @@ -138,14 +138,14 @@ class TestWebKitPlatformSupport : TestShellWebMimeRegistryImpl mime_registry_; MockWebClipboardImpl mock_clipboard_; webkit_glue::WebFileUtilitiesImpl file_utilities_; - ScopedTempDir appcache_dir_; + base::ScopedTempDir appcache_dir_; SimpleAppCacheSystem appcache_system_; SimpleDatabaseSystem database_system_; SimpleDomStorageSystem dom_storage_system_; SimpleWebCookieJarImpl cookie_jar_; scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; SimpleFileSystem file_system_; - ScopedTempDir file_system_root_; + base::ScopedTempDir file_system_root_; WebURLLoaderMockFactory url_loader_factory_; bool unit_test_mode_; WebKit::WebGamepads gamepad_data_; diff --git a/webkit/support/webkit_support.cc b/webkit/support/webkit_support.cc index f2f6a55..510c50f 100644 --- a/webkit/support/webkit_support.cc +++ b/webkit/support/webkit_support.cc @@ -13,6 +13,7 @@ #include "base/debug/stack_trace.h" #include "base/file_path.h" #include "base/file_util.h" +#include "base/files/scoped_temp_dir.h" #include "base/i18n/icu_util.h" #include "base/logging.h" #include "base/memory/ref_counted.h" @@ -20,7 +21,6 @@ #include "base/message_loop.h" #include "base/path_service.h" #include "base/process_util.h" -#include "base/scoped_temp_dir.h" #include "base/string_piece.h" #include "base/string_util.h" #include "base/stringprintf.h" @@ -36,13 +36,13 @@ #include "net/base/net_errors.h" #include "net/base/net_util.h" #include "testing/gtest/include/gtest/gtest.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallbacks.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.h" #if defined(TOOLKIT_GTK) #include "ui/base/keycodes/keyboard_code_conversion_gtk.h" #endif @@ -710,7 +710,7 @@ WebURL LocalFileToDataURL(const WebURL& fileUrl) { return WebURL(GURL(kDataUrlPrefix + contents_base64)); } -// A wrapper object for exporting ScopedTempDir to be used +// A wrapper object for exporting base::ScopedTempDir to be used // by webkit layout tests. class ScopedTempDirectoryInternal : public ScopedTempDirectory { public: @@ -723,7 +723,7 @@ class ScopedTempDirectoryInternal : public ScopedTempDirectory { } private: - ScopedTempDir tempDirectory_; + base::ScopedTempDir tempDirectory_; }; ScopedTempDirectory* CreateScopedTempDirectory() { diff --git a/webkit/support/webkit_support.h b/webkit/support/webkit_support.h index 18244e2..b1215ed 100644 --- a/webkit/support/webkit_support.h +++ b/webkit/support/webkit_support.h @@ -11,11 +11,11 @@ #include "base/string16.h" #include "third_party/WebKit/Source/Platform/chromium/public/Platform.h" #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h" -#include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClient.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRequest.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" +#include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClient.h" #include "ui/base/keycodes/keyboard_codes.h" namespace WebKit { diff --git a/webkit/tools/test_shell/simple_file_system.h b/webkit/tools/test_shell/simple_file_system.h index 548d8db..c986786 100644 --- a/webkit/tools/test_shell/simple_file_system.h +++ b/webkit/tools/test_shell/simple_file_system.h @@ -5,15 +5,15 @@ #ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ #define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_SYSTEM_H_ +#include <vector> #include "base/file_util_proxy.h" +#include "base/files/scoped_temp_dir.h" #include "base/id_map.h" #include "base/memory/weak_ptr.h" -#include "base/scoped_temp_dir.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSystem.h" #include "webkit/fileapi/file_system_context.h" #include "webkit/fileapi/file_system_operation.h" #include "webkit/fileapi/file_system_types.h" -#include <vector> namespace WebKit { class WebFileSystemCallbacks; @@ -148,7 +148,7 @@ class SimpleFileSystem const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref); // A temporary directory for FileSystem API. - ScopedTempDir file_system_dir_; + base::ScopedTempDir file_system_dir_; scoped_refptr<fileapi::FileSystemContext> file_system_context_; diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h index a93ef3f..58118ab 100644 --- a/webkit/tools/test_shell/test_shell.h +++ b/webkit/tools/test_shell/test_shell.h @@ -13,13 +13,11 @@ #include "base/basictypes.h" #include "base/file_path.h" -#include "base/scoped_temp_dir.h" -#include "base/string_piece.h" -#if defined(OS_MACOSX) +#include "base/files/scoped_temp_dir.h" #include "base/lazy_instance.h" -#endif #include "base/memory/ref_counted.h" #include "base/memory/weak_ptr.h" +#include "base/string_piece.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h" #include "ui/gfx/native_widget_types.h" #include "webkit/tools/test_shell/webview_host.h" diff --git a/webkit/tools/test_shell/test_shell_webkit_init.h b/webkit/tools/test_shell/test_shell_webkit_init.h index 951fc74..937375c 100644 --- a/webkit/tools/test_shell/test_shell_webkit_init.h +++ b/webkit/tools/test_shell/test_shell_webkit_init.h @@ -109,7 +109,7 @@ class TestShellWebKitInit : public webkit_glue::WebKitPlatformSupportImpl { SimpleClipboardClient clipboard_client_; webkit_glue::WebClipboardImpl real_clipboard_; webkit_glue::WebFileUtilitiesImpl file_utilities_; - ScopedTempDir appcache_dir_; + base::ScopedTempDir appcache_dir_; SimpleAppCacheSystem appcache_system_; SimpleDatabaseSystem database_system_; SimpleDomStorageSystem dom_storage_system_; |