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

Unified Diff: chrome/test/chromedriver/test/run_py_tests.py

Issue 594393002: Add net::HttpServer::Delegate::OnConnect() function and set ChromeDriver buffer sizes to 100 MB (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for connection ids after the http request Created 6 years, 3 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
Index: chrome/test/chromedriver/test/run_py_tests.py
diff --git a/chrome/test/chromedriver/test/run_py_tests.py b/chrome/test/chromedriver/test/run_py_tests.py
index 2b106a6783a372544520a9fcae0f182b673be9e2..1738f434267c02d21e1d3e4533ebafb26c3d51bd 100755
--- a/chrome/test/chromedriver/test/run_py_tests.py
+++ b/chrome/test/chromedriver/test/run_py_tests.py
@@ -715,6 +715,16 @@ class ChromeDriverTest(ChromeDriverBaseTest):
def testMobileEmulationDisabledByDefault(self):
self.assertFalse(self._driver.capabilities['mobileEmulationEnabled'])
+ def testChromeDriverSendLargeData(self):
+ script = 's = ""; for (i = 0; i < 10e6; i++) s += "0"; return s;'
+ lots_of_data = self._driver.ExecuteScript(script)
+ self.assertEquals('0'.zfill(int(10e6)), lots_of_data)
+
+ def testChromeDriverRecieveAndSendLargeData(self):
+ lots_of_data = '1'.zfill(int(10e6))
+ result = self._driver.ExecuteScript('return "%s"' % lots_of_data)
+ self.assertEquals(lots_of_data, result)
+
class ChromeDriverAndroidTest(ChromeDriverBaseTest):
"""End to end tests for Android-specific tests."""
« no previous file with comments | « chrome/test/chromedriver/server/chromedriver_server.cc ('k') | cloud_print/gcp20/prototype/privet_http_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698