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

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

Issue 2713003003: Adding a smoke test for DataSaver (Closed)
Patch Set: Add one more white space Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 common 5 import common
6 from common import TestDriver 6 from common import TestDriver
7 from common import IntegrationTest 7 from common import IntegrationTest
8 8
9 9
10 class Smoke(IntegrationTest): 10 class Smoke(IntegrationTest):
(...skipping 12 matching lines...) Expand all
23 with TestDriver() as t: 23 with TestDriver() as t:
24 t.AddChromeArg('--enable-spdy-proxy-auth') 24 t.AddChromeArg('--enable-spdy-proxy-auth')
25 t.AddChromeArg('--enable-quic') 25 t.AddChromeArg('--enable-quic')
26 t.AddChromeArg('--data-reduction-proxy-http-proxies=https://proxy.googlezi p.net:443') 26 t.AddChromeArg('--data-reduction-proxy-http-proxies=https://proxy.googlezi p.net:443')
27 t.AddChromeArg('--force-fieldtrials=DataReductionProxyUseQuic/Enabled') 27 t.AddChromeArg('--force-fieldtrials=DataReductionProxyUseQuic/Enabled')
28 t.LoadURL('http://check.googlezip.net/test.html') 28 t.LoadURL('http://check.googlezip.net/test.html')
29 responses = t.GetHTTPResponses() 29 responses = t.GetHTTPResponses()
30 self.assertEqual(2, len(responses)) 30 self.assertEqual(2, len(responses))
31 for response in responses: 31 for response in responses:
32 self.assertHasChromeProxyViaHeader(response) 32 self.assertHasChromeProxyViaHeader(response)
33
34 # Ensure Chrome uses DataSaver in normal mode.
35 def testCheckPageWithNormalMode(self):
36 with TestDriver() as t:
37 t.AddChromeArg('--enable-spdy-proxy-auth')
38 t.LoadURL('http://check.googlezip.net/test.html')
39 for response in t.GetHTTPResponses():
bustamante 2017/02/23 23:24:32 Can you also indent this line and the next two mor
40 self.assertHasChromeProxyViaHeader(response)
33 41
34 if __name__ == '__main__': 42 if __name__ == '__main__':
35 IntegrationTest.RunAllTests() 43 IntegrationTest.RunAllTests()
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698