 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,20 @@ | 
| +# 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): | 
| + assert 'W00' == connection.RspRequest('vCont;c') | 
| 
Mark Seaborn
2012/10/23 01:14:50
Please make sure this logs the actual reply if the
 
halyavin
2012/10/23 11:59:29
Done.
 | 
| + | 
| +def Main(args): | 
| + port = int(args[0]) | 
| + name = args[1] | 
| 
Mark Seaborn
2012/10/23 01:14:50
There's no need for a 'name' arg if you only suppo
 
halyavin
2012/10/23 11:59:29
This is only the first debugger test. We need more
 
Mark Seaborn
2012/12/04 21:46:42
So you can add a 'name' arg in a later change when
 
halyavin
2012/12/05 10:16:55
We certainly need more than one test in chrome. So
 | 
| + connection = gdb_rsp.GdbRspConnection(('localhost', port)) | 
| + if name == 'continue': | 
| + TestContinue(connection) | 
| + | 
| +if __name__ == '__main__': | 
| + Main(sys.argv[1:]) |