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

Unified Diff: tools/android/loading/sandwich_metrics_unittest.py

Issue 2009883002: sandwich: Make metrics extraction more customizable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/ADDITIONAL_COLUMN_NAMES/additional_column_names/g Created 4 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 | « tools/android/loading/sandwich_metrics.py ('k') | tools/android/loading/sandwich_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/loading/sandwich_metrics_unittest.py
diff --git a/tools/android/loading/sandwich_metrics_unittest.py b/tools/android/loading/sandwich_metrics_unittest.py
index 12ed037a4487a9c68a31ba67d79dffeb610a58a2..f401e65981bdce8ba25ae22be83ab7a4514eff44 100644
--- a/tools/android/loading/sandwich_metrics_unittest.py
+++ b/tools/android/loading/sandwich_metrics_unittest.py
@@ -232,7 +232,7 @@ class PageTrackTest(unittest.TestCase):
point(400, 1.0),
]
self.assertEqual(120 + 70 * 0.6 + 90 * 0.25,
- puller.ComputeSpeedIndex(completness_record))
+ puller._ComputeSpeedIndex(completness_record))
completness_record = [
point(70, 0.0),
@@ -242,7 +242,7 @@ class PageTrackTest(unittest.TestCase):
point(240, 1.0),
]
self.assertEqual(80 + 60 * 0.7 + 10 * 0.4 + 20 * 0.1,
- puller.ComputeSpeedIndex(completness_record))
+ puller._ComputeSpeedIndex(completness_record))
completness_record = [
point(90, 0.0),
@@ -251,7 +251,7 @@ class PageTrackTest(unittest.TestCase):
point(230, 1.0),
]
with self.assertRaises(ValueError):
- puller.ComputeSpeedIndex(completness_record)
+ puller._ComputeSpeedIndex(completness_record)
if __name__ == '__main__':
« no previous file with comments | « tools/android/loading/sandwich_metrics.py ('k') | tools/android/loading/sandwich_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698