| OLD | NEW |
| (Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import common |
| 6 from common import TestDriver |
| 7 from common import IntegrationTest |
| 8 |
| 9 |
| 10 class Video(IntegrationTest): |
| 11 |
| 12 # Check videos are proxied. |
| 13 def testCheckVideoHasViaHeader(self): |
| 14 with TestDriver() as t: |
| 15 t.AddChromeArg('--enable-spdy-proxy-auth') |
| 16 t.LoadURL( |
| 17 'http://check.googlezip.net/cacheable/video/buck_bunny_tiny.html') |
| 18 for response in t.GetHTTPResponses(): |
| 19 self.assertHasChromeProxyViaHeader(response) |
| 20 |
| 21 if __name__ == '__main__': |
| 22 IntegrationTest.RunAllTests() |
| OLD | NEW |