| # Copyright 2021 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/messages/MessagesTestHelper.java" ] |
| } |
| |
| android_library("test_support_java") { |
| srcjar_deps = [ ":jni_headers" ] |
| testonly = true |
| sources = [ |
| "java/src/org/chromium/components/messages/MessagesTestHelper.java", |
| "java/src/org/chromium/components/messages/TestMessageDispatcherWrapper.java", |
| ] |
| deps = [ |
| "//base:base_java", |
| "//base:base_java_test_support", |
| "//components/messages/android:java", |
| "//components/messages/android:manager_java", |
| "//components/messages/android/internal:java", |
| "//content/public/android:content_java", |
| "//third_party/jni_zero:jni_zero_java", |
| "//ui/android:ui_no_recycler_view_java", |
| ] |
| } |
| |
| static_library("test_support_cpp") { |
| testonly = true |
| sources = [ |
| "messages_test_helper.cc", |
| "messages_test_helper.h", |
| ] |
| public_deps = [ "//ui/android" ] |
| deps = [ |
| ":jni_headers", |
| "//base", |
| ] |
| } |