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

Issue 8585003: Test NaCl version of ppapi_tests via ui_tests (Closed)

Created:
9 years, 1 month ago by noelallen1
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Timur Iskhodzhanov, Alexander Potapenko, pam+watch_chromium.org, stuartmorgan+watch_chromium.org, Paweł Hajdan Jr., rvargas (doing something else)
Visibility:
Public.

Description

Test NaCl version of ppapi_tests via ui_tests This is a relative path version of: http://codereview.chromium.org/8539019 with valgrind tests disabled. Copy server pieces to build output dir. Update ppapi_uitests.cc to run server from output dir. Add test to ppapi_uitests, update dependecies. Update test_sever to support a fully qualified path. BUG= http://code.google.com/p/chromium/issues/detail?id=96782 TEST= try (ui_tests --gtest_filter="PPAPI*.*") Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110760

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -32 lines) Patch
M chrome/chrome_tests.gypi View 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 14 chunks +115 lines, -27 lines 0 comments Download
M ppapi/native_client/tests/ppapi_tests/test_case.nmf View 1 chunk +3 lines, -3 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 chunk +92 lines, -0 lines 0 comments Download
M ppapi/tests/test_url_loader.cc View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M tools/valgrind/gtest_exclude/ui_tests.gtest.txt View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
commit-bot: I haz the power
No comments yet.
9 years, 1 month ago (2011-11-18 19:08:21 UTC) #1
dmichael (off chromium)
some nits, o/w LGTM http://codereview.chromium.org/8585003/diff/2003/chrome/test/ui/ppapi_uitest.cc File chrome/test/ui/ppapi_uitest.cc (right): http://codereview.chromium.org/8585003/diff/2003/chrome/test/ui/ppapi_uitest.cc#newcode70 chrome/test/ui/ppapi_uitest.cc:70: FilePath exe_dir = CommandLine::ForCurrentProcess()->GetProgram().DirName(); nit: ...
9 years, 1 month ago (2011-11-18 20:10:25 UTC) #2
noelallen1
9 years, 1 month ago (2011-11-18 20:39:39 UTC) #3
http://codereview.chromium.org/8585003/diff/2003/chrome/test/ui/ppapi_uitest.cc
File chrome/test/ui/ppapi_uitest.cc (right):

http://codereview.chromium.org/8585003/diff/2003/chrome/test/ui/ppapi_uitest....
chrome/test/ui/ppapi_uitest.cc:70: FilePath exe_dir =
CommandLine::ForCurrentProcess()->GetProgram().DirName();
On 2011/11/18 20:10:25, dmichael wrote:
> nit: could you add a comment explaining why you need to run the web server
> pointing to a different location? (I assume it's so that it will be able to
find
> build artifacts like the nmf file and nexes).

Done.

http://codereview.chromium.org/8585003/diff/2003/chrome/test/ui/ppapi_uitest....
chrome/test/ui/ppapi_uitest.cc:165: return StringPrintf("%stestcase=%s",
base.c_str(), test_case.c_str());
On 2011/11/18 20:10:25, dmichael wrote:
> optional nit: I guess it's fine, but why not just
> return base + "testcase=" + test_case;
> ?
> (There's a similar use of StringPrintf below).
Previous comment from other reviewer to use StringPrintf.  :)

http://codereview.chromium.org/8585003/diff/2003/ppapi/tests/test_url_loader.cc
File ppapi/tests/test_url_loader.cc (right):

http://codereview.chromium.org/8585003/diff/2003/ppapi/tests/test_url_loader....
ppapi/tests/test_url_loader.cc:90: // Disable portion of test which failes when
the HTTP server's
On 2011/11/18 20:10:25, dmichael wrote:
> nit: failes->fails

Done.

http://codereview.chromium.org/8585003/diff/2003/ppapi/tests/test_url_loader....
ppapi/tests/test_url_loader.cc:94: // 
RUN_TEST_FORCEASYNC_AND_NOT(CrossOriginRequest, filter);
On 2011/11/18 20:10:25, dmichael wrote:
> You should be able to disable these only for NaCl, right?

They fail for both trusted and untrusted tests when you move the server.   I
felt it was better to always move the server, than conditionally move the server
and have different behavior.

Powered by Google App Engine
This is Rietveld 408576698