| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import Queue | 7 import Queue |
| 8 import sys | 8 import sys |
| 9 import subprocess | 9 import subprocess |
| 10 import threading | 10 import threading |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 def testPostFail(self): | 102 def testPostFail(self): |
| 103 args = self._GetChromeMockArgs('fail', 'post', sleep=10) | 103 args = self._GetChromeMockArgs('fail', 'post', sleep=10) |
| 104 returncode, stdout, _ = self._Run(args, timeout=20) | 104 returncode, stdout, _ = self._Run(args, timeout=20) |
| 105 self.assertEqual(1, returncode) | 105 self.assertEqual(1, returncode) |
| 106 self.assertTrue('Starting' in stdout) | 106 self.assertTrue('Starting' in stdout) |
| 107 self.assertTrue('Expected to be killed' not in stdout) | 107 self.assertTrue('Expected to be killed' not in stdout) |
| 108 | 108 |
| 109 | 109 |
| 110 if __name__ == '__main__': | 110 if __name__ == '__main__': |
| 111 unittest.main() | 111 unittest.main() |
| OLD | NEW |