# 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/chrome/browser/uid/SettingsSecureBasedIdentificationGenerator.java",
"java/src/org/chromium/chrome/browser/uid/UniqueIdentificationGenerator.java",
"java/src/org/chromium/chrome/browser/uid/UniqueIdentificationGeneratorFactory.java",
"java/src/org/chromium/chrome/browser/uid/UuidBasedUniqueIdentificationGenerator.java",
]
deps = [
"//base:base_java",
"//chrome/browser/preferences:java",
"//chrome/browser/util:java",
"//third_party/androidx:androidx_annotation_annotation_java",
]
}
robolectric_library("junit") {
testonly = true
sources = [
"junit/src/org/chromium/chrome/browser/uid/SettingsSecureBasedIdentificationGeneratorTest.java",
"junit/src/org/chromium/chrome/browser/uid/UniqueIdentificationGeneratorFactoryTest.java",
"junit/src/org/chromium/chrome/browser/uid/UuidBasedUniqueIdentificationGeneratorTest.java",
]
deps = [
":java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//base/test:test_support_java",
"//chrome/browser/preferences:java",
"//chrome/browser/util:java",
"//chrome/test/android:chrome_java_unit_test_support",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_core_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
]
}