summaryrefslogtreecommitdiffstats
path: root/tools/android/common
Commit message (Collapse)AuthorAgeFilesLines
* Make callers of CommandLine use it via the base:: namespace.avi2014-12-231-2/+2
| | | | | | | | | | | | Covers testing/, tools/, ui/, and win8/. BUG=422426 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/819223002 Cr-Commit-Position: refs/heads/master@{#309538}
* [Android] Fix gn build for instrumentation tests.qsr2014-11-034-3/+21
| | | | | | | | | | | | | | This fixes the following issue: - allow forwarder2 to compile with clang - Makes android executables position independant so that they can be run on android devices - Add missing BUILD.gn TBR=brettw@chromium.org Review URL: https://codereview.chromium.org/684133002 Cr-Commit-Position: refs/heads/master@{#302429}
* Move CommandLine to base namespace.brettw@chromium.org2014-03-171-2/+4
| | | | | | | | | | | | Fix all forward-declares and header files referencing CommandLine. This keeps a "using base::CommandLine" in the command line header file so that the rest of the source files can be changes in a follow-up. TBR=sky Review URL: https://codereview.chromium.org/196413016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257514 0039d316-1c4b-4281-b951-d872f2087c98
* Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close.mark@chromium.org2013-12-032-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is incorrect to wrap close in HANDLE_EINTR on Linux. Correctness is generally undefined on Mac, but as of r223369, it is incorrect in Chrome on Mac. To avoid new offenders, a PRESUBMIT check ensures that HANDLE_EINTR is not used with close, and that IGNORE_EINTR is only used with close. Unnecessary #includes of eintr_wrapper.h are also removed. base/posix/einter_wrapper.h, PRESUBMIT.py, and ppapi/tests/test_broker.cc contain non-mechanical changes. Variable naming within the latter is updated per r178174. Missing #includes for <errno.h> in content/zygote/zygote_main_linux.cc and tools/android/common/daemon.cc were manually added. Mechanical changes were generated by running: sed -E -i '' \ -e 's/((=|if|return|CHECK|EXPECT|ASSERT).*)HANDLE(_EINTR\(.*close)/\1IGNORE\3/' \ -e 's/(ignore_result|void ?)\(HANDLE_EINTR\((.*close\(.*)\)\)/\2/' \ -e 's/(\(void\) ?)?HANDLE_EINTR\((.*close\(.*)\)/\2/' \ $(git grep -El 'HANDLE_EINTR.*close') sed -E -i '' -e '/#include.*eintr_wrapper\.h"/d' \ $(grep -EL '(HANDLE|IGNORE)_EINTR' \ $(git grep -El '#include.*eintr_wrapper\.h"')) BUG=269623 R=agl@chromium.org, jln@chromium.org TBR=OWNERS Review URL: https://codereview.chromium.org/100253002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238390 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in testing/, third_party/, tools/.avi@chromium.org2013-06-111-1/+1
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15851009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205470 0039d316-1c4b-4281-b951-d872f2087c98
* Move eintr_wrapper.h from base to base/posixbrettw@chromium.org2012-11-142-2/+2
| | | | | | Review URL: https://codereview.chromium.org/11366229 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167739 0039d316-1c4b-4281-b951-d872f2087c98
* Support HTTP test-server based net unit tests on Android.pliard@chromium.org2012-11-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This changes forwarder2 to support both test-server spawner and HTTP server forwarding. The main issue was that the device_forwarder was killed when instantiating a second Forwarder (Python object). Test server based unit tests require two device-to-host redirections, one for the test server spawner and one for the HTTP server. The port used by the HTTP server is allocated dynamically which means that we can't know the full forwarding configuration before we spawn a HTTP server (through the test server spawner). This CL changes the forwarder to let it forward new ports while it is running by making host_forwarder a daemon. This is similar to how ADB works. This also means that a single host_forwarder process (daemon) can now handle multiple devices. BUG=146979 Review URL: https://chromiumcodereview.appspot.com/11269036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167167 0039d316-1c4b-4281-b951-d872f2087c98
* android: Build android_tools_common target as static_library.tfarina@chromium.org2012-11-011-1/+1
| | | | | | | | | | BUG=111541 R=bulach@chromium.org Review URL: https://chromiumcodereview.appspot.com/11275079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165422 0039d316-1c4b-4281-b951-d872f2087c98
* Forwarder 2 implementationfelipeg@chromium.org2012-09-072-1/+2
| | | | | | | | | | | | This is the first CL for implementing the Forwarder2, necessary to android testing. The big picture CL can be seem here: https://chromiumcodereview.appspot.com/10918057/ BUG=146502 Review URL: https://chromiumcodereview.appspot.com/10916112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155446 0039d316-1c4b-4281-b951-d872f2087c98
* Make tools/android code built with clangmichaelbai@chromium.org2012-09-072-6/+23
| | | | | | | | | BUG=143931 Review URL: https://chromiumcodereview.appspot.com/10912135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155439 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-113-3/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* fake_dns tool for Android (fixed DEPS).wangxianzhu@chromium.org2012-02-173-10/+21
| | | | | | | | | | It runs on device to resolves any host name to 127.0.0.1. With it and the forwarder, all HTTP requests are redirected to our replay server running on the host machine. Review URL: http://codereview.chromium.org/9419020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122630 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 122320 - fake_dns tool for Android.creis@chromium.org2012-02-163-21/+10
| | | | | | | | | | | | | It runs on device to resolves any host name to 127.0.0.1. With it and the forwarder, all HTTP requests are redirected to our replay server running on the host machine. Review URL: http://codereview.chromium.org/9401014 TBR=wangxianzhu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9415018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122348 0039d316-1c4b-4281-b951-d872f2087c98
* fake_dns tool for Android.wangxianzhu@chromium.org2012-02-163-10/+21
| | | | | | | | | | It runs on device to resolves any host name to 127.0.0.1. With it and the forwarder, all HTTP requests are redirected to our replay server running on the host machine. Review URL: http://codereview.chromium.org/9401014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122320 0039d316-1c4b-4281-b951-d872f2087c98
* Fix style issues of tools/androidwangxianzhu@chromium.org2012-02-153-16/+12
| | | | | | Review URL: http://codereview.chromium.org/9402017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122160 0039d316-1c4b-4281-b951-d872f2087c98
* tools/android/forwarder (as well as tools/android/common)wangxianzhu@chromium.org2012-02-157-0/+298
'forwarder' is a tool that can forward a TCP port listening on the device to a port on the host. It works like 'adb forward' but in the reverse direction. It's useful to run tests on the device that need to access TCP services on the host. Review URL: http://codereview.chromium.org/9359003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122048 0039d316-1c4b-4281-b951-d872f2087c98