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 /chrome_frame | |
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 'chrome_frame')
-rw-r--r-- | chrome_frame/test/dll_redirector_loading_test.cc | 6 | ||||
-rw-r--r-- | chrome_frame/test/net/fake_external_tab.cc | 4 | ||||
-rw-r--r-- | chrome_frame/test/test_with_web_server.cc | 3 | ||||
-rw-r--r-- | chrome_frame/test/test_with_web_server.h | 6 |
4 files changed, 10 insertions, 9 deletions
diff --git a/chrome_frame/test/dll_redirector_loading_test.cc b/chrome_frame/test/dll_redirector_loading_test.cc index 9c46425..8588e12 100644 --- a/chrome_frame/test/dll_redirector_loading_test.cc +++ b/chrome_frame/test/dll_redirector_loading_test.cc @@ -9,9 +9,9 @@ #include "base/file_path.h" #include "base/file_util.h" #include "base/file_version_info.h" +#include "base/files/scoped_temp_dir.h" #include "base/path_service.h" #include "base/scoped_native_library.h" -#include "base/scoped_temp_dir.h" #include "base/shared_memory.h" #include "base/string_util.h" #include "base/version.h" @@ -113,14 +113,14 @@ class DllRedirectorLoadingTest : public testing::Test { static scoped_ptr<Version> original_version_; static scoped_ptr<Version> new_version_; - static ScopedTempDir temp_dir_; + static base::ScopedTempDir temp_dir_; }; // class DllRedirectorLoadingTest FilePath DllRedirectorLoadingTest::original_chrome_frame_dll_; FilePath DllRedirectorLoadingTest::new_chrome_frame_dll_; scoped_ptr<Version> DllRedirectorLoadingTest::original_version_; scoped_ptr<Version> DllRedirectorLoadingTest::new_version_; -ScopedTempDir DllRedirectorLoadingTest::temp_dir_; +base::ScopedTempDir DllRedirectorLoadingTest::temp_dir_; #if defined(COMPONENT_BUILD) // Disabling since npchrome_frame.dll's DllMain can't handle being loaded into diff --git a/chrome_frame/test/net/fake_external_tab.cc b/chrome_frame/test/net/fake_external_tab.cc index 99c9643..2e2876d 100644 --- a/chrome_frame/test/net/fake_external_tab.cc +++ b/chrome_frame/test/net/fake_external_tab.cc @@ -14,12 +14,12 @@ #include "base/debug/debugger.h" #include "base/file_util.h" #include "base/file_version_info.h" +#include "base/files/scoped_temp_dir.h" #include "base/i18n/icu_util.h" #include "base/lazy_instance.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #include "base/prefs/json_pref_store.h" -#include "base/scoped_temp_dir.h" #include "base/string_piece.h" #include "base/string_util.h" #include "base/stringprintf.h" @@ -379,7 +379,7 @@ class FakeBrowserProcessImpl : public BrowserProcessImpl { } private: - ScopedTempDir profiles_dir_; + base::ScopedTempDir profiles_dir_; scoped_ptr<ProfileManager> profile_manager_; }; diff --git a/chrome_frame/test/test_with_web_server.cc b/chrome_frame/test/test_with_web_server.cc index 5aca036..ff41daa 100644 --- a/chrome_frame/test/test_with_web_server.cc +++ b/chrome_frame/test/test_with_web_server.cc @@ -6,6 +6,7 @@ #include "base/base_paths.h" #include "base/file_version_info.h" +#include "base/files/scoped_temp_dir.h" #include "base/path_service.h" #include "base/stringprintf.h" #include "base/test/test_timeouts.h" @@ -75,7 +76,7 @@ FilePath ChromeFrameTestWithWebServer::test_file_path_; FilePath ChromeFrameTestWithWebServer::results_dir_; FilePath ChromeFrameTestWithWebServer::CFInstall_path_; FilePath ChromeFrameTestWithWebServer::CFInstance_path_; -ScopedTempDir ChromeFrameTestWithWebServer::temp_dir_; +base::ScopedTempDir ChromeFrameTestWithWebServer::temp_dir_; FilePath ChromeFrameTestWithWebServer::chrome_user_data_dir_; chrome_frame_test::TimedMsgLoop* ChromeFrameTestWithWebServer::loop_; std::string ChromeFrameTestWithWebServer::local_address_; diff --git a/chrome_frame/test/test_with_web_server.h b/chrome_frame/test/test_with_web_server.h index 821afe9..fe03b0f 100644 --- a/chrome_frame/test/test_with_web_server.h +++ b/chrome_frame/test/test_with_web_server.h @@ -8,7 +8,7 @@ #include <windows.h> #include <string> -#include "base/scoped_temp_dir.h" +#include "base/files/scoped_temp_dir.h" #include "base/string_util.h" #include "base/stringprintf.h" #include "base/utf_string_conversions.h" @@ -16,8 +16,8 @@ #include "chrome_frame/chrome_tab.h" #include "chrome_frame/test/chrome_frame_test_utils.h" #include "chrome_frame/test/test_server.h" -#include "testing/gtest/include/gtest/gtest.h" #include "testing/gmock/include/gmock/gmock.h" +#include "testing/gtest/include/gtest/gtest.h" // Specifies the invocation method for CF. class CFInvocation { @@ -238,7 +238,7 @@ class ChromeFrameTestWithWebServer : public testing::Test { static FilePath chrome_user_data_dir_; // The user data directory used for Chrome instances. - static ScopedTempDir temp_dir_; + static base::ScopedTempDir temp_dir_; // The web server from which we serve the web! static chrome_frame_test::TimedMsgLoop* loop_; |