summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--o3d/utils/cross/temporary_file.cc2
-rw-r--r--o3d/utils/cross/temporary_file_test.cc8
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);