summaryrefslogtreecommitdiffstats
path: root/testing/android
Commit message (Collapse)AuthorAgeFilesLines
* Place jars into the java/libs for native unittest apkyongsheng.zhu@intel.com2012-07-112-12/+16
| | | | | | | | | | | | | | Complete the TODO for native unittests apk to place used jars into ${out.dir}/java/libs. Add the conditional check if there is no jar in that directory. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10701113 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146034 0039d316-1c4b-4281-b951-d872f2087c98
* [android] Split top-level scripts and libraries from build/android.bulach@chromium.org2012-07-091-2/+3
| | | | | | | | | | | | | | | | | - Top-level scripts are kept under build/android. - Utility libraries have been moved to build/android/pylib. - Fixes all imports and headers. This is in preparation for landing the "instrumentation" (java-based) tests, which will reuse several of these components. BUG= TEST=existing android tests Review URL: https://chromiumcodereview.appspot.com/10693110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145653 0039d316-1c4b-4281-b951-d872f2087c98
* Copying gdbserver to the apk to enable native debugging for native_test_apkshouqun.liu@intel.com2012-07-062-0/+21
| | | | | | | | | | BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10689102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145603 0039d316-1c4b-4281-b951-d872f2087c98
* Add WaitForDebugger for android native testsshouqun.liu@intel.com2012-07-051-0/+14
| | | | | | | | | | | | For convenience of debugging APKs of native tests (*_unittests, DumpRenderTree) BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10697083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145538 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream: Fix the native test launcher for Chrome on Android.jknotten@chromium.org2012-07-051-4/+7
| | | | | | | | | | | | | We need to terminate our own constructed argv[] before passing it into gtest as gtest requires a null-terminated argv. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10692095 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145525 0039d316-1c4b-4281-b951-d872f2087c98
* APK-based unittestsbulach@chromium.org2012-06-271-6/+10
| | | | | | | | | | | | | | Rather than chromium's LOG(ERROR) uses directly __android_log_write for the gtest printer. Cleans up the log and make it simpler to spot real errors. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10579040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144428 0039d316-1c4b-4281-b951-d872f2087c98
* Use rsync to copy android testing directoriesilevy@chromium.org2012-06-271-41/+31
| | | | | | | | | | | | | | | - excluding .svn directories, which were being pushed onto phones - should also allow us to avoid unnecessary io pylint cleanup of this file BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10662010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144392 0039d316-1c4b-4281-b951-d872f2087c98
* Register JNI methods before running unittests on android.nileshagrawal@chromium.org2012-06-271-3/+2
| | | | | | | | | | | | | A better way to implement: http://codereview.chromium.org/10658017/ BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10668047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144374 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Use a test specific macro to call JNI registrars during APK tests."nileshagrawal@chromium.org2012-06-261-21/+4
| | | | | | | | | | | | | | | | | TBR=jam@chromium.org,jrg@chromium.org (The original CL was submitted with a TBR too, incorrectly categorized as a simple gyp change) This reverts commit 575ab5330492664079ea89804bec615d15ea3b33. We intend to do this using run_all_unittests.cc in individual suites. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10662056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144240 0039d316-1c4b-4281-b951-d872f2087c98
* Use a test specific macro to call JNI registrars during APK tests.nileshagrawal@chromium.org2012-06-251-4/+21
| | | | | | | | | | | | | TBR=rsleevi@chromium.org,jam@chromium.org (Using TBR as this is a trivial gyp change) BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10658017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144057 0039d316-1c4b-4281-b951-d872f2087c98
* Run APK tests on the main thread.nileshagrawal@chromium.org2012-06-251-10/+14
| | | | | | | | | | | | | Many tests rely on being run on the main thread. In this CL we post a delayed task to run tests on the main thread and do not block in onCreate(). This can cause ANR if the main test activity receives a touch event, but this should not happen. BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10663024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144038 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicate call to InitAndroidTest.nileshagrawal@chromium.org2012-06-112-7/+0
| | | | | | | | | | | | The method is called from test_suite.cc. Also moving methods in test_support_android inside a namespace. BUG=125059 TEST=None Review URL: https://chromiumcodereview.appspot.com/10538065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141473 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium support of running DumpRenderTree as an apk on Androidwangxianzhu@chromium.org2012-06-013-52/+51
| | | | | | | | | | | | | | This is an upstream of chromium-android. The WebKit part is https://bugs.webkit.org/show_bug.cgi?id=86862. TBR=darin (for base/base.gyp) BUG=none TEST=build and run current native tests without error Review URL: https://chromiumcodereview.appspot.com/10408091 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140046 0039d316-1c4b-4281-b951-d872f2087c98
* Add the target ABI option for apk based test runneryongsheng.zhu@intel.com2012-05-301-3/+7
| | | | | | | | | | | | | | Remove the hardcode directory name 'armeabi' and replace it with the Android target ABI information. Trivial gyp changes that are android-specific; TBRing some owners TBR=mark@chromium.org,jam@chromium.org,sky@chromium.org BUG=128944 TEST= Review URL: https://chromiumcodereview.appspot.com/10383263 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139512 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ninja build for android.yfriedman@chromium.org2012-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | The primary issues is specifying the right path to PRODUCT_DIR (i.e. out/Release). The gyp generator for make specifies the absolute path but for ninja would use a relative path. Since the gyp targets don't line up with where the ant build files are located this causes failures such as base's java being generated in base/android/out/Release/... See: https://groups.google.com/forum/#!msg/gyp-developer/K2T_9obUya0/qq78_Ut-E-AJ for details. A couple of other minor fixes: - content java files are placed in out/Release/java/content to be consisent with other packages. - shared-libraries are now referenced by correct variables for apk-based tests - removed unused media/base/android/java/java.gyp (target is in media/media.gyp) TBR=mark@chromium.org,ben@chromium.org,rsleevi@chromium.org Review URL: https://chromiumcodereview.appspot.com/10386188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139418 0039d316-1c4b-4281-b951-d872f2087c98
* Add APK targets for content_unittests and net_unittests.nileshagrawal@chromium.org2012-05-251-3/+7
| | | | | | | | | | | | | | - Add a gyp template to simplify adding new targets. - Add support for multiple jars in the test APK. BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10399126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139106 0039d316-1c4b-4281-b951-d872f2087c98
* APK tests: Strip the shlibs before bundling in APK.nileshagrawal@chromium.org2012-05-221-2/+9
| | | | | | | | | | BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10414034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138176 0039d316-1c4b-4281-b951-d872f2087c98
* Put commandline for apk tests in /data/local/tmpnileshagrawal@chromium.org2012-05-161-7/+7
| | | | | | | | | | | | | | | We were trying to use the application directory which is not usually writable (unless the device is rooted). This allows us to run the tests on non-rooted devices. BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10398049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137368 0039d316-1c4b-4281-b951-d872f2087c98
* Run APK tests on the android_test trybot.nileshagrawal@chromium.org2012-05-161-1/+1
| | | | | | | | | | | | Test failures are ignored for now. TBR=mark@chromium.org,tsepez@chromium.org BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10387086 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137352 0039d316-1c4b-4281-b951-d872f2087c98
* Detect crashes while running native tests in APK.nileshagrawal@chromium.org2012-05-091-0/+41
| | | | | | | | | | | | | Adding signal handlers (for fatal signals) to output a marker indicating that the test crashed. BUG=125059 TEST= Review URL: https://chromiumcodereview.appspot.com/10310046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136050 0039d316-1c4b-4281-b951-d872f2087c98
* Add native debugging support to android content shell.jrg@chromium.org2012-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | How to native debug: - apply the patch listed in the code review description - adb_run_content_shell - gdb_content_shell - attach Eclipse; continue - now boom! SEGV in gdb. Sadly the native library crashes while loading so it's not registered with gdb yet (e.g no symbols or stack). This CL also adds in a file that got lost (testing/android/README.chromium). BUG= TEST= Review URL: http://codereview.chromium.org/10254028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135652 0039d316-1c4b-4281-b951-d872f2087c98
* Reapply "Changes according to review comments"wangxianzhu@chromium.org2012-05-051-0/+2
| | | | | | | | | | | | | | | | | Fixed an "unused variable" issue of the original CL (http://codereview.chromium.org/10224004/). Use Android API for GetDisplayNameForLocale(). Using Android API, we can reduce the data size of ICU and thus reduce the binary size of chromium-android. BUG=none TEST=L10nUtilTest.GetDisplayNameForLocale,L10nUtilTest.GetDisplayNameForCountry TBR=jrg@chromium.org,isherman@chromium.org,mark@chromium.org,jshin@chromium.org,rvargas@chromium.org Review URL: http://codereview.chromium.org/10310029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135524 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 135484 - Use Android API for GetDisplayNameForLocale().rvargas@google.com2012-05-041-2/+0
| | | | | | | | | | | | | | | | | | | failure: http://build.chromium.org/p/chromium.chromiumos/builders/ChromiumOS%20%28x86%29/builds/4835/steps/BuildTarget/logs/stdio Using Android API, we can reduce the data size of ICU and thus reduce the binary size of chromium-android. BUG=none TEST=L10nUtilTest.GetDisplayNameForLocale,L10nUtilTest.GetDisplayNameForCountry TBR=sky Review URL: http://codereview.chromium.org/10224004 TBR=wangxianzhu@chromium.org Review URL: https://chromiumcodereview.appspot.com/10380018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135490 0039d316-1c4b-4281-b951-d872f2087c98
* Use Android API for GetDisplayNameForLocale().wangxianzhu@chromium.org2012-05-041-0/+2
| | | | | | | | | | | | | Using Android API, we can reduce the data size of ICU and thus reduce the binary size of chromium-android. BUG=none TEST=L10nUtilTest.GetDisplayNameForLocale,L10nUtilTest.GetDisplayNameForCountry TBR=sky Review URL: http://codereview.chromium.org/10224004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135484 0039d316-1c4b-4281-b951-d872f2087c98
* Add PathUtilsTest.nileshagrawal@chromium.org2012-04-262-3/+13
| | | | | | | | | | | | - This test invokes JNI calls and included only if gtest_target_type=shared_library. - Also set the application context to get these JNI calls working. BUG=125059 TEST= Review URL: http://codereview.chromium.org/10161032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134144 0039d316-1c4b-4281-b951-d872f2087c98
* Package and load native library in content shell. Add content shell util ↵jrg@chromium.org2012-04-261-6/+13
| | | | | | | | | | | | scripts. BUG=None TEST= Review URL: http://codereview.chromium.org/10223007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134030 0039d316-1c4b-4281-b951-d872f2087c98
* Fix commandline and disabling tests for apk based tests.nileshagrawal@chromium.org2012-04-252-2/+2
| | | | | | | | | | | | | | | | | Command for running with a test filter: ./build/android/run_tests.py -s out/Release/base_unittests_apk/base_unittests-debug.apk -f FileUtilTest.* The _disabled file should be base_unittests-debug_disabled BUG= TEST= Review URL: http://codereview.chromium.org/10214002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133838 0039d316-1c4b-4281-b951-d872f2087c98
* apk-based test runner work for android. 2 unit test bundles converted over ↵jrg@chromium.org2012-04-198-0/+645
(ipc, base). OFF by default; enable with a gyp var. E.g. GYP_DEFINES="$GYP_DEFINES gtest_target_type=shared_library" android_gyp Some useful commands: adb uninstall org.chromium.native_test adb install -r out/Release/base_unittests_apk/ChromeNativeTests-debug.apk adb shell am start -n org.chromium.native_test/org.chromium.native_test.ChromeNativeTestActivity For the moment, all apks can be built simultaneously but use the same activity name. Thus you cannot have more than one installed at the same time. BUG=None TEST= Review URL: http://codereview.chromium.org/10051021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133053 0039d316-1c4b-4281-b951-d872f2087c98