summaryrefslogtreecommitdiffstats
path: root/chrome/test/page_cycler/page_cycler_test.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 14:37:38 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-13 14:37:38 +0000
commit4b59cf24ca1128e5b3f3b4fa8b585575d44222f7 (patch)
tree063ccb2187e2285260b309e284b2f2170b0240e4 /chrome/test/page_cycler/page_cycler_test.cc
parentfd7bdcc89b6483ebbfc4eaca6a7b0ba1fe1aca1b (diff)
downloadchromium_src-4b59cf24ca1128e5b3f3b4fa8b585575d44222f7.zip
chromium_src-4b59cf24ca1128e5b3f3b4fa8b585575d44222f7.tar.gz
chromium_src-4b59cf24ca1128e5b3f3b4fa8b585575d44222f7.tar.bz2
Make running chrome process detection in ui tests more reliable.
Also drops fragile code. TEST=Covered by ui_tests. BUG=10840 Review URL: http://codereview.chromium.org/545006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/page_cycler/page_cycler_test.cc')
-rw-r--r--chrome/test/page_cycler/page_cycler_test.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/test/page_cycler/page_cycler_test.cc b/chrome/test/page_cycler/page_cycler_test.cc
index 172655d..471a581 100644
--- a/chrome/test/page_cycler/page_cycler_test.cc
+++ b/chrome/test/page_cycler/page_cycler_test.cc
@@ -246,11 +246,8 @@ class PageCyclerTest : public UITest {
return;
size_t stop_size = base::GetSystemCommitCharge();
- FilePath data_dir;
- PathService::Get(chrome::DIR_USER_DATA, &data_dir);
-
- PrintMemoryUsageInfo(suffix, data_dir);
- PrintIOPerfInfo(suffix, data_dir);
+ PrintMemoryUsageInfo(suffix);
+ PrintIOPerfInfo(suffix);
PrintSystemCommitCharge(suffix, stop_size - start_size,
false /* not important */);
@@ -297,11 +294,8 @@ class PageCyclerReferenceTest : public PageCyclerTest {
return;
size_t stop_size = base::GetSystemCommitCharge();
- FilePath data_dir;
- PathService::Get(chrome::DIR_USER_DATA, &data_dir);
-
- PrintMemoryUsageInfo("_ref", data_dir);
- PrintIOPerfInfo("_ref", data_dir);
+ PrintMemoryUsageInfo("_ref");
+ PrintIOPerfInfo("_ref");
PrintSystemCommitCharge("_ref", stop_size - start_size,
false /* not important */);