Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: chrome/browser/nacl_host/test/debug_stub_browser_tests.py

Issue 11236025: Test that debug stub works with browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2012 The Chromium 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
5 import sys
6
7 import gdb_rsp
8
9
10 def TestContinue(connection):
11 result = connection.RspRequest('vCont;c')
12 # Once the NaCl test module reports that the test passed, the NaCl <embed>
13 # element is removed from the page and so the NaCl module is killed by
14 # the browser what is reported as exit due to SIGKILL (X09).
15 assert result == 'X09', result
16
17
18 def Main(args):
19 port = int(args[0])
20 name = args[1]
21 connection = gdb_rsp.GdbRspConnection(('localhost', port))
22 if name == 'continue':
23 TestContinue(connection)
24 else:
25 raise AssertionError('Unknown test name: %r' % name)
26
27
28 if __name__ == '__main__':
29 Main(sys.argv[1:])
OLDNEW
« no previous file with comments | « chrome/browser/nacl_host/nacl_process_host.cc ('k') | chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698