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

Issue 10837207: Add NaCl smoke test to browser_tests. (Closed)

Created:
8 years, 4 months ago by Nick Bray (chromium)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, jam
Visibility:
Public.

Description

Add NaCl smoke test to browser_tests. The smoke test is simple - it checks that Chrome can load nexes. The more interesting part of this CL is that it lays the groundwork for adding more NaCl tests to browser_tests. This will allow many nacl_integration tests to be rewritten as browser_tests. This CL adds an extensible jig for decoding messages from Javascript, which makes it easier to add test logic in the web page. This CL also establishes locations in the build directory for nexes and other test data. There are two followup CLs planned: 1) simplify how nexes are built in GYP and 2) share the code for running tests in Javascript with the PPAPI test suite. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2959 TEST= browser_tests --gtest_filter=NaClBrowserTest* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151716

Patch Set 1 #

Total comments: 41

Patch Set 2 : Edits #

Total comments: 28

Patch Set 3 : Edits #

Patch Set 4 : Remove timer. #

Patch Set 5 : Manifest generation #

Patch Set 6 : Merge + GYP tweak. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+551 lines, -43 lines) Patch
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/test/base/ui_test_utils.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/base/ui_test_utils.cc View 1 2 chunks +43 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/DEPS View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/OWNERS View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/nacl_load_test.html View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/nacl_test_data.gyp View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
A chrome/test/data/nacl/simple.cc View 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/nacl/OWNERS View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/nacl/nacl_browsertest.cc View 1 2 3 1 chunk +310 lines, -0 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 3 chunks +3 lines, -42 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
sky
I did a quick look over parts of this. I'm not familiar enough with the ...
8 years, 4 months ago (2012-08-10 22:34:15 UTC) #1
Nick Bray
Fixed the style issues. Could you give me more background on test timeouts? I'll look ...
8 years, 4 months ago (2012-08-10 23:16:28 UTC) #2
Nick Bray
re: parameterized tests - the deal breaker for me is that the resulting test names ...
8 years, 4 months ago (2012-08-10 23:42:30 UTC) #3
bradn
LGTM on the gyp http://codereview.chromium.org/10837207/diff/1013/chrome/test/data/nacl/nacl_test_data.gyp File chrome/test/data/nacl/nacl_test_data.gyp (right): http://codereview.chromium.org/10837207/diff/1013/chrome/test/data/nacl/nacl_test_data.gyp#newcode9 chrome/test/data/nacl/nacl_test_data.gyp:9: 'targets': [ This is pretty ...
8 years, 4 months ago (2012-08-13 21:10:59 UTC) #4
sky
https://chromiumcodereview.appspot.com/10837207/diff/1/chrome/test/nacl/nacl_browsertest.cc File chrome/test/nacl/nacl_browsertest.cc (right): https://chromiumcodereview.appspot.com/10837207/diff/1/chrome/test/nacl/nacl_browsertest.cc#newcode163 chrome/test/nacl/nacl_browsertest.cc:163: timer_.Start(FROM_HERE, timeout, this, &JavascriptTestObserver::TimeOut); On 2012/08/10 23:16:28, Nick Bray ...
8 years, 4 months ago (2012-08-13 21:29:56 UTC) #5
Mark Seaborn
https://chromiumcodereview.appspot.com/10837207/diff/1013/chrome/test/base/ui_test_utils.cc File chrome/test/base/ui_test_utils.cc (right): https://chromiumcodereview.appspot.com/10837207/diff/1013/chrome/test/base/ui_test_utils.cc#newcode339 chrome/test/base/ui_test_utils.cc:339: size_t match, exe_size, src_size; Nit: The normal style is ...
8 years, 4 months ago (2012-08-13 22:16:59 UTC) #6
Nick Bray (chromium)
PTAL https://chromiumcodereview.appspot.com/10837207/diff/1013/chrome/test/data/nacl/DEPS File chrome/test/data/nacl/DEPS (right): https://chromiumcodereview.appspot.com/10837207/diff/1013/chrome/test/data/nacl/DEPS#newcode5 chrome/test/data/nacl/DEPS:5: On 2012/08/13 22:16:59, Mark Seaborn wrote: > Drop ...
8 years, 4 months ago (2012-08-13 23:16:25 UTC) #7
Nick Bray (chromium)
Forgot to remove the timer, sorry. Doing it...
8 years, 4 months ago (2012-08-13 23:16:59 UTC) #8
Nick Bray (chromium)
Good to go, PTAL.
8 years, 4 months ago (2012-08-13 23:45:31 UTC) #9
sky
LGTM
8 years, 4 months ago (2012-08-14 00:11:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncbray@chromium.org/10837207/12004
8 years, 4 months ago (2012-08-14 23:13:33 UTC) #11
commit-bot: I haz the power
Try job failure for 10837207-12004 (retry) on win_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-15 02:10:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncbray@chromium.org/10837207/12004
8 years, 4 months ago (2012-08-15 16:58:41 UTC) #13
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 18:23:39 UTC) #14
Change committed as 151716

Powered by Google App Engine
This is Rietveld 408576698