# 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/config.gni")
import("//build/config/android/rules.gni")
import("//chrome/browser/buildflags.gni")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/user_education/IPHCommand.java",
"java/src/org/chromium/chrome/browser/user_education/IPHCommandBuilder.java",
"java/src/org/chromium/chrome/browser/user_education/UserEducationHelper.java",
]
deps = [
":java_resources",
"//base:base_java",
"//chrome/browser/feature_engagement:java",
"//chrome/browser/flags:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/util:java",
"//components/browser_ui/util/android:java",
"//components/browser_ui/widget/android:java",
"//components/feature_engagement/public:public_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_core_core_java",
"//ui/android:ui_full_java",
]
resources_package = "org.chromium.chrome.browser.user_education"
}
android_resources("java_resources") {
sources = [ "java/res/values/dimens.xml" ]
}
robolectric_library("junit") {
sources = [
"java/src/org/chromium/chrome/browser/user_education/IPHCommandBuilderUnitTest.java",
"java/src/org/chromium/chrome/browser/user_education/IPHCommandUnitTest.java",
"java/src/org/chromium/chrome/browser/user_education/UserEducationHelperUnitTest.java",
]
deps = [
":java",
":java_resources",
"//base:base_java",
"//base:base_junit_test_support",
"//chrome/browser/feature_engagement:java",
"//chrome/browser/profiles/android:java",
"//components/browser_ui/theme/android:java_resources",
"//components/feature_engagement/public:public_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
]
resources_package = "org.chromium.chrome.browser.user_education.test"
}