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

Unified Diff: build/config/android/internal_rules.gni

Issue 2767613002: Expose resources in Robolectric/JUnit tests. (Closed)
Patch Set: Added support for multiple resource files. Created 3 years, 9 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: build/config/android/internal_rules.gni
diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni
index e4a4e2d1f6fc59e6ee3bef81c3e738ba0de107da..7357dc2a0ba95bbf1f1bc4623f6486adf8df9d05 100644
--- a/build/config/android/internal_rules.gni
+++ b/build/config/android/internal_rules.gni
@@ -568,6 +568,31 @@ template("test_runner_script") {
"--test-suite",
invoker.test_suite,
]
+ if (defined(invoker.android_manifest_path)) {
+ test_runner_args += [
+ "--android-manifest-path",
+ rebase_path(invoker.android_manifest_path, root_build_dir),
+ ]
+ }
+ if (defined(invoker.resource_dirs)) {
+ foreach(resource_dir, invoker.resource_dirs) {
+ test_runner_args += [
+ "--resource-dir",
+ rebase_path(resource_dir, root_build_dir),
+ ]
+ }
+ }
+ if (defined(invoker.package_name)) {
+ test_runner_args += [
+ "--package-name",
+ invoker.package_name,
+ ]
+ }
+ test_runner_args += [
+ "--robolectric-runtime-deps-dir",
+ rebase_path("$root_build_dir/lib.java/third_party/robolectric",
+ root_build_dir),
+ ]
} else if (_test_type == "linker") {
test_runner_args += [
"--test-apk",

Powered by Google App Engine
This is Rietveld 408576698