# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/components/gcm_driver/GCMDriver.java" ]
}
android_library("gcm_driver_java") {
deps = [
"//base:base_java",
"//build/android:build_java",
"//third_party/android_deps:com_google_code_findbugs_jsr305_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/jni_zero:jni_zero_java",
]
srcjar_deps = [ ":jni_headers" ]
sources = [
"java/src/org/chromium/components/gcm_driver/GCMDriver.java",
"java/src/org/chromium/components/gcm_driver/GCMMessage.java",
"java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingSubscriber.java",
"java/src/org/chromium/components/gcm_driver/GoogleCloudMessagingV2.java",
"java/src/org/chromium/components/gcm_driver/LazySubscriptionsManager.java",
"java/src/org/chromium/components/gcm_driver/SubscriptionFlagManager.java",
]
}
robolectric_library("components_gcm_driver_junit_tests") {
sources = [
"junit/src/org/chromium/components/gcm_driver/GCMMessageTest.java",
"junit/src/org/chromium/components/gcm_driver/LazySubscriptionsManagerTest.java",
]
deps = [
":gcm_driver_java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
]
}