Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1116)

Unified Diff: chrome/test/perf/startup_test.cc

Issue 13394003: Delete CopyRecursiveDirNoCache from test_file_util. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/startup_test.cc
diff --git a/chrome/test/perf/startup_test.cc b/chrome/test/perf/startup_test.cc
index 75f3154d8dccaf77d7b1165010bfe0b86fca7567..1d8243f992fb67ddf959bd607e91c2515f2bdcbb 100644
--- a/chrome/test/perf/startup_test.cc
+++ b/chrome/test/perf/startup_test.cc
@@ -239,6 +239,12 @@ class StartupTest : public UIPerfTest {
dir_app.Append(FILE_PATH_LITERAL("chrome.dll")));
ASSERT_TRUE(EvictFileFromSystemCacheWrapper(chrome_dll));
#endif
+
+ // Kick out the profile files.
+ file_util::FileEnumerator en(user_data_dir(), true,
+ file_util::FileEnumerator::FILES);
+ for (base::FilePath cur = en.Next(); !cur.empty(); cur = en.Next())
+ EvictFileFromSystemCacheWrapper(cur);
}
UITest::SetUp();
TimeTicks end_time = TimeTicks::Now();
« no previous file with comments | « chrome/test/automation/proxy_launcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698