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 /base/platform_file_unittest.cc | |
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 'base/platform_file_unittest.cc')
-rw-r--r-- | base/platform_file_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/base/platform_file_unittest.cc b/base/platform_file_unittest.cc index 671deb0..3b07c98 100644 --- a/base/platform_file_unittest.cc +++ b/base/platform_file_unittest.cc @@ -3,8 +3,8 @@ // found in the LICENSE file. #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/time.h" #include "testing/gtest/include/gtest/gtest.h" @@ -26,7 +26,7 @@ int WriteFully(base::PlatformFile file, int64 offset, } // namespace TEST(PlatformFile, CreatePlatformFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); @@ -95,7 +95,7 @@ TEST(PlatformFile, CreatePlatformFile) { } TEST(PlatformFile, DeleteOpenFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); @@ -131,7 +131,7 @@ TEST(PlatformFile, DeleteOpenFile) { } TEST(PlatformFile, ReadWritePlatformFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().AppendASCII("read_write_file"); base::PlatformFile file = base::CreatePlatformFile( @@ -210,7 +210,7 @@ TEST(PlatformFile, ReadWritePlatformFile) { } TEST(PlatformFile, TruncatePlatformFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); FilePath file_path = temp_dir.path().AppendASCII("truncate_file"); base::PlatformFile file = base::CreatePlatformFile( @@ -261,7 +261,7 @@ TEST(PlatformFile, TruncatePlatformFile) { // Flakily fails: http://crbug.com/86494 TEST(PlatformFile, DISABLED_TouchGetInfoPlatformFile) { - ScopedTempDir temp_dir; + base::ScopedTempDir temp_dir; ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); base::PlatformFile file = base::CreatePlatformFile( temp_dir.path().AppendASCII("touch_get_info_file"), |