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

Unified Diff: third_party/robolectric/BUILD.gn

Issue 2760743002: Add support for robolectric play-services-shadows. (Closed)
Patch Set: 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: third_party/robolectric/BUILD.gn
diff --git a/third_party/robolectric/BUILD.gn b/third_party/robolectric/BUILD.gn
index ccbfc350b6c66827bb7327d9630ea758665e1439..47b434d3354f7b9eeb8dfb55e19b70c8a4e4a4e4 100644
--- a/third_party/robolectric/BUILD.gn
+++ b/third_party/robolectric/BUILD.gn
@@ -14,6 +14,7 @@ java_group("robolectric_all_java") {
":robolectric_utils_java",
":shadows_core_java",
":shadows_multidex_java",
+ ":shadows_play_services_java",
]
}
@@ -41,6 +42,7 @@ java_library("robolectric_java") {
":robolectric_utils_java",
":shadows_core_java",
":shadows_multidex_java",
+ ":shadows_play_services_java",
"//third_party/bouncycastle:bouncycastle_java",
"//third_party/guava:guava_java",
"//third_party/icu4j:icu4j_java",
@@ -664,3 +666,31 @@ java_library("shadows_multidex_java") {
# Work-around for gradle generator not yet supporting annotation processors.
gradle_treat_as_prebuilt = true
}
+
+java_library("shadows_play_services_java") {
+ testonly = true
+ processors_javac =
+ [ "org.robolectric.annotation.processing.RobolectricProcessor" ]
+ processor_args_javac = [ "org.robolectric.annotation.processing.shadowPackage=org.robolectric.shadows.gms" ]
+ provider_configurations = [ "robolectric/robolectric-shadows/shadows-play-services/src/main/resources/META-INF/services/org.robolectric.internal.ShadowProvider" ]
+ java_files = [
+ "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/robolectric/shadows/gms/ShadowGoogleAuthUtil.java",
+ "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/robolectric/shadows/gms/ShadowGooglePlayServicesUtil.java",
+ "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/robolectric/shadows/gms/common/ShadowGoogleApiAvailability.java",
+ "robolectric/robolectric-shadows/shadows-play-services/src/main/java/org/robolectric/shadows/gms/package-info.java",
+ ]
+
+ deps = [
+ ":android-all-7.1.0_r7-robolectric-0_java",
+ ":robolectric_annotations_java",
+ ":robolectric_processor_java",
+ ":robolectric_resources_java",
+ ":robolectric_utils_java",
+ "//third_party/android_tools:android_support_v4_java",
+ "//third_party/guava:guava_java",
+ google_play_services_library,
+ ]
+
+ # Work-around for gradle generator not yet supporting annotation processors.
+ gradle_treat_as_prebuilt = true
+}

Powered by Google App Engine
This is Rietveld 408576698