summaryrefslogtreecommitdiffstats
path: root/base/file_util_unittest.cc
diff options
context:
space:
mode:
authorerikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 16:07:55 +0000
committererikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 16:07:55 +0000
commit33edeab42b851a5617a77caa1d65a3782a01ee7b (patch)
treed1baa44ff796c9f0c4881e9819e7e5b359489b1d /base/file_util_unittest.cc
parentf348b92e95dd67fef3a9a6109bc0465fb4078d6b (diff)
downloadchromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.zip
chromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.tar.gz
chromium_src-33edeab42b851a5617a77caa1d65a3782a01ee7b.tar.bz2
Renames the function CreateTemporaryFilename to CreateTemporaryFile and track down all callers, also removes the
deprecated function that uses std::wstring. BUG=3078 (http://crbug.com/3078) TEST=run base_unittests, installer_util_unittests, net_unittests, setup_unittests, and unit_tests. Review URL: http://codereview.chromium.org/164537 Patch from Thiago Farina. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r--base/file_util_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc
index 7dff868..b1f7822 100644
--- a/base/file_util_unittest.cc
+++ b/base/file_util_unittest.cc
@@ -777,10 +777,10 @@ TEST_F(FileUtilTest, CopyAndDeleteDirectoryTest) {
}
#endif
-TEST_F(FileUtilTest, CreateTemporaryFileNameTest) {
- std::wstring temp_files[3];
+TEST_F(FileUtilTest, CreateTemporaryFileTest) {
+ FilePath temp_files[3];
for (int i = 0; i < 3; i++) {
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&(temp_files[i])));
+ ASSERT_TRUE(file_util::CreateTemporaryFile(&(temp_files[i])));
EXPECT_TRUE(file_util::PathExists(temp_files[i]));
EXPECT_FALSE(file_util::DirectoryExists(temp_files[i]));
}
@@ -790,7 +790,7 @@ TEST_F(FileUtilTest, CreateTemporaryFileNameTest) {
EXPECT_TRUE(file_util::Delete(temp_files[i], false));
}
-TEST_F(FileUtilTest, CreateAndOpenTemporaryFileNameTest) {
+TEST_F(FileUtilTest, CreateAndOpenTemporaryFileTest) {
FilePath names[3];
FILE *fps[3];
int i;