[Telemetry] Refactor Find*Values* methods in PageTestResults
commitf021a84c6724eb2e230c0e2fdbb093a4177f8eef
authoreakuefner <eakuefner@chromium.org>
Wed, 8 Jul 2015 21:52:49 +0000 (8 14:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Jul 2015 21:53:16 +0000 (8 21:53 +0000)
tree6c1b18e0a5f09e375701ce4f96c5f90974ba16de
parent5c4ebefd590f0b9fb41e1ecec8a76c9209c74aae
[Telemetry] Refactor Find*Values* methods in PageTestResults

This CL introduces FindValues, a generic helper method for searching
PageTestResults, reimplements the existing helpers in terms of it, and adds a
new helper to search for values matching interaction record labels which I plan
to use in a forthcoming CL.

BUG=461101
R=aiolos,nednguyen

Review URL: https://codereview.chromium.org/1219143003

Cr-Commit-Position: refs/heads/master@{#337918}
tools/telemetry/telemetry/internal/results/page_test_results.py
tools/telemetry/telemetry/internal/results/page_test_results_unittest.py