| Index: tools/chrome_proxy/webdriver/video.py
|
| diff --git a/tools/chrome_proxy/webdriver/video.py b/tools/chrome_proxy/webdriver/video.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a88022c7b19cf4986df63e0d70f5b1a2da44fb82
|
| --- /dev/null
|
| +++ b/tools/chrome_proxy/webdriver/video.py
|
| @@ -0,0 +1,22 @@
|
| +# Copyright 2017 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import common
|
| +from common import TestDriver
|
| +from common import IntegrationTest
|
| +
|
| +
|
| +class Video(IntegrationTest):
|
| +
|
| + # Check videos are proxied.
|
| + def testCheckVideoHasViaHeader(self):
|
| + with TestDriver() as t:
|
| + t.AddChromeArg('--enable-spdy-proxy-auth')
|
| + t.LoadURL(
|
| + 'http://check.googlezip.net/cacheable/video/buck_bunny_tiny.html')
|
| + for response in t.GetHTTPResponses():
|
| + self.assertHasChromeProxyViaHeader(response)
|
| +
|
| +if __name__ == '__main__':
|
| + IntegrationTest.RunAllTests()
|
|
|