Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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)) |
| OLD | NEW |