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

Issue 11236025: Test that debug stub works with browser. (Closed)

Created:
8 years, 2 months ago by halyavin
Modified:
8 years ago
Reviewers:
Mark Seaborn, szym, sky
CC:
chromium-reviews, cbentzel+watch_chromium.org, native-client-reviews_googlegroups.com, darin-cc_chromium.org
Visibility:
Public.

Description

NaCl: Add test to check that GDB debug stub works in Chrome Test runs empty NaCl module in a browser under debugging and checks that it completes successfully when debugger sends continue command. BUG=157312 TEST= NaClGdbDebugStubRspTest.Empty Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171805

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : rebase #

Total comments: 26

Patch Set 4 : #

Total comments: 2

Patch Set 5 : rebase #

Total comments: 28

Patch Set 6 : #

Patch Set 7 : raise exception for invalid test names #

Patch Set 8 : add missing file #

Patch Set 9 : remove W00 case - it can't happen #

Total comments: 14

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -2 lines) Patch
M chrome/browser/nacl_host/nacl_browser.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser.cc View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -2 lines 0 comments Download
A chrome/browser/nacl_host/test/debug_stub_browser_tests.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/test/gdb_rsp.py View 1 2 3 4 5 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M net/base/tcp_listen_socket.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M net/base/tcp_listen_socket.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
halyavin
8 years, 2 months ago (2012-10-22 17:32:57 UTC) #1
sky
http://codereview.chromium.org/11236025/diff/1011/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/11236025/diff/1011/chrome/chrome_tests.gypi#newcode3271 chrome/chrome_tests.gypi:3271: 'browser/nacl_host/test/nacl_enable_debug_stub_browsertest.cc', In general we list all sources and exclude ...
8 years, 2 months ago (2012-10-22 20:41:25 UTC) #2
Mark Seaborn
http://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc#newcode659 chrome/browser/nacl_host/nacl_process_host.cc:659: NaClBrowser* nacl_browser = NaClBrowser::GetInstance(); Instead of adding HasDebugStubPortListener() etc., ...
8 years, 2 months ago (2012-10-23 01:14:50 UTC) #3
szym
I only skimmed the CL, but in general I feel working directly with SocketDescriptor is ...
8 years, 2 months ago (2012-10-23 02:08:48 UTC) #4
Mark Seaborn
On 22 October 2012 19:08, <szym@chromium.org> wrote: > I only skimmed the CL, but in ...
8 years, 2 months ago (2012-10-23 02:28:46 UTC) #5
Mark Seaborn
On 22 October 2012 19:08, <szym@chromium.org> wrote: > I only skimmed the CL, but in ...
8 years, 2 months ago (2012-10-23 02:28:46 UTC) #6
halyavin
http://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc#newcode659 chrome/browser/nacl_host/nacl_process_host.cc:659: NaClBrowser* nacl_browser = NaClBrowser::GetInstance(); On 2012/10/23 01:14:50, Mark Seaborn ...
8 years, 2 months ago (2012-10-23 11:59:29 UTC) #7
halyavin
Currently this test fails because it needs a change in NaCl which is located here: ...
8 years, 2 months ago (2012-10-23 12:18:30 UTC) #8
halyavin
NaCl change have been committed and pulled into chrome tree. Please, take another look.
8 years ago (2012-12-04 15:48:46 UTC) #9
Mark Seaborn
Mostly good... https://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/nacl_process_host.cc#newcode659 chrome/browser/nacl_host/nacl_process_host.cc:659: NaClBrowser* nacl_browser = NaClBrowser::GetInstance(); On 2012/10/23 11:59:29, ...
8 years ago (2012-12-04 21:46:42 UTC) #10
halyavin
https://codereview.chromium.org/11236025/diff/20002/chrome/browser/nacl_host/nacl_browser.h File chrome/browser/nacl_host/nacl_browser.h (right): https://codereview.chromium.org/11236025/diff/20002/chrome/browser/nacl_host/nacl_browser.h#newcode56 chrome/browser/nacl_host/nacl_browser.h:56: void DebugStubNewPortAllocated(int port); On 2012/12/04 21:46:42, Mark Seaborn wrote: ...
8 years ago (2012-12-05 10:05:57 UTC) #11
halyavin
https://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/test/debug_stub_browser_tests.py File chrome/browser/nacl_host/test/debug_stub_browser_tests.py (right): https://codereview.chromium.org/11236025/diff/1011/chrome/browser/nacl_host/test/debug_stub_browser_tests.py#newcode14 chrome/browser/nacl_host/test/debug_stub_browser_tests.py:14: name = args[1] On 2012/12/04 21:46:42, Mark Seaborn wrote: ...
8 years ago (2012-12-05 10:16:55 UTC) #12
halyavin
https://codereview.chromium.org/11236025/diff/20002/chrome/browser/nacl_host/test/debug_stub_browser_tests.py File chrome/browser/nacl_host/test/debug_stub_browser_tests.py (right): https://codereview.chromium.org/11236025/diff/20002/chrome/browser/nacl_host/test/debug_stub_browser_tests.py#newcode12 chrome/browser/nacl_host/test/debug_stub_browser_tests.py:12: assert result == 'W00' or result == 'X09', result ...
8 years ago (2012-12-05 10:46:44 UTC) #13
Mark Seaborn
LGTM with fixes. Please fill out a relevant issue number in BUG=. https://codereview.chromium.org/11236025/diff/20002/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc ...
8 years ago (2012-12-05 18:00:46 UTC) #14
szym
https://codereview.chromium.org/11236025/diff/12004/net/base/tcp_listen_socket.cc File net/base/tcp_listen_socket.cc (right): https://codereview.chromium.org/11236025/diff/12004/net/base/tcp_listen_socket.cc#newcode81 net/base/tcp_listen_socket.cc:81: SocketDescriptor s = CreateAndBind(ip, 0); You are passing port ...
8 years ago (2012-12-05 18:21:37 UTC) #15
szym
https://codereview.chromium.org/11236025/diff/12004/net/base/tcp_listen_socket.cc File net/base/tcp_listen_socket.cc (right): https://codereview.chromium.org/11236025/diff/12004/net/base/tcp_listen_socket.cc#newcode81 net/base/tcp_listen_socket.cc:81: SocketDescriptor s = CreateAndBind(ip, 0); On 2012/12/05 18:21:37, szym ...
8 years ago (2012-12-05 18:22:31 UTC) #16
halyavin
https://codereview.chromium.org/11236025/diff/40003/chrome/browser/nacl_host/nacl_browser.h File chrome/browser/nacl_host/nacl_browser.h (right): https://codereview.chromium.org/11236025/diff/40003/chrome/browser/nacl_host/nacl_browser.h#newcode56 chrome/browser/nacl_host/nacl_browser.h:56: // port listener, chrome will open ephemeral port for ...
8 years ago (2012-12-06 15:35:01 UTC) #17
szym
lgtm https://codereview.chromium.org/11236025/diff/42004/net/base/tcp_listen_socket.cc File net/base/tcp_listen_socket.cc (right): https://codereview.chromium.org/11236025/diff/42004/net/base/tcp_listen_socket.cc#newcode82 net/base/tcp_listen_socket.cc:82: if (s == kInvalidSocket) { nit: codestyle suggests ...
8 years ago (2012-12-07 15:00:30 UTC) #18
halyavin
https://codereview.chromium.org/11236025/diff/42004/net/base/tcp_listen_socket.cc File net/base/tcp_listen_socket.cc (right): https://codereview.chromium.org/11236025/diff/42004/net/base/tcp_listen_socket.cc#newcode82 net/base/tcp_listen_socket.cc:82: if (s == kInvalidSocket) { On 2012/12/07 15:00:31, szym ...
8 years ago (2012-12-07 15:17:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/11236025/48001
8 years ago (2012-12-07 15:17:42 UTC) #20
commit-bot: I haz the power
Presubmit check for 11236025-48001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-07 15:17:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/11236025/57001
8 years ago (2012-12-07 15:50:16 UTC) #22
commit-bot: I haz the power
8 years ago (2012-12-07 17:57:36 UTC) #23
Message was sent while issue was closed.
Change committed as 171805

Powered by Google App Engine
This is Rietveld 408576698