 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/| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 
Mark Seaborn
2012/12/04 21:46:42
Nit: "tests" -> "test" in filename?  There is only
 
halyavin
2012/12/05 10:05:57
I am going to add one or two more simple tests her
 | |
| 5 import sys | |
| 6 | |
| 7 import gdb_rsp | |
| 8 | |
| 9 | |
| 10 def TestContinue(connection): | |
| 11 result = connection.RspRequest('vCont;c') | |
| 12 assert result == 'W00' or result == 'X09', result | |
| 
Mark Seaborn
2012/12/04 21:46:42
FYI, in Python you could write:
  assert result in
 
halyavin
2012/12/05 10:05:57
Done.
 
halyavin
2012/12/05 10:46:44
I investigated further I found that NaCl test modu
 | |
| 13 | |
| 14 | |
| 15 def Main(args): | |
| 16 port = int(args[0]) | |
| 17 name = args[1] | |
| 18 connection = gdb_rsp.GdbRspConnection(('localhost', port)) | |
| 19 if name == 'continue': | |
| 20 TestContinue(connection) | |
| 21 | |
| 
Mark Seaborn
2012/12/04 21:46:42
Nit: 2 empty lines between top-level blocks
 
halyavin
2012/12/05 10:05:57
Done.
 | |
| 22 if __name__ == '__main__': | |
| 23 Main(sys.argv[1:]) | |
| OLD | NEW |