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

Unified Diff: tools/chrome_proxy/webdriver/incognito.py

Issue 2610003003: Add Incognito test case (Closed)
Patch Set: Fix copyright Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/chrome_proxy/webdriver/incognito.py
diff --git a/tools/chrome_proxy/webdriver/incognito.py b/tools/chrome_proxy/webdriver/incognito.py
new file mode 100644
index 0000000000000000000000000000000000000000..1f36d3a97f9e2b17b276df394e13b6b255f2cc07
--- /dev/null
+++ b/tools/chrome_proxy/webdriver/incognito.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 Incognito(IntegrationTest):
+
+ # Ensure Chrome does not use DataSaver in Incognito mode.
+ def testCheckPageWithIncognito(self):
+ with TestDriver() as t:
+ t.AddChromeArg('--enable-spdy-proxy-auth')
+ t.AddChromeArg('--incognito')
+ t.LoadURL('http://check.googlezip.net/test.html')
+ for response in t.GetHTTPResponses():
+ self.assertNotHasChromeProxyViaHeader(response)
+
+if __name__ == '__main__':
+ IntegrationTest.RunAllTests()
« 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