diff options
author | maf@google.com <maf@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 00:40:56 +0000 |
---|---|---|
committer | maf@google.com <maf@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 00:40:56 +0000 |
commit | 9b9c9b5cf3693654c4fec4a058dfaa62fee9737b (patch) | |
tree | e3b9bfbd92391e7bbf54020a4cbf20b45dd3badd /o3d | |
parent | c33eedd6efdc6456723f9de445d5d60dfe314ebf (diff) | |
download | chromium_src-9b9c9b5cf3693654c4fec4a058dfaa62fee9737b.zip chromium_src-9b9c9b5cf3693654c4fec4a058dfaa62fee9737b.tar.gz chromium_src-9b9c9b5cf3693654c4fec4a058dfaa62fee9737b.tar.bz2 |
Fix build breakage concerning CreateTemporaryFile vs CreateTemporaryFileName.
Review URL: http://codereview.chromium.org/193122
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d')
-rw-r--r-- | o3d/utils/cross/temporary_file.cc | 2 | ||||
-rw-r--r-- | o3d/utils/cross/temporary_file_test.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/o3d/utils/cross/temporary_file.cc b/o3d/utils/cross/temporary_file.cc index 0bb010b..afb4b61 100644 --- a/o3d/utils/cross/temporary_file.cc +++ b/o3d/utils/cross/temporary_file.cc @@ -57,7 +57,7 @@ TemporaryFile::TemporaryFile(const FilePath& file_to_manage) bool TemporaryFile::Create(TemporaryFile* temporary_file) { FilePath temporary_path; - if (file_util::CreateTemporaryFile(&temporary_path)) { + if (file_util::CreateTemporaryFileName(&temporary_path)) { temporary_file->Reset(temporary_path); } else { return false; diff --git a/o3d/utils/cross/temporary_file_test.cc b/o3d/utils/cross/temporary_file_test.cc index 07cadb4..bdbe492 100644 --- a/o3d/utils/cross/temporary_file_test.cc +++ b/o3d/utils/cross/temporary_file_test.cc @@ -50,7 +50,7 @@ TEST_F(TemporaryFileTest, BasicConstruction) { TEST_F(TemporaryFileTest, BasicFunction) { FilePath path; - file_util::CreateTemporaryFile(&path); + file_util::CreateTemporaryFileName(&path); EXPECT_TRUE(file_util::PathExists(path)); { TemporaryFile temporary_file(path); @@ -64,8 +64,8 @@ TEST_F(TemporaryFileTest, BasicFunction) { TEST_F(TemporaryFileTest, Reset) { FilePath path; FilePath path1; - file_util::CreateTemporaryFile(&path); - file_util::CreateTemporaryFile(&path1); + file_util::CreateTemporaryFileName(&path); + file_util::CreateTemporaryFileName(&path1); EXPECT_TRUE(file_util::PathExists(path)); EXPECT_TRUE(file_util::PathExists(path1)); { @@ -86,7 +86,7 @@ TEST_F(TemporaryFileTest, Reset) { TEST_F(TemporaryFileTest, Release) { FilePath path; - file_util::CreateTemporaryFile(&path); + file_util::CreateTemporaryFileName(&path); EXPECT_TRUE(file_util::PathExists(path)); { TemporaryFile temporary_file(path); |