From 03d9afc0b775748203170a27014a3ee3500aecc2 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 3 Dec 2013 17:55:52 +0000 Subject: Move temp file functions to base namespace. BUG= Review URL: https://codereview.chromium.org/99923002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238427 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/host/config_file_watcher_unittest.cc | 4 ++-- remoting/host/pairing_registry_delegate_linux_unittest.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'remoting') diff --git a/remoting/host/config_file_watcher_unittest.cc b/remoting/host/config_file_watcher_unittest.cc index 1d349a3..2eaffd6 100644 --- a/remoting/host/config_file_watcher_unittest.cc +++ b/remoting/host/config_file_watcher_unittest.cc @@ -94,7 +94,7 @@ void ConfigFileWatcherTest::TearDown() { // Verifies that the initial notification is delivered. TEST_F(ConfigFileWatcherTest, Basic) { - EXPECT_TRUE(file_util::CreateTemporaryFile(&config_file_)); + EXPECT_TRUE(base::CreateTemporaryFile(&config_file_)); std::string data("test"); EXPECT_NE(file_util::WriteFile(config_file_, data.c_str(), @@ -116,7 +116,7 @@ MATCHER_P(EqualsString, s, "") { // Verifies that an update notification is sent when the file is changed. TEST_F(ConfigFileWatcherTest, Update) { - EXPECT_TRUE(file_util::CreateTemporaryFile(&config_file_)); + EXPECT_TRUE(base::CreateTemporaryFile(&config_file_)); EXPECT_CALL(delegate_, OnConfigUpdated(EqualsString("test"))) .Times(1) diff --git a/remoting/host/pairing_registry_delegate_linux_unittest.cc b/remoting/host/pairing_registry_delegate_linux_unittest.cc index 70cd558..5ca9c94 100644 --- a/remoting/host/pairing_registry_delegate_linux_unittest.cc +++ b/remoting/host/pairing_registry_delegate_linux_unittest.cc @@ -19,7 +19,7 @@ class PairingRegistryDelegateLinuxTest : public testing::Test { // Create a temporary directory in order to get a unique name and use a // subdirectory to ensure that PairingRegistryDelegateLinux::Save() creates // the parent directory if it doesn't exist. - file_util::CreateNewTempDirectory("chromoting-test", &temp_dir_); + base::CreateNewTempDirectory("chromoting-test", &temp_dir_); temp_registry_ = temp_dir_.Append("paired-clients"); } -- cgit v1.1