OLD | NEW |
---|---|
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
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 time | |
RyanSturm
2017/04/18 17:34:05
Seems random. Is this needed somewhere (just makin
Robert Ogden
2017/04/18 17:55:54
Nothing gets past you :) Yes, this was a missed im
| |
6 | |
5 import common | 7 import common |
6 from common import TestDriver | 8 from common import TestDriver |
7 from common import IntegrationTest | 9 from common import IntegrationTest |
8 | 10 |
9 | 11 |
10 class Quic(IntegrationTest): | 12 class Quic(IntegrationTest): |
11 | 13 |
12 # Ensure Chrome uses DataSaver when QUIC is enabled. This test should pass | 14 # Ensure Chrome uses DataSaver when QUIC is enabled. This test should pass |
13 # even if QUIC is disabled on the server side. In that case, Chrome should | 15 # even if QUIC is disabled on the server side. In that case, Chrome should |
14 # fallback to using the non-QUIC proxies. | 16 # fallback to using the non-QUIC proxies. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 # is used for the next request. Give 3 seconds extra headroom for the QUIC | 52 # is used for the next request. Give 3 seconds extra headroom for the QUIC |
51 # connection to be established. | 53 # connection to be established. |
52 time.sleep(3) | 54 time.sleep(3) |
53 t.LoadURL('http://check.googlezip.net/test.html') | 55 t.LoadURL('http://check.googlezip.net/test.html') |
54 proxy_usage = t.GetHistogram('Net.QuicAlternativeProxy.Usage') | 56 proxy_usage = t.GetHistogram('Net.QuicAlternativeProxy.Usage') |
55 # Bucket ALTERNATIVE_PROXY_USAGE_NO_RACE should have at least onesample. | 57 # Bucket ALTERNATIVE_PROXY_USAGE_NO_RACE should have at least onesample. |
56 self.assertLessEqual(1, proxy_usage['buckets'][0]['count']) | 58 self.assertLessEqual(1, proxy_usage['buckets'][0]['count']) |
57 | 59 |
58 if __name__ == '__main__': | 60 if __name__ == '__main__': |
59 IntegrationTest.RunAllTests() | 61 IntegrationTest.RunAllTests() |
OLD | NEW |