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

Issue 9662055: Test for --nacl-gdb functionality. (Closed)

Created:
8 years, 9 months ago by halyavin
Modified:
8 years, 9 months ago
Reviewers:
Mark Seaborn, brettw
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Test for --nacl-gdb functionality. I expanded access rights for NaCl loader (launched under nacl-gdb) process handle from QueryLimitedInformation to QueryInformation because Windows XP doesn't support QueryLimitedInformation. However, this test is switched off on Windows 32-bit due to problems with allocating 1Gb of address space. Future nacl-gdb must have special launching code to solve this problem. BUG=117010 TEST= browser_tests.exe --gtest_filter=NaClGdbTest.* (on Windows) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127453

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : remove unused includes #

Patch Set 4 : #

Patch Set 5 : fix compile errors #

Patch Set 6 : #

Total comments: 32

Patch Set 7 : #

Total comments: 6

Patch Set 8 : Check that nacl_gdb actually runs #

Patch Set 9 : I forgot to add new file #

Patch Set 10 : #

Patch Set 11 : Windows XP compatibility #

Total comments: 13

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : Use environment variable to pass file between test and mock_nacl_gdb #

Total comments: 8

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -199 lines) Patch
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +8 lines, -2 lines 0 comments Download
A chrome/browser/nacl_host/test/mock_nacl_gdb.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/test/mock_nacl_gdb.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/nacl_host/test/nacl_gdb_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/ui/ppapi_uitest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +80 lines, -0 lines 0 comments Download
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +171 lines, -197 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/tests/test_empty.h View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A ppapi/tests/test_empty.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
halyavin
mseaborn - full review. brettw - need LGTM due to OWNERS file. I added empty ...
8 years, 9 months ago (2012-03-12 15:24:59 UTC) #1
Mark Seaborn
http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc File chrome/browser/nacl_host/mock_nacl_gdb.cc (right): http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc#newcode1 chrome/browser/nacl_host/mock_nacl_gdb.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 9 months ago (2012-03-13 01:05:19 UTC) #2
brettw
http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc File chrome/browser/nacl_host/mock_nacl_gdb.cc (right): http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc#newcode32 chrome/browser/nacl_host/mock_nacl_gdb.cc:32: char* irtFileName = &argv[2][strlen(kNaClIrt)]; style: irt_file_name (no caps in ...
8 years, 9 months ago (2012-03-13 05:57:49 UTC) #3
halyavin
http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc File chrome/browser/nacl_host/mock_nacl_gdb.cc (right): http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.cc#newcode1 chrome/browser/nacl_host/mock_nacl_gdb.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 9 months ago (2012-03-13 12:48:27 UTC) #4
brettw
Oh dud, I missed the other test file. LGTM when Mark is happy.
8 years, 9 months ago (2012-03-13 16:15:40 UTC) #5
Mark Seaborn
http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.gyp File chrome/browser/nacl_host/mock_nacl_gdb.gyp (right): http://codereview.chromium.org/9662055/diff/2023/chrome/browser/nacl_host/mock_nacl_gdb.gyp#newcode6 chrome/browser/nacl_host/mock_nacl_gdb.gyp:6: ['disable_nacl==0 and OS=="win"', { On 2012/03/13 12:48:27, halyavin wrote: ...
8 years, 9 months ago (2012-03-13 17:06:26 UTC) #6
halyavin
http://codereview.chromium.org/9662055/diff/11005/ppapi/tests/test_empty.cc File ppapi/tests/test_empty.cc (right): http://codereview.chromium.org/9662055/diff/11005/ppapi/tests/test_empty.cc#newcode9 ppapi/tests/test_empty.cc:9: // This test checks only that NaCl module loads ...
8 years, 9 months ago (2012-03-13 18:54:22 UTC) #7
Mark Seaborn
You're getting there, but you need to fix the trybot failure first. http://codereview.chromium.org/9662055/diff/15001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc ...
8 years, 9 months ago (2012-03-14 23:33:13 UTC) #8
halyavin
http://codereview.chromium.org/9662055/diff/15001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/9662055/diff/15001/chrome/browser/nacl_host/nacl_process_host.cc#newcode282 chrome/browser/nacl_host/nacl_process_host.cc:282: // If nacl-gdb switch is not empty, NaCl loader ...
8 years, 9 months ago (2012-03-15 15:31:36 UTC) #9
Mark Seaborn
http://codereview.chromium.org/9662055/diff/17007/chrome/browser/nacl_host/test/mock_nacl_gdb.gyp File chrome/browser/nacl_host/test/mock_nacl_gdb.gyp (right): http://codereview.chromium.org/9662055/diff/17007/chrome/browser/nacl_host/test/mock_nacl_gdb.gyp#newcode6 chrome/browser/nacl_host/test/mock_nacl_gdb.gyp:6: #TODO(halyavin): Implement this test for linux. Spacing: "# TODO..." ...
8 years, 9 months ago (2012-03-16 17:28:59 UTC) #10
Mark Seaborn
LGTM if you fix the issues from this message and the previous one. Thanks for ...
8 years, 9 months ago (2012-03-16 17:47:11 UTC) #11
halyavin
https://chromiumcodereview.appspot.com/9662055/diff/17007/chrome/browser/nacl_host/test/mock_nacl_gdb.gyp File chrome/browser/nacl_host/test/mock_nacl_gdb.gyp (right): https://chromiumcodereview.appspot.com/9662055/diff/17007/chrome/browser/nacl_host/test/mock_nacl_gdb.gyp#newcode6 chrome/browser/nacl_host/test/mock_nacl_gdb.gyp:6: #TODO(halyavin): Implement this test for linux. On 2012/03/16 17:28:59, ...
8 years, 9 months ago (2012-03-16 17:57:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/9662055/26009
8 years, 9 months ago (2012-03-19 07:25:12 UTC) #13
commit-bot: I haz the power
Presubmit check for 9662055-26009 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 9 months ago (2012-03-19 07:25:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/9662055/31007
8 years, 9 months ago (2012-03-19 08:48:01 UTC) #15
commit-bot: I haz the power
Try job failure for 9662055-31007 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 9 months ago (2012-03-19 11:19:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halyavin@google.com/9662055/31007
8 years, 9 months ago (2012-03-19 11:26:02 UTC) #17
commit-bot: I haz the power
8 years, 9 months ago (2012-03-19 13:09:01 UTC) #18
Change committed as 127453

Powered by Google App Engine
This is Rietveld 408576698