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

Unified Diff: android_webview/android_webview_tests.gypi

Issue 11366035: Add a native test target and for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add tests to all_android.gyp Created 8 years, 1 month 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
Index: android_webview/android_webview_tests.gypi
diff --git a/android_webview/android_webview_tests.gypi b/android_webview/android_webview_tests.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..834171c567601dd3b5e62ba227613decabf9b1e3
--- /dev/null
+++ b/android_webview/android_webview_tests.gypi
@@ -0,0 +1,70 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+{
+ 'targets': [
+ {
+ 'target_name': 'android_webview_test_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java',
+ '../base/base.gyp:base_java_test_support',
+ '../chrome/browser/component/components.gyp:navigation_interception_java',
+ '../chrome/browser/component/components.gyp:web_contents_delegate_android_java',
+ '../chrome/chrome_resources.gyp:packed_extra_resources',
+ '../chrome/chrome_resources.gyp:packed_resources',
joth 2012/11/02 11:06:07 hmmm. seems odd we have to duplicate all the SUT's
mkosiba (inactive) 2012/11/02 15:59:39 hmm.. it was always like that, but seems to work w
+ '../content/content.gyp:content_java',
+ '../content/content.gyp:content_java_test_support',
+ '../media/media.gyp:media_java',
+ '../net/net.gyp:net_java',
+ '../ui/ui.gyp:ui_java',
+ 'android_webview_java',
+ 'libwebviewchromium',
+ ],
+ 'variables': {
+ 'package_name': 'android_webview_test',
+ 'apk_name': 'AndroidWebViewTest',
+ 'java_in_dir': '../android_webview/javatests',
+ 'resource_dir': 'res',
+ },
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/android_webview_test/assets',
+ 'files': [ '<!@(find <(java_in_dir)/assets -type f -name "*")' ]
+ },
+ ],
+ 'includes': [ '../build/java_apk.gypi' ],
+ },
+ {
+ 'target_name': 'android_webview_unittests',
+ 'type': '<(gtest_target_type)',
+ 'dependencies': [
+ '../base/base.gyp:test_support_base',
+ '../testing/android/native_test.gyp:native_test_native_code',
+ '../testing/gmock.gyp:gmock',
+ '../testing/gtest.gyp:gtest',
+ 'android_webview_common',
+ ],
+ 'include_dirs': [
+ '..',
+ '../skia/config',
+ ],
+ 'sources': [
+ 'lib/main/webview_tests.cc',
+ 'native/android_stream_reader_url_request_job_unittests.cc',
+ ],
+ },
+ {
+ 'target_name': 'android_webview_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ 'android_webview_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'android_webview_unittests',
+ 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)android_webview_unittests<(SHARED_LIB_SUFFIX)',
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698