summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 21:40:29 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-20 21:40:29 +0000
commit5aa442010bcc65c5d30dda379b39cc2f8182ec60 (patch)
tree6c7bda0eba15793386deba59b759e158dfb26bd2 /chrome
parentc8ed0353872d389c6f2112b5ea2955eab9f52655 (diff)
downloadchromium_src-5aa442010bcc65c5d30dda379b39cc2f8182ec60.zip
chromium_src-5aa442010bcc65c5d30dda379b39cc2f8182ec60.tar.gz
chromium_src-5aa442010bcc65c5d30dda379b39cc2f8182ec60.tar.bz2
Do not leave temp files in %TEMP% folder. The log file initialization creates these temporary files and these log files are of no use.
BUG=1330260 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/installer/util/copy_tree_work_item_unittest.cc11
-rw-r--r--chrome/installer/util/create_reg_key_work_item_unittest.cc11
-rw-r--r--chrome/installer/util/helper_unittest.cc11
-rw-r--r--chrome/installer/util/set_reg_value_work_item_unittest.cc11
-rw-r--r--chrome/installer/util/work_item_list_unittest.cc11
5 files changed, 0 insertions, 55 deletions
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index da75a8c..2863af2 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_unittest.cc
@@ -60,17 +60,6 @@ namespace {
file_util::AppendToPath(&temp_dir_, L"temp");
CreateDirectory(temp_dir_.c_str(), NULL);
- // Create a log file
- std::wstring log_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&log_file));
- ASSERT_TRUE(file_util::PathExists(log_file));
-
- logging::InitLogging(log_file.c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE);
- logging::SetMinLogLevel(logging::LOG_INFO);
-
ASSERT_TRUE(file_util::PathExists(test_dir_));
ASSERT_TRUE(file_util::PathExists(temp_dir_));
}
diff --git a/chrome/installer/util/create_reg_key_work_item_unittest.cc b/chrome/installer/util/create_reg_key_work_item_unittest.cc
index e694491..27eb218 100644
--- a/chrome/installer/util/create_reg_key_work_item_unittest.cc
+++ b/chrome/installer/util/create_reg_key_work_item_unittest.cc
@@ -48,17 +48,6 @@ namespace {
key.DeleteKey(test_root);
ASSERT_FALSE(key.Open(HKEY_CURRENT_USER, test_root, KEY_READ));
ASSERT_TRUE(key.Create(HKEY_CURRENT_USER, test_root, KEY_READ));
-
- // Create a log file
- std::wstring log_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&log_file));
- ASSERT_TRUE(file_util::PathExists(log_file));
-
- logging::InitLogging(log_file.c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE);
- logging::SetMinLogLevel(logging::LOG_INFO);
}
virtual void TearDown() {
logging::CloseLogFile();
diff --git a/chrome/installer/util/helper_unittest.cc b/chrome/installer/util/helper_unittest.cc
index be6b183..8ff1cfa 100644
--- a/chrome/installer/util/helper_unittest.cc
+++ b/chrome/installer/util/helper_unittest.cc
@@ -55,17 +55,6 @@ namespace {
file_util::Delete(test_dir_, true);
CreateDirectory(test_dir_.c_str(), NULL);
ASSERT_TRUE(file_util::PathExists(test_dir_));
-
- // Create a log file
- std::wstring log_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&log_file));
- ASSERT_TRUE(file_util::PathExists(log_file));
-
- logging::InitLogging(log_file.c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE);
- logging::SetMinLogLevel(logging::LOG_INFO);
}
virtual void TearDown() {
diff --git a/chrome/installer/util/set_reg_value_work_item_unittest.cc b/chrome/installer/util/set_reg_value_work_item_unittest.cc
index 67e68e8..2aa87e2 100644
--- a/chrome/installer/util/set_reg_value_work_item_unittest.cc
+++ b/chrome/installer/util/set_reg_value_work_item_unittest.cc
@@ -52,17 +52,6 @@ namespace {
key.DeleteKey(test_root);
ASSERT_FALSE(key.Open(HKEY_CURRENT_USER, test_root, KEY_READ));
ASSERT_TRUE(key.Create(HKEY_CURRENT_USER, test_root, KEY_READ));
-
- // Create a log file
- std::wstring log_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&log_file));
- ASSERT_TRUE(file_util::PathExists(log_file));
-
- logging::InitLogging(log_file.c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE);
- logging::SetMinLogLevel(logging::LOG_INFO);
}
virtual void TearDown() {
logging::CloseLogFile();
diff --git a/chrome/installer/util/work_item_list_unittest.cc b/chrome/installer/util/work_item_list_unittest.cc
index f381b01..06ca6da 100644
--- a/chrome/installer/util/work_item_list_unittest.cc
+++ b/chrome/installer/util/work_item_list_unittest.cc
@@ -60,17 +60,6 @@ namespace {
ASSERT_FALSE(file_util::PathExists(test_dir_));
CreateDirectory(test_dir_.c_str(), NULL);
ASSERT_TRUE(file_util::PathExists(test_dir_));
-
- // Create a log file
- std::wstring log_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileName(&log_file));
- ASSERT_TRUE(file_util::PathExists(log_file));
-
- logging::InitLogging(log_file.c_str(),
- logging::LOG_ONLY_TO_FILE,
- logging::LOCK_LOG_FILE,
- logging::DELETE_OLD_LOG_FILE);
- logging::SetMinLogLevel(logging::LOG_INFO);
}
virtual void TearDown() {