summaryrefslogtreecommitdiffstats
path: root/chrome/test/unit/chrome_test_suite.h
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 01:46:46 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 01:46:46 +0000
commit2c41c0058e3a7ec333f974aa0e45c2fc78fb9556 (patch)
tree4bb483d8d7749f8e222491c752e817ac2f49eb62 /chrome/test/unit/chrome_test_suite.h
parent5382cf9088a403e3fa12fa3c5b4130e2d3e09ad8 (diff)
downloadchromium_src-2c41c0058e3a7ec333f974aa0e45c2fc78fb9556.zip
chromium_src-2c41c0058e3a7ec333f974aa0e45c2fc78fb9556.tar.gz
chromium_src-2c41c0058e3a7ec333f974aa0e45c2fc78fb9556.tar.bz2
Revert r15607
r15607 broke the build TBR=brg, thestig git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15608 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/unit/chrome_test_suite.h')
-rw-r--r--chrome/test/unit/chrome_test_suite.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/test/unit/chrome_test_suite.h b/chrome/test/unit/chrome_test_suite.h
index beb81c4..ff187da 100644
--- a/chrome/test/unit/chrome_test_suite.h
+++ b/chrome/test/unit/chrome_test_suite.h
@@ -11,7 +11,7 @@
#include "app/resource_bundle.h"
#include "base/stats_table.h"
-#include "base/file_util.h"
+#include "base/file_path.h"
#if defined(OS_MACOSX)
#include "base/mac_util.h"
#endif
@@ -81,9 +81,8 @@ class ChromeTestSuite : public TestSuite {
CommandLine::ForCurrentProcess()->GetSwitchValue(
switches::kUserDataDir));
if (user_data_dir.empty() &&
- file_util::CreateNewTempDirectory("chrome_test_", &user_data_dir)) {
+ PathService::Get(base::DIR_EXE, &user_data_dir))
user_data_dir = user_data_dir.AppendASCII("test_user_data");
- }
if (!user_data_dir.empty())
PathService::Override(chrome::DIR_USER_DATA,
user_data_dir.ToWStringHack());
@@ -123,13 +122,6 @@ class ChromeTestSuite : public TestSuite {
StatsTable::set_current(NULL);
delete stats_table_;
- // Delete the test_user_data dir recursively
- FilePath user_data_dir;
- if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir) &&
- !user_data_dir.empty()) {
- file_util::Delete(user_data_dir, true);
- file_util::Delete(user_data_dir.DirName(), false);
- }
TestSuite::Shutdown();
}