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

Unified Diff: chrome/test/pyautolib/pyauto.py

Issue 10406029: Implement positive test for Address Sanitizer in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « chrome/browser/automation/testing_automation_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/pyautolib/pyauto.py
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py
index 1e6bbaa289ea3fdb76f497d1931269db04f8994b..6ee29909be6df1caba136b630b3cac6fb5b7a136 100755
--- a/chrome/test/pyautolib/pyauto.py
+++ b/chrome/test/pyautolib/pyauto.py
@@ -4026,6 +4026,15 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase):
tab_index, windex, frame_xpath),
expect_retval='complete')
+ def SimulateAsanMemoryBug(self):
+ """ Simulates a memory bug (reference an array out of bounds) to cause
Nirnimesh 2012/05/17 20:02:37 Remove space after """ Make first sentence a one-l
glotov 2012/05/18 09:48:05 Done.
+ Address Sanitizer (if it was built it) to catch the bug and abort
+ the process.
Nirnimesh 2012/05/17 20:02:37 Make a note about the increased timeout
glotov 2012/05/18 09:48:05 Done, as discussed. On 2012/05/17 20:02:37, Nirni
+ """
+ timeout = PyUITest.ActionTimeoutChanger(self, 3 * 60 * 1000)
+ cmd_dict = { 'command': 'SimulateAsanMemoryBug' }
+ self._GetResultFromJSONRequest(cmd_dict, windex=None)
+
## ChromeOS section
def GetLoginInfo(self):
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698