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): |