diff options
author | thestig <thestig@chromium.org> | 2014-08-23 15:18:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-23 22:19:28 +0000 |
commit | d19a1692e6b582d8caf07e24c77e95b0e3355d0f (patch) | |
tree | ac22b595f085e2425fa4f38561e35ea101a0ec37 | |
parent | f080b5b78fd221901d34f179100bdf0e6827aa31 (diff) | |
download | chromium_src-d19a1692e6b582d8caf07e24c77e95b0e3355d0f.zip chromium_src-d19a1692e6b582d8caf07e24c77e95b0e3355d0f.tar.gz chromium_src-d19a1692e6b582d8caf07e24c77e95b0e3355d0f.tar.bz2 |
Change base/file_utils.h includes to base/files/file_utils.h in chrome/, part 2.
Review URL: https://codereview.chromium.org/497083004
Cr-Commit-Position: refs/heads/master@{#291609}
46 files changed, 121 insertions, 116 deletions
diff --git a/chrome/browser/chrome_plugin_interactive_test.cc b/chrome/browser/chrome_plugin_interactive_test.cc index 0967d58..d06b30e 100644 --- a/chrome/browser/chrome_plugin_interactive_test.cc +++ b/chrome/browser/chrome_plugin_interactive_test.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/memory/ref_counted.h" #include "base/path_service.h" #include "base/prefs/pref_service.h" diff --git a/chrome/installer/launcher_support/chrome_launcher_support.cc b/chrome/installer/launcher_support/chrome_launcher_support.cc index 9e9ba92..9574ae1 100644 --- a/chrome/installer/launcher_support/chrome_launcher_support.cc +++ b/chrome/installer/launcher_support/chrome_launcher_support.cc @@ -6,8 +6,8 @@ #include <windows.h> -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/strings/string16.h" #include "base/win/registry.h" diff --git a/chrome/installer/setup/archive_patch_helper.cc b/chrome/installer/setup/archive_patch_helper.cc index 4ef6bc4..959be3a 100644 --- a/chrome/installer/setup/archive_patch_helper.cc +++ b/chrome/installer/setup/archive_patch_helper.cc @@ -4,7 +4,7 @@ #include "chrome/installer/setup/archive_patch_helper.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "chrome/installer/util/lzma_util.h" #include "courgette/courgette.h" diff --git a/chrome/installer/setup/archive_patch_helper_unittest.cc b/chrome/installer/setup/archive_patch_helper_unittest.cc index 17ff003..9dd4f08 100644 --- a/chrome/installer/setup/archive_patch_helper_unittest.cc +++ b/chrome/installer/setup/archive_patch_helper_unittest.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/path_service.h" #include "chrome/common/chrome_paths.h" diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc index f1ab38d..a1bbed7 100644 --- a/chrome/installer/setup/install.cc +++ b/chrome/installer/setup/install.cc @@ -10,8 +10,8 @@ #include <string> -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/numerics/safe_conversions.h" diff --git a/chrome/installer/setup/install_unittest.cc b/chrome/installer/setup/install_unittest.cc index 54b3629..e617a19 100644 --- a/chrome/installer/setup/install_unittest.cc +++ b/chrome/installer/setup/install_unittest.cc @@ -6,8 +6,8 @@ #include <string> -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/setup/install_worker.cc b/chrome/installer/setup/install_worker.cc index 727d4fe..d336630 100644 --- a/chrome/installer/setup/install_worker.cc +++ b/chrome/installer/setup/install_worker.cc @@ -15,8 +15,8 @@ #include "base/bind.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc index eda79e5..b02be69 100644 --- a/chrome/installer/setup/setup_main.cc +++ b/chrome/installer/setup/setup_main.cc @@ -14,9 +14,9 @@ #include "base/at_exit.h" #include "base/basictypes.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/file_version_info.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/setup/setup_util.cc b/chrome/installer/setup/setup_util.cc index 3f9c937..3a7bde7 100644 --- a/chrome/installer/setup/setup_util.cc +++ b/chrome/installer/setup/setup_util.cc @@ -10,9 +10,9 @@ #include "base/command_line.h" #include "base/cpu.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/process/kill.h" #include "base/process/launch.h" diff --git a/chrome/installer/setup/setup_util_unittest.cc b/chrome/installer/setup/setup_util_unittest.cc index 7f58d89..345441b8 100644 --- a/chrome/installer/setup/setup_util_unittest.cc +++ b/chrome/installer/setup/setup_util_unittest.cc @@ -9,7 +9,7 @@ #include <string> #include "base/command_line.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/process/kill.h" @@ -21,8 +21,8 @@ #include "base/version.h" #include "base/win/scoped_handle.h" #include "base/win/windows_version.h" -#include "chrome/installer/setup/setup_util.h" #include "chrome/installer/setup/setup_constants.h" +#include "chrome/installer/setup/setup_util.h" #include "chrome/installer/util/google_update_constants.h" #include "chrome/installer/util/installation_state.h" #include "chrome/installer/util/installer_state.h" diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc index ce02a20..c06a2fc 100644 --- a/chrome/installer/setup/uninstall.cc +++ b/chrome/installer/setup/uninstall.cc @@ -11,8 +11,8 @@ #include <vector> #include "base/base_paths.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/path_service.h" #include "base/process/kill.h" #include "base/strings/string16.h" diff --git a/chrome/installer/test/alternate_version_generator.cc b/chrome/installer/test/alternate_version_generator.cc index b5035bb..0d505c8 100644 --- a/chrome/installer/test/alternate_version_generator.cc +++ b/chrome/installer/test/alternate_version_generator.cc @@ -33,10 +33,10 @@ #include "base/basictypes.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "base/process/launch.h" diff --git a/chrome/installer/test/alternate_version_generator_main.cc b/chrome/installer/test/alternate_version_generator_main.cc index 85d925c..7d819f0 100644 --- a/chrome/installer/test/alternate_version_generator_main.cc +++ b/chrome/installer/test/alternate_version_generator_main.cc @@ -11,8 +11,8 @@ #include "base/at_exit.h" #include "base/basictypes.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "chrome/installer/test/alternate_version_generator.h" diff --git a/chrome/installer/test/upgrade_test.cc b/chrome/installer/test/upgrade_test.cc index d50089f..b599521 100644 --- a/chrome/installer/test/upgrade_test.cc +++ b/chrome/installer/test/upgrade_test.cc @@ -5,8 +5,8 @@ // Boilerplate for an upgrade scenario test. The mini_installer.exe residing in // the same directory as the host executable is re-versioned. -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/path_service.h" #include "chrome/installer/test/alternate_version_generator.h" #include "testing/gtest/include/gtest/gtest.h" diff --git a/chrome/installer/tools/validate_installation_main.cc b/chrome/installer/tools/validate_installation_main.cc index 65cb42a..dc95aaa 100644 --- a/chrome/installer/tools/validate_installation_main.cc +++ b/chrome/installer/tools/validate_installation_main.cc @@ -11,7 +11,7 @@ #include "base/at_exit.h" #include "base/command_line.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "chrome/installer/util/installation_validator.h" diff --git a/chrome/installer/util/chrome_browser_operations.cc b/chrome/installer/util/chrome_browser_operations.cc index fc34094..5f2a262 100644 --- a/chrome/installer/util/chrome_browser_operations.cc +++ b/chrome/installer/util/chrome_browser_operations.cc @@ -5,8 +5,8 @@ #include "chrome/installer/util/chrome_browser_operations.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/strings/string_util.h" #include "chrome/installer/util/browser_distribution.h" diff --git a/chrome/installer/util/conditional_work_item_list.cc b/chrome/installer/util/conditional_work_item_list.cc index 56c8617..ad66944 100644 --- a/chrome/installer/util/conditional_work_item_list.cc +++ b/chrome/installer/util/conditional_work_item_list.cc @@ -4,7 +4,7 @@ #include "chrome/installer/util/conditional_work_item_list.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" ConditionalWorkItemList::ConditionalWorkItemList(Condition* condition) diff --git a/chrome/installer/util/copy_tree_work_item.cc b/chrome/installer/util/copy_tree_work_item.cc index 1ec3c8a..88bc244 100644 --- a/chrome/installer/util/copy_tree_work_item.cc +++ b/chrome/installer/util/copy_tree_work_item.cc @@ -6,7 +6,7 @@ #include <shlwapi.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "chrome/installer/util/logging_installer.h" diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc index 72bdc56..d89a03a 100644 --- a/chrome/installer/util/copy_tree_work_item_unittest.cc +++ b/chrome/installer/util/copy_tree_work_item_unittest.cc @@ -7,7 +7,7 @@ #include <fstream> #include "base/base_paths.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" @@ -19,59 +19,61 @@ #include "testing/gtest/include/gtest/gtest.h" namespace { - class CopyTreeWorkItemTest : public testing::Test { - protected: - virtual void SetUp() { - ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); - ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); - } - - virtual void TearDown() { - logging::CloseLogFile(); - } - - // the path to temporary directory used to contain the test operations - base::ScopedTempDir test_dir_; - base::ScopedTempDir temp_dir_; - }; - - // Simple function to dump some text into a new file. - void CreateTextFile(const std::wstring& filename, - const std::wstring& contents) { - std::ofstream file; - file.open(filename.c_str()); - ASSERT_TRUE(file.is_open()); - file << contents; - file.close(); + +class CopyTreeWorkItemTest : public testing::Test { + protected: + virtual void SetUp() { + ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); + ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); } - bool IsFileInUse(const base::FilePath& path) { - if (!base::PathExists(path)) - return false; + virtual void TearDown() { + logging::CloseLogFile(); + } - HANDLE handle = ::CreateFile(path.value().c_str(), FILE_ALL_ACCESS, - NULL, NULL, OPEN_EXISTING, NULL, NULL); - if (handle == INVALID_HANDLE_VALUE) - return true; + // the path to temporary directory used to contain the test operations + base::ScopedTempDir test_dir_; + base::ScopedTempDir temp_dir_; +}; - CloseHandle(handle); +// Simple function to dump some text into a new file. +void CreateTextFile(const std::wstring& filename, + const std::wstring& contents) { + std::ofstream file; + file.open(filename.c_str()); + ASSERT_TRUE(file.is_open()); + file << contents; + file.close(); +} + +bool IsFileInUse(const base::FilePath& path) { + if (!base::PathExists(path)) return false; - } - // Simple function to read text from a file. - std::wstring ReadTextFile(const std::wstring& filename) { - WCHAR contents[64]; - std::wifstream file; - file.open(filename.c_str()); - EXPECT_TRUE(file.is_open()); - file.getline(contents, 64); - file.close(); - return std::wstring(contents); - } + HANDLE handle = ::CreateFile(path.value().c_str(), FILE_ALL_ACCESS, + NULL, NULL, OPEN_EXISTING, NULL, NULL); + if (handle == INVALID_HANDLE_VALUE) + return true; - wchar_t text_content_1[] = L"Gooooooooooooooooooooogle"; - wchar_t text_content_2[] = L"Overwrite Me"; -}; + CloseHandle(handle); + return false; +} + +// Simple function to read text from a file. +std::wstring ReadTextFile(const std::wstring& filename) { + WCHAR contents[64]; + std::wifstream file; + file.open(filename.c_str()); + EXPECT_TRUE(file.is_open()); + file.getline(contents, 64); + file.close(); + return std::wstring(contents); +} + +const wchar_t text_content_1[] = L"Gooooooooooooooooooooogle"; +const wchar_t text_content_2[] = L"Overwrite Me"; + +} // namespace // Copy one file from source to destination. TEST_F(CopyTreeWorkItemTest, CopyFile) { diff --git a/chrome/installer/util/create_dir_work_item.cc b/chrome/installer/util/create_dir_work_item.cc index 1eff7bf..b2667c1 100644 --- a/chrome/installer/util/create_dir_work_item.cc +++ b/chrome/installer/util/create_dir_work_item.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "chrome/installer/util/create_dir_work_item.h" #include "chrome/installer/util/logging_installer.h" diff --git a/chrome/installer/util/create_dir_work_item_unittest.cc b/chrome/installer/util/create_dir_work_item_unittest.cc index 9ac5d56..09b610b 100644 --- a/chrome/installer/util/create_dir_work_item_unittest.cc +++ b/chrome/installer/util/create_dir_work_item_unittest.cc @@ -5,7 +5,7 @@ #include <windows.h> #include "base/base_paths.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/util/delete_after_reboot_helper.cc b/chrome/installer/util/delete_after_reboot_helper.cc index fb7956e..b298d6a 100644 --- a/chrome/installer/util/delete_after_reboot_helper.cc +++ b/chrome/installer/util/delete_after_reboot_helper.cc @@ -15,8 +15,8 @@ #include <string> #include <vector> -#include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/strings/string_util.h" #include "base/win/registry.h" @@ -81,10 +81,10 @@ bool ScheduleFileSystemEntityForDeletion(const base::FilePath& path) { GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); if (file != INVALID_HANDLE_VALUE) { - LOG(INFO) << " file not in use: " << path.value(); + VLOG(1) << " file not in use: " << path.value(); ::CloseHandle(file); } else { - PLOG(INFO) << " file in use (or not found?): " << path.value(); + PLOG(WARNING) << " file in use (or not found?): " << path.value(); } } #endif diff --git a/chrome/installer/util/delete_after_reboot_helper_unittest.cc b/chrome/installer/util/delete_after_reboot_helper_unittest.cc index 4c63597..b6f5046 100644 --- a/chrome/installer/util/delete_after_reboot_helper_unittest.cc +++ b/chrome/installer/util/delete_after_reboot_helper_unittest.cc @@ -5,7 +5,7 @@ #include <windows.h> #include <shlobj.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_util.h" #include "base/win/registry.h" diff --git a/chrome/installer/util/delete_tree_work_item.cc b/chrome/installer/util/delete_tree_work_item.cc index 198a1d7..9cc47ed 100644 --- a/chrome/installer/util/delete_tree_work_item.cc +++ b/chrome/installer/util/delete_tree_work_item.cc @@ -7,7 +7,7 @@ #include <algorithm> #include <limits> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" namespace { diff --git a/chrome/installer/util/delete_tree_work_item_unittest.cc b/chrome/installer/util/delete_tree_work_item_unittest.cc index caa99e2..4e580a3 100644 --- a/chrome/installer/util/delete_tree_work_item_unittest.cc +++ b/chrome/installer/util/delete_tree_work_item_unittest.cc @@ -7,7 +7,7 @@ #include <fstream> #include "base/base_paths.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" @@ -18,30 +18,31 @@ #include "testing/gtest/include/gtest/gtest.h" namespace { - class DeleteTreeWorkItemTest : public testing::Test { - protected: - virtual void SetUp() { - ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); - } - - // The temporary directory used to contain the test operations. - base::ScopedTempDir temp_dir_; - }; - - // Simple function to dump some text into a new file. - void CreateTextFile(const std::wstring& filename, - const std::wstring& contents) { - std::ofstream file; - file.open(filename.c_str()); - ASSERT_TRUE(file.is_open()); - file << contents; - file.close(); + +class DeleteTreeWorkItemTest : public testing::Test { + protected: + virtual void SetUp() { + ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); } - wchar_t text_content_1[] = L"delete me"; - wchar_t text_content_2[] = L"delete me as well"; + // The temporary directory used to contain the test operations. + base::ScopedTempDir temp_dir_; }; +// Simple function to dump some text into a new file. +void CreateTextFile(const std::wstring& filename, + const std::wstring& contents) { + std::ofstream file; + file.open(filename.c_str()); + ASSERT_TRUE(file.is_open()); + file << contents; + file.close(); +} + +const wchar_t text_content_1[] = L"delete me"; + +} // namespace + // Delete a tree without key path. Everything should be deleted. TEST_F(DeleteTreeWorkItemTest, DeleteTreeNoKeyPath) { // Create tree to be deleted. diff --git a/chrome/installer/util/duplicate_tree_detector.cc b/chrome/installer/util/duplicate_tree_detector.cc index 5958375..d52dbcf 100644 --- a/chrome/installer/util/duplicate_tree_detector.cc +++ b/chrome/installer/util/duplicate_tree_detector.cc @@ -5,8 +5,8 @@ #include "chrome/installer/util/duplicate_tree_detector.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/logging.h" namespace installer { diff --git a/chrome/installer/util/duplicate_tree_detector_unittest.cc b/chrome/installer/util/duplicate_tree_detector_unittest.cc index 72650af..65bb06e 100644 --- a/chrome/installer/util/duplicate_tree_detector_unittest.cc +++ b/chrome/installer/util/duplicate_tree_detector_unittest.cc @@ -6,7 +6,7 @@ #include <fstream> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/strings/string16.h" #include "base/strings/string_util.h" diff --git a/chrome/installer/util/eula_util.cc b/chrome/installer/util/eula_util.cc index c39fa6f..12e0bf2 100644 --- a/chrome/installer/util/eula_util.cc +++ b/chrome/installer/util/eula_util.cc @@ -4,7 +4,7 @@ #include "chrome/installer/util/eula_util.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/memory/scoped_ptr.h" #include "chrome/installer/util/browser_distribution.h" #include "chrome/installer/util/install_util.h" diff --git a/chrome/installer/util/google_update_util.cc b/chrome/installer/util/google_update_util.cc index d3013ba..9696014 100644 --- a/chrome/installer/util/google_update_util.cc +++ b/chrome/installer/util/google_update_util.cc @@ -5,8 +5,8 @@ #include "chrome/installer/util/google_update_util.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/path_service.h" #include "base/process/kill.h" diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc index e11cc022..56cb944 100644 --- a/chrome/installer/util/install_util.cc +++ b/chrome/installer/util/install_util.cc @@ -14,7 +14,7 @@ #include <algorithm> #include "base/command_line.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/util/install_util_unittest.cc b/chrome/installer/util/install_util_unittest.cc index 42a83f7..e220090 100644 --- a/chrome/installer/util/install_util_unittest.cc +++ b/chrome/installer/util/install_util_unittest.cc @@ -6,7 +6,7 @@ #include <utility> #include "base/command_line.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/strings/string_util.h" #include "base/test/test_reg_util_win.h" #include "base/win/registry.h" diff --git a/chrome/installer/util/installer_state.cc b/chrome/installer/util/installer_state.cc index 0434906..6ec0734 100644 --- a/chrome/installer/util/installer_state.cc +++ b/chrome/installer/util/installer_state.cc @@ -9,9 +9,9 @@ #include <utility> #include "base/command_line.h" -#include "base/file_util.h" #include "base/file_version_info.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/strings/string_util.h" diff --git a/chrome/installer/util/installer_state_unittest.cc b/chrome/installer/util/installer_state_unittest.cc index a9e4f06..b3db8b3 100644 --- a/chrome/installer/util/installer_state_unittest.cc +++ b/chrome/installer/util/installer_state_unittest.cc @@ -8,9 +8,9 @@ #include "base/base_paths.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/path_service.h" #include "base/strings/string_util.h" diff --git a/chrome/installer/util/logging_installer.cc b/chrome/installer/util/logging_installer.cc index 18a734e..bf76a3e 100644 --- a/chrome/installer/util/logging_installer.cc +++ b/chrome/installer/util/logging_installer.cc @@ -7,9 +7,9 @@ #include "chrome/installer/util/logging_installer.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/logging_win.h" #include "base/path_service.h" diff --git a/chrome/installer/util/logging_installer_unittest.cc b/chrome/installer/util/logging_installer_unittest.cc index 19eef2f..910f35d 100644 --- a/chrome/installer/util/logging_installer_unittest.cc +++ b/chrome/installer/util/logging_installer_unittest.cc @@ -4,9 +4,9 @@ #include <string> -#include "base/file_util.h" #include "base/files/file.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/win/scoped_handle.h" #include "chrome/installer/util/logging_installer.h" diff --git a/chrome/installer/util/lzma_util.cc b/chrome/installer/util/lzma_util.cc index 324acd5..dc7daf3 100644 --- a/chrome/installer/util/lzma_util.cc +++ b/chrome/installer/util/lzma_util.cc @@ -4,7 +4,7 @@ #include "chrome/installer/util/lzma_util.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "base/strings/utf_string_conversions.h" diff --git a/chrome/installer/util/lzma_util_unittest.cc b/chrome/installer/util/lzma_util_unittest.cc index cc0b8e6..ac4c4c6 100644 --- a/chrome/installer/util/lzma_util_unittest.cc +++ b/chrome/installer/util/lzma_util_unittest.cc @@ -4,7 +4,7 @@ #include <windows.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/path_service.h" #include "chrome/common/chrome_paths.h" @@ -12,6 +12,7 @@ #include "testing/gtest/include/gtest/gtest.h" namespace { + class LzmaUtilTest : public testing::Test { protected: virtual void SetUp() { @@ -27,7 +28,8 @@ class LzmaUtilTest : public testing::Test { // The path to input data used in tests. base::FilePath data_dir_; }; -}; + +} // namespace // Test that we can open archives successfully. TEST_F(LzmaUtilTest, OpenArchiveTest) { diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc index 625a32d..a5a6a64 100644 --- a/chrome/installer/util/master_preferences.cc +++ b/chrome/installer/util/master_preferences.cc @@ -5,7 +5,7 @@ #include "chrome/installer/util/master_preferences.h" #include "base/environment.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/json/json_string_value_serializer.h" #include "base/lazy_instance.h" #include "base/logging.h" diff --git a/chrome/installer/util/master_preferences_unittest.cc b/chrome/installer/util/master_preferences_unittest.cc index 4a6182f..6c162d7 100644 --- a/chrome/installer/util/master_preferences_unittest.cc +++ b/chrome/installer/util/master_preferences_unittest.cc @@ -4,7 +4,7 @@ // // Unit tests for master preferences related methods. -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #include "base/strings/stringprintf.h" diff --git a/chrome/installer/util/move_tree_work_item.cc b/chrome/installer/util/move_tree_work_item.cc index a1b7b03..5d6c070 100644 --- a/chrome/installer/util/move_tree_work_item.cc +++ b/chrome/installer/util/move_tree_work_item.cc @@ -6,7 +6,7 @@ #include <shlwapi.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "chrome/installer/util/duplicate_tree_detector.h" #include "chrome/installer/util/logging_installer.h" diff --git a/chrome/installer/util/move_tree_work_item_unittest.cc b/chrome/installer/util/move_tree_work_item_unittest.cc index 8d60bd6..2165cd7 100644 --- a/chrome/installer/util/move_tree_work_item_unittest.cc +++ b/chrome/installer/util/move_tree_work_item_unittest.cc @@ -7,7 +7,7 @@ #include <fstream> #include "base/base_paths.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/memory_mapped_file.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" diff --git a/chrome/installer/util/self_cleaning_temp_dir.cc b/chrome/installer/util/self_cleaning_temp_dir.cc index 8d62018..19697bb 100644 --- a/chrome/installer/util/self_cleaning_temp_dir.cc +++ b/chrome/installer/util/self_cleaning_temp_dir.cc @@ -6,7 +6,7 @@ #include <windows.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/logging.h" #include "chrome/installer/util/delete_after_reboot_helper.h" diff --git a/chrome/installer/util/self_cleaning_temp_dir_unittest.cc b/chrome/installer/util/self_cleaning_temp_dir_unittest.cc index 9ff3425..3dffbd7 100644 --- a/chrome/installer/util/self_cleaning_temp_dir_unittest.cc +++ b/chrome/installer/util/self_cleaning_temp_dir_unittest.cc @@ -5,7 +5,7 @@ #include <windows.h> #include <wincrypt.h> -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" diff --git a/chrome/installer/util/shell_util.cc b/chrome/installer/util/shell_util.cc index 2893f75..8a8c0022 100644 --- a/chrome/installer/util/shell_util.cc +++ b/chrome/installer/util/shell_util.cc @@ -17,9 +17,9 @@ #include "base/bind.h" #include "base/command_line.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" #include "base/files/file_path.h" +#include "base/files/file_util.h" #include "base/lazy_instance.h" #include "base/logging.h" #include "base/md5.h" diff --git a/chrome/installer/util/shell_util_unittest.cc b/chrome/installer/util/shell_util_unittest.cc index 9cca44a..8ebad4c 100644 --- a/chrome/installer/util/shell_util_unittest.cc +++ b/chrome/installer/util/shell_util_unittest.cc @@ -8,8 +8,8 @@ #include "base/base_paths.h" #include "base/base_paths_win.h" -#include "base/file_util.h" #include "base/files/file_enumerator.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/md5.h" #include "base/memory/scoped_ptr.h" diff --git a/chrome/installer/util/work_item_list_unittest.cc b/chrome/installer/util/work_item_list_unittest.cc index 3e4a77a..5926ad7 100644 --- a/chrome/installer/util/work_item_list_unittest.cc +++ b/chrome/installer/util/work_item_list_unittest.cc @@ -5,7 +5,7 @@ #include <windows.h> #include "base/base_paths.h" -#include "base/file_util.h" +#include "base/files/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/path_service.h" |