chromium/components/browser_ui/webshare/android/BUILD.gn

# 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")

android_library("java") {
  sources = [
    "java/src/org/chromium/components/browser_ui/webshare/BlobReceiver.java",
    "java/src/org/chromium/components/browser_ui/webshare/ShareServiceImpl.java",
    "java/src/org/chromium/components/browser_ui/webshare/SharedFileCollator.java",
  ]
  deps = [
    "//base:base_java",
    "//components/browser_ui/share/android:java",
    "//content/public/android:content_java",
    "//mojo/public/java:system_java",
    "//mojo/public/java/system:system_impl_java",
    "//mojo/public/mojom/base:base_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//third_party/blink/public/mojom:android_mojo_bindings_java",
    "//ui/android:ui_java",
    "//url/mojom:url_mojom_gurl_java",
  ]
}

robolectric_library("junit") {
  sources = [
    "java/src/org/chromium/components/browser_ui/webshare/ShareServiceImplTest.java",
    "java/src/org/chromium/components/browser_ui/webshare/SharedFileCollatorTest.java",
  ]
  deps = [
    ":java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//base/test:test_support_java",
    "//third_party/androidx:androidx_test_runner_java",
    "//third_party/blink/public/mojom:android_mojo_bindings_java",
    "//third_party/junit",
  ]
}