chromium/chrome/browser/device/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 = [
    "android/java/src/org/chromium/chrome/browser/device/DeviceClassManager.java",
    "android/java/src/org/chromium/chrome/browser/device/DeviceConditions.java",
  ]
  deps = [
    "//base:base_java",
    "//chrome/browser/flags:java",
    "//chrome/browser/preferences:java",
    "//chrome/browser/util:java",
    "//net/android:net_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
    "//ui/android:ui_no_recycler_view_java",
  ]
}

robolectric_library("junit") {
  sources = [
    "android/java/src/org/chromium/chrome/browser/device/DeviceConditionsTest.java",
    "android/java/src/org/chromium/chrome/browser/device/ShadowDeviceConditions.java",
  ]
  deps = [
    ":java",
    "//base:base_java",
    "//base:base_java_test_support",
    "//base:base_junit_test_support",
    "//base/test:test_support_java",
    "//chrome/test/android:chrome_java_unit_test_support",
    "//net/android:net_java",
    "//third_party/junit",
    "//third_party/mockito:mockito_java",
  ]
}