 Chromium Code Reviews
 Chromium Code Reviews Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/
    
  
    Issue 11236025:
  Test that debug stub works with browser.  (Closed) 
  Base URL: svn://svn.chromium.org/chrome/trunk/src/| Index: chrome/browser/nacl_host/test/debug_stub_browser_tests.py | 
| =================================================================== | 
| --- chrome/browser/nacl_host/test/debug_stub_browser_tests.py (revision 0) | 
| +++ chrome/browser/nacl_host/test/debug_stub_browser_tests.py (revision 0) | 
| @@ -0,0 +1,29 @@ | 
| +# Copyright (c) 2012 The Native Client 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 sys | 
| + | 
| +import gdb_rsp | 
| + | 
| + | 
| +def TestContinue(connection): | 
| + result = connection.RspRequest('vCont;c') | 
| + # Once NaCl test module reports that test passed, NaCl embed tag is removed | 
| 
Mark Seaborn
2012/12/05 18:00:47
Nit: Add articles - "the NaCl <embed> element is r
 
halyavin
2012/12/06 15:35:01
Done.
 | 
| + # from the page and so NaCl module is killed by browser what is reported as | 
| + # exit due to SIGKILL (X09). | 
| + assert result == 'X09', result | 
| + | 
| + | 
| +def Main(args): | 
| + port = int(args[0]) | 
| + name = args[1] | 
| + connection = gdb_rsp.GdbRspConnection(('localhost', port)) | 
| + if name == 'continue': | 
| + TestContinue(connection) | 
| + else: | 
| + raise AssertionError, "Unknown test name" | 
| 
Mark Seaborn
2012/12/05 18:00:47
raise AssertionError('Unknown test name: %r' % nam
 
halyavin
2012/12/06 15:35:01
Done.
 | 
| + | 
| + | 
| +if __name__ == '__main__': | 
| + Main(sys.argv[1:]) |