summaryrefslogtreecommitdiffstats
path: root/chrome/test/nacl
Commit message (Collapse)AuthorAgeFilesLines
* Use an integer for the port parameter to the UI test HTTP server.evan@chromium.org2010-07-301-1/+1
| | | | | | Review URL: http://codereview.chromium.org/2884054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54287 0039d316-1c4b-4281-b951-d872f2087c98
* Convert a bunch of easy AppendSwitchWithValue to *ASCII.evan@chromium.org2010-07-301-1/+1
| | | | | | | | | For this patch, I skipped over any instance where it wasn't a nearly trivial change. Review URL: http://codereview.chromium.org/3069014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54285 0039d316-1c4b-4281-b951-d872f2087c98
* CommandLine: add a CopySwitchesFrom() and AppendSwitchPath()evan@chromium.org2010-07-291-8/+6
| | | | | | | | | | | These are two common patterns in Chrome code: copying a subset of switches from one CommandLine to another, and appending a FilePath to a CommandLine. This sets me up to do a lot more deprecation in a follow-up change. Review URL: http://codereview.chromium.org/3012021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54218 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-263-0/+3
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Mark NaClSandboxTest.NaClOuterSBTest as flaky.maruel@chromium.org2010-07-241-1/+2
| | | | | | | | | BUG=50121 TBR=jvoung Review URL: http://codereview.chromium.org/3030016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53576 0039d316-1c4b-4281-b951-d872f2087c98
* Set up tests to exercise the chrome outersandbox from the nacl loader.jvoung@google.com2010-07-155-63/+171
| | | | | | | | | | | | | | | | | | | It is similar to the renderer sandbox tests in that the test code is separated into a DLL and only loaded based on commandline flags. Currently tests file open, process creation, and connect. This is currently not set up for Linux. To set it up for Linux, we need to be more careful about what tests are expected to pass, and will need to look into zygote process for how to get the test shared lib loaded. BUG=39409 TEST=none Review URL: http://codereview.chromium.org/1549046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52567 0039d316-1c4b-4281-b951-d872f2087c98
* Mark SrpcPluginTest as flaky.ericu@google.com2010-06-231-1/+1
| | | | | | | | | BUG=643 TEST=none Review URL: http://codereview.chromium.org/2799029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50665 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable nacl_ui_tests on Windows + fix win64 issue.gregoryd@google.com2010-05-201-33/+0
| | | | | | | | | | Some functions in master_preferences_dummy.cc are now called but they are still not relevant for the 64-bit binary. BUG=44371 Review URL: http://codereview.chromium.org/2115011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47825 0039d316-1c4b-4281-b951-d872f2087c98
* Enable NaCl tests on Mac and Linux gregoryd@google.com2010-05-171-0/+33
| | | | | | | | BUG=44371 Review URL: http://codereview.chromium.org/2066008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47457 0039d316-1c4b-4281-b951-d872f2087c98
* WebKit roll 59478:59607yurys@chromium.org2010-05-171-8/+9
| | | | | | | | | TBR=atwilson BUG=44371,44371 Review URL: http://codereview.chromium.org/2132004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47420 0039d316-1c4b-4281-b951-d872f2087c98
* Make 2 NaCl integration tests not flakygregoryd@google.com2010-04-141-5/+2
| | | | | | | BUG=40669,41007 Review URL: http://codereview.chromium.org/1605025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44520 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify nacl_ui_tests code.gregoryd@google.com2010-04-122-176/+14
| | | | | | | | We now rely on the fact that both html and nexe files exist in the prebuilt directory, so there is no reason to copy them. Review URL: http://codereview.chromium.org/1637004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44270 0039d316-1c4b-4281-b951-d872f2087c98
* Make NaCl tests not flaky on Windows, add npapi_hw testgregoryd@google.com2010-04-082-26/+29
| | | | | | | BUG=28176,40669 Review URL: http://codereview.chromium.org/1613003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44018 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Tests cleanup:phajdan.jr@chromium.org2010-04-082-15/+7
| | | | | | | | | | | | | | - use timeouts correctly - use more automation methods to make test code more clear - use more reliable ways of waiting - remove unnecessary automation calls TEST=none BUG=none Review URL: http://codereview.chromium.org/1553016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43932 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Create a new sandbox type which allows access to Unix sockets in the Macmsneck@google.com2010-04-021-3/+1
| | | | | | | | | | | | | | | | | | | | | renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code) into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "--nosandbox" flag when running Mac tests. See http://codereview.chromium.org/1234003/show and http://codereview.chromium.org/1525005/show which were both reverted because of problems on Mac 10.6. This change is identical except for the ";NACL" lines in renderer.sb files and the corresponding lines in nacl-loader.sb. Unix socket support for the sandbox changed considerably from 10.5 to 10.6. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1559012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43473 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43253 - 1. Create a new sandbox type which allows access to Unix ↵dmaclach@chromium.org2010-03-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | sockets in the Mac renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code) into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "nosandbox" flag when running Mac tests. See http://codereview.chromium.org/1234003/show which was reverted because of problems on Mac 10.6. This change is identical except for the ";NACL" lines in the *.sb files. I've removed the 10.6specific sandbox commands and used the generic commands that work on 10.5 and 10.6. I will work on adding the 10.6specific commands in a different change list. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1525005 TBR=msneck@google.com Review URL: http://codereview.chromium.org/1572009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43259 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Create a new sandbox type which allows access to Unix sockets in the Macmsneck@google.com2010-03-311-3/+1
| | | | | | | | | | | | | | | | | | | | | renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code) into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "--nosandbox" flag when running Mac tests. See http://codereview.chromium.org/1234003/show which was reverted because of problems on Mac 10.6. This change is identical except for the ";NACL" lines in the *.sb files. I've removed the 10.6-specific sandbox commands and used the generic commands that work on 10.5 and 10.6. I will work on adding the 10.6-specific commands in a different change list. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1525005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43253 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable nacl_ui_tests for Mac and Linuxgregoryd@google.com2010-03-311-0/+24
| | | | | | Review URL: http://codereview.chromium.org/1508011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43242 0039d316-1c4b-4281-b951-d872f2087c98
* Disable all the nacl tests because once again they don'tnsylvain@chromium.org2010-03-311-6/+8
| | | | | | | | | work on windows. bug:28176 Review URL: http://codereview.chromium.org/1577004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43214 0039d316-1c4b-4281-b951-d872f2087c98
* cleanup: Include base/path_service.h in tests that use it.thestig@chromium.org2010-03-311-0/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1571004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43163 0039d316-1c4b-4281-b951-d872f2087c98
* linux: enable seccomp sandbox by defaultevan@chromium.org2010-03-301-0/+6
| | | | | | | | | | | | | | | It seems the best way to keep the seccomp sandbox working is to have everyone's development environment have it on by default. So we turn on the seccomp sandbox, but only for non-official builds. If the build-time flag is set: --disable-seccomp-sandbox turns it off. If the build-time flag is *not* set: --enable-seccomp-sandbox turns it on. BUG=36133 Review URL: http://codereview.chromium.org/1558003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43122 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 43086 - 1. Create a new sandbox type which allows access to Unix ↵dmaclach@chromium.org2010-03-301-0/+3
| | | | | | | | | | | | | | | | | | sockets in the Mac renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "nosandbox" flag when running Mac tests. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1234003 TBR=msneck@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43093 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Create a new sandbox type which allows access to Unix sockets in the Macmsneck@google.com2010-03-301-3/+0
| | | | | | | | | | | | | | renderer sandbox to support running Native Client. 2. Put the Native Client sel_ldr (which contains the user's untrusted code into a new Mac sandbox type. 3. Open /dev/random in SandboxWarmup(). 4. Remove the "--nosandbox" flag when running Mac tests. BUG=http://code.google.com/p/nativeclient/issues/detail?id=327 TEST=nacl_ui_tests still pass while running in the sandbox. Review URL: http://codereview.chromium.org/1234003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43086 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Unify polling interval in some of the polling functionsphajdan.jr@chromium.org2010-03-301-1/+0
| | | | | | | | | | | | | | | | | | | | | | in the UI test framework: - WaitUntilCookieValue - WaitUntilCookieNonEmpty - WaitUntilJavaScriptCondition This helps reduce number of arbitrary "magic timeouts" which are different in each test. We don't remove the test timeout parameter, because it varies depending on test case, and for now we don't have a better solution. Trying a "naive" way leads to hangs on flaky tests. TEST=UI-based tests BUG=none Review URL: http://codereview.chromium.org/1557001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43062 0039d316-1c4b-4281-b951-d872f2087c98
* Make the tests use 64-bit nexes when running 64-bit Linux Chromegregoryd@google.com2010-03-271-0/+2
| | | | | | | | | | BUG=38714 TEST=watch NaCl integration Linux bot Review URL: http://codereview.chromium.org/1479001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42908 0039d316-1c4b-4281-b951-d872f2087c98
* Add --enable-nacl switch that enables both NaCl and GPU plugins.gregoryd@google.com2010-03-261-1/+1
| | | | | | | | | BUG=38554 TEST=nacl_ui_tests Review URL: http://codereview.chromium.org/1445001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42829 0039d316-1c4b-4281-b951-d872f2087c98
* Make nacl_ui_tests not flaky on Mac, enable the sandbox on Win64gregoryd@google.com2010-03-261-40/+0
| | | | | | | | | | | | Win64 are not enabled yet, but should run in the sandbox once they are. Mac problem was hopefully fixed with bug 37707 BUG=http://code.google.com/p/nativeclient/issues/detail?id=342 TEST=nacl_ui_tests Review URL: http://codereview.chromium.org/1342002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42702 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for running NaCl-Chrome integration tests on Win64gregoryd@google.com2010-03-111-1/+23
| | | | | | | | BUG=28176 TEST=this change Review URL: http://codereview.chromium.org/791002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41348 0039d316-1c4b-4281-b951-d872f2087c98
* nacl: add some comments to nacl_ui_testsevan@chromium.org2010-03-092-21/+37
| | | | | | | | | | Just some basic observations I picked up while reading the code. TEST=compiles, should have no functional change Review URL: http://codereview.chromium.org/729003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41059 0039d316-1c4b-4281-b951-d872f2087c98
* NaCl: remove --no-sandbox flag when running tests on Linuxmseaborn@chromium.org2010-03-081-1/+1
| | | | | | | | | | | With the recent DEPS update, the NaCl internal plugin works inside the Linux SUID sandbox. BUG=36676 TEST=nacl_ui_tests Review URL: http://codereview.chromium.org/669269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40895 0039d316-1c4b-4281-b951-d872f2087c98
* Mark nacl_ui_tests as flaky on Macgregoryd@google.com2010-03-061-1/+28
| | | | | | | | | | TEST=none BUG=none TBR=nsylvain Review URL: http://codereview.chromium.org/668199 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40808 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the timeout for nacl_ui_testsgregoryd@google.com2010-03-052-7/+13
| | | | | | Review URL: http://codereview.chromium.org/669215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40798 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the --enable-nacl-on-mac flag, since the syscall thunking code is securedspringer@google.com2010-03-021-3/+0
| | | | | | | | | | | | | now. The mac no longer needs 2 flags in order to load .nexes, it is only behind the --internal-nacl flag like everyone else. BUG=328 (tracked in the Native Client project) TEST=Run Chrome on a Mac without the --enable-nacl-on-mac flag, and load a .nexe. It should work. Review URL: http://codereview.chromium.org/661370 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40411 0039d316-1c4b-4281-b951-d872f2087c98
* Add more integration tests for NaCl gregoryd@google.com2010-02-192-9/+161
| | | | | | Review URL: http://codereview.chromium.org/570015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39491 0039d316-1c4b-4281-b951-d872f2087c98
* Prepare for running nacl_ui_test on Mac and Linux.gregoryd@google.com2010-02-051-0/+6
| | | | | | | | This is the NaCl-Chrome integration test that runs in Chrome waterfall, currently on Windows only. I am working on starting new bots that will run it on Mac and Linux. Review URL: http://codereview.chromium.org/563021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38218 0039d316-1c4b-4281-b951-d872f2087c98
* Make NaCl integration test not flaky - fixed the problem that caused the ↵gregoryd@google.com2009-12-231-3/+1
| | | | | | | | | | | test to fail. BUG=30990 TEST=nacl_ui_test Review URL: http://codereview.chromium.org/519001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35222 0039d316-1c4b-4281-b951-d872f2087c98
* Mark NaClTest.SrpcHelloWorld as flaky.maruel@chromium.org2009-12-221-1/+2
| | | | | | | | | | TEST=none BUG=30990 TBR=gregoryd Review URL: http://codereview.chromium.org/508022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35149 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test for NaCl in Chrome.gregoryd@google.com2009-11-182-0/+23
| | | | | | | | | | | | This test will allow us to know when the tests fail because the http server failed to start and not due to a NaCl problem This CL depends on http://codereview.chromium.org/394016/show TEST=this CL BUG=none Review URL: http://codereview.chromium.org/385113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32378 0039d316-1c4b-4281-b951-d872f2087c98
* After recent changes (handle passing and RNG) Native Client tests run ↵gregoryd@google.com2009-10-221-1/+0
| | | | | | | | successfully in the sandbox. Review URL: http://codereview.chromium.org/316011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29818 0039d316-1c4b-4281-b951-d872f2087c98
* This is a simple integration test that loads a simple nexe and verifies that ↵gregoryd@google.com2009-10-132-0/+137
Javascript can communicate with it. The required html, javascript and nexe files are checked in into the NaCl tree. Review URL: http://codereview.chromium.org/272005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28796 0039d316-1c4b-4281-b951-d872f2087c98