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

Unified Diff: tools/perf/metrics/test_page_test_results.py

Issue 926833002: [Telemetry] Move gpu_timeline metrics to telemetry.web_perf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « tools/perf/metrics/gpu_timeline_unittest.py ('k') | tools/perf/metrics/timeline_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/test_page_test_results.py
diff --git a/tools/perf/metrics/test_page_test_results.py b/tools/perf/metrics/test_page_test_results.py
deleted file mode 100644
index d2fb2566ee9d08797b12c18350ef9ea6a28b8839..0000000000000000000000000000000000000000
--- a/tools/perf/metrics/test_page_test_results.py
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-from telemetry.page import page as page_module
-from telemetry.results import page_test_results
-from telemetry.value import scalar
-
-
-class TestPageTestResults(
- page_test_results.PageTestResults):
- def __init__(self, test):
- super(TestPageTestResults, self).__init__()
- self.test = test
- page = page_module.Page("http://www.google.com", {})
- self.WillRunPage(page)
-
- def GetPageSpecificValueNamed(self, name):
- values = [value for value in self.all_page_specific_values
- if value.name == name]
- assert len(values) == 1, 'Could not find value named %s' % name
- return values[0]
-
- def AssertHasPageSpecificScalarValue(self, name, units, expected_value):
- value = self.GetPageSpecificValueNamed(name)
- self.test.assertEquals(units, value.units)
- self.test.assertTrue(isinstance(value, scalar.ScalarValue))
- self.test.assertEquals(expected_value, value.value)
-
- def __str__(self):
- return '\n'.join([repr(x) for x in self.all_page_specific_values])
« no previous file with comments | « tools/perf/metrics/gpu_timeline_unittest.py ('k') | tools/perf/metrics/timeline_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698