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

Unified Diff: net/net.gyp

Issue 10399126: Add APK targets for content_unittests and net_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/ipc.gyp ('k') | testing/android/generate_native_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/net.gyp
diff --git a/net/net.gyp b/net/net.gyp
index ccd8d062249446b3ea66140fb46635b3bcf543b8..b347646f1830a683c4f662416293a56241f45155 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -1032,7 +1032,7 @@
},
{
'target_name': 'net_unittests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'dependencies': [
'net',
'net_test_support',
@@ -1369,6 +1369,11 @@
],
},
],
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'dependencies': [
+ '../testing/android/native_test.gyp:native_test_native_code',
+ ]
+ }],
[ 'OS != "win" and OS != "mac"', {
'sources!': [
'base/x509_cert_types_unittest.cc',
@@ -1542,7 +1547,7 @@
'test/local_test_server.cc',
'test/local_test_server.h',
'test/python_utils.cc',
- 'test/python_utils.h',
+ 'test/python_utils.h',
'test/remote_test_server.cc',
'test/remote_test_server.h',
'test/spawner_communicator.cc',
@@ -1844,6 +1849,31 @@
},
],
}],
+ # Special target to wrap a gtest_target_type==shared_library
+ # net_unittests into an android apk for execution.
+ # See base.gyp for TODO(jrg)s about this strategy.
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'targets': [
+ {
+ 'target_name': 'net_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java',
+ 'net_java',
+ 'net_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'net_unittests',
+ 'input_shlib_path': '<(PRODUCT_DIR)/lib.target/<(SHARED_LIB_PREFIX)net_unittests<(SHARED_LIB_SUFFIX)',
+ 'input_jars_paths': [
+ '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
+ '<(PRODUCT_DIR)/lib.java/chromium_net.jar',
+ ],
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
+ },
+ ],
+ }],
['OS=="win"', {
'targets': [
{
« no previous file with comments | « ipc/ipc.gyp ('k') | testing/android/generate_native_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698