| # Copyright 2020 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") |
| |
| source_set("android") { |
| sources = [ |
| "sms_infobar.cc", |
| "sms_infobar.h", |
| "sms_infobar_delegate.cc", |
| "sms_infobar_delegate.h", |
| ] |
| deps = [ |
| ":jni_headers", |
| "//base", |
| "//components/infobars/android", |
| "//components/infobars/core", |
| "//components/resources:android_resources", |
| "//components/strings", |
| "//components/url_formatter", |
| "//content/public/browser", |
| "//ui/android", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "sms_infobar_delegate_unittest.cc" ] |
| deps = [ |
| ":android", |
| "//base/test:test_support", |
| "//components/content_settings/browser", |
| "//components/content_settings/browser:test_support", |
| "//components/content_settings/core/browser", |
| "//components/infobars/content", |
| "//content/test:test_support", |
| "//testing/gtest", |
| ] |
| } |
| |
| generate_jni("jni_headers") { |
| sources = [ |
| "java/src/org/chromium/components/browser_ui/sms/WebOTPServiceInfoBar.java", |
| ] |
| } |
| |
| android_library("java") { |
| resources_package = "org.chromium.components.browser_ui.sms" |
| sources = [ |
| "java/src/org/chromium/components/browser_ui/sms/WebOTPServiceInfoBar.java", |
| "java/src/org/chromium/components/browser_ui/sms/WebOTPServiceUma.java", |
| ] |
| |
| deps = [ |
| "//base:base_java", |
| "//components/browser_ui/styles/android:java_resources", |
| "//components/infobars/android:java", |
| "//third_party/androidx:androidx_annotation_annotation_java", |
| "//third_party/jni_zero:jni_zero_java", |
| "//ui/android:ui_java", |
| "//url:gurl_java", |
| ] |
| } |