# Copyright 2014 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. import("//build/config/android/rules.gni") generate_jni("jni_headers") { sources = [ "java/src/org/chromium/components/gcm_driver/GCMDriver.java" ] } android_library("gcm_driver_java") { deps = [ "//base:base_java", "//base:jni_java", "//content/public/android:content_java", "//third_party/android_deps:androidx_annotation_annotation_java", "//third_party/android_deps:com_google_code_findbugs_jsr305_java", "//third_party/android_sdk:android_gcm_java", ] annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ] 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", ] } java_library("components_gcm_driver_junit_tests") { # Platform checks are broken for Robolectric. See https://crbug.com/1071638. bypass_platform_checks = true testonly = true 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/android_deps:robolectric_all_java", "//third_party/hamcrest:hamcrest_java", "//third_party/junit", ] }