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

Side by Side Diff: tools/chrome_proxy/webdriver/quic.py

Issue 2823253002: Refactor decorators into thier own python class (Closed)
Patch Set: Forgot to add new decorators class Created 3 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 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
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()
OLDNEW
« no previous file with comments | « tools/chrome_proxy/webdriver/decorators.py ('k') | tools/chrome_proxy/webdriver/safebrowsing.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698