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

Unified Diff: android_webview/android_webview_shell.gyp

Issue 1364593002: Refactor android_webview_shell and its tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: android_webview/android_webview_shell.gyp
diff --git a/android_webview/android_webview_shell.gyp b/android_webview/android_webview_shell.gyp
index a5d898f94f9961e6143ee2be917c2132aff3c538..7fa9ddaca0dfefeebbb7f00f8438765d3015cdcc 100644
--- a/android_webview/android_webview_shell.gyp
+++ b/android_webview/android_webview_shell.gyp
@@ -6,22 +6,64 @@
{
'target_name': 'android_webview_shell_apk',
'type': 'none',
- 'dependencies': [
- '../base/base.gyp:base_java_test_support',
- ],
'variables': {
'apk_name': 'AndroidWebViewShell',
'java_in_dir': 'tools/WebViewShell',
'resource_dir': 'tools/WebViewShell/res',
+ 'android_manifest_path': 'tools/WebViewShell/AndroidManifest.xml', # for lint
+ },
+ 'includes': [
+ '../build/java_apk.gypi',
+ ],
+ },
+ {
+ # android_webview_apk creates a .jar as a side effect. Any java
+ # targets that need that .jar in their classpath should depend on this
+ # target. For more details see the content_shell_apk_java target.
+ 'target_name': 'android_webview_shell_apk_java',
timvolodine 2015/09/23 15:46:29 is this needed? can we just depend on android_webv
boliu 2015/09/23 16:59:07 Yeah we looked this up. apk_fake_jar.gypi is a com
+ 'type': 'none',
+ 'dependencies': [
+ 'android_webview_shell_apk',
+ ],
+ 'includes': [ '../build/apk_fake_jar.gypi' ],
+ },
+ {
+ 'target_name': 'android_webview_shell_page_cycler_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java_test_support',
+ 'android_webview_shell_apk_java',
+ ],
+ 'variables': {
+ 'apk_name': 'AndroidWebViewShellPageCycler',
+ 'java_in_dir': '../android_webview/tools/PageCycler',
'is_test_apk': 1,
'test_type': 'instrumentation',
- 'isolate_file': 'android_webview_shell_test_apk.isolate',
- 'android_manifest_path': 'tools/WebViewShell/AndroidManifest.xml', # for lint
+ 'android_manifest_path': 'tools/PageCycler/AndroidManifest.xml',
boliu 2015/09/23 16:59:07 Let's nitpick about paths.. tools now feels really
timvolodine 2015/09/23 17:34:31 looking at the naming in android_webview/ is lower
boliu 2015/09/23 17:48:28 nitpick more... "webview_shell" vs "system_webview
timvolodine 2015/09/23 18:07:26 Right, I thought about that as well ;) My initial
Yoland Yan(Google) 2015/09/23 19:51:51 Done
},
'includes': [
'../build/java_apk.gypi',
'../build/android/test_runner.gypi',
],
},
+ {
+ 'target_name': 'android_webview_shell_test_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java_test_support',
+ 'android_webview_shell_apk_java',
+ ],
+ 'variables': {
+ 'apk_name': 'AndroidWebViewShellTest',
+ 'java_in_dir': '../android_webview/tools/WebViewShellTest',
+ 'is_test_apk': 1,
+ 'test_type': 'instrumentation',
timvolodine 2015/09/23 15:46:29 add 'isolate_file' here as previously?
Yoland Yan(Google) 2015/09/23 19:51:51 Done
+ 'android_manifest_path': 'tools/WebViewShellTest/AndroidManifest.xml',
+ },
+ 'includes': [
+ '../build/java_apk.gypi',
+ '../build/android/test_runner.gypi',
+ ]
+ },
],
}

Powered by Google App Engine
This is Rietveld 408576698