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

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

Issue 12389073: Collect tab timing information for use in telementry-based startup tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix telemetry tests with reference builds. Created 7 years, 7 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 | « no previous file | chrome/test/ui/ui_test.h » ('j') | tools/perf/perf_tools/histogram_metric.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/perf/page_cycler_test.cc
diff --git a/chrome/test/perf/page_cycler_test.cc b/chrome/test/perf/page_cycler_test.cc
index 9d130002dad1b5f01aba6ee05e5a444654f1c250..ce82558cdcbf7e9b7a663fe8e43d1f93850c790f 100644
--- a/chrome/test/perf/page_cycler_test.cc
+++ b/chrome/test/perf/page_cycler_test.cc
@@ -130,6 +130,7 @@ class PageCyclerTest : public UIPerfTest {
num_test_iterations_(kTestIterations) {
show_window_ = true;
dom_automation_enabled_ = true;
+ stats_collection_controller_enabled_ = true;
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
if (parsed_command_line.HasSwitch(switches::kPageCyclerIterations)) {
@@ -278,8 +279,8 @@ class PageCyclerTest : public UIPerfTest {
ASSERT_TRUE(tab->ExecuteAndExtractString(
std::wstring(),
L"window.domAutomationController.send("
- L"window.domAutomationController.getHistogram ? "
- L"window.domAutomationController.getHistogram(\"" +
+ L"window.statsCollectionController.getHistogram ? "
+ L"window.statsCollectionController.getHistogram(\"" +
base::SysUTF8ToWide(name) + L"\") : '')",
&whistogram));
std::string histogram = base::SysWideToNativeMB(whistogram);
« no previous file with comments | « no previous file | chrome/test/ui/ui_test.h » ('j') | tools/perf/perf_tools/histogram_metric.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698