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

Side by Side Diff: tools/chrome_proxy/live_tests/chrome_proxy_metrics.py

Issue 1098253004: Move top_20 tests to a separate suite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
sclittle 2015/04/23 01:07:50 This file is the same as the integration_tests one
bustamante 2015/04/23 02:26:09 I went with the latter option, apologies that shou
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import time 6 import time
7 7
8 from integration_tests import network_metrics 8 from integration_tests import network_metrics
9 from telemetry.page import page_test 9 from telemetry.page import page_test
10 from telemetry.value import scalar 10 from telemetry.value import scalar
11 11
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 via_count += 1 573 via_count += 1
574 if via_count == 0: 574 if via_count == 0:
575 raise ChromeProxyMetricException, ( 575 raise ChromeProxyMetricException, (
576 'Expected at least one response through the proxy after the bypass ' 576 'Expected at least one response through the proxy after the bypass '
577 'expired, but zero such responses were received.') 577 'expired, but zero such responses were received.')
578 578
579 results.AddValue(scalar.ScalarValue( 579 results.AddValue(scalar.ScalarValue(
580 results.current_page, 'bypass', 'count', bypass_count)) 580 results.current_page, 'bypass', 'count', bypass_count))
581 results.AddValue(scalar.ScalarValue( 581 results.AddValue(scalar.ScalarValue(
582 results.current_page, 'via', 'count', via_count)) 582 results.current_page, 'via', 'count', via_count))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698