# Copyright 2014 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")
# Used by targets that use a java virtual machine, as it avoids using the
# android compatible mockmaker.
java_group("mockito_jvm_java") {
testonly = true
deps = [
":mockito_modified_files_java",
"//third_party/android_deps:org_mockito_mockito_core_java",
"//third_party/android_deps:org_mockito_mockito_subclass_java",
]
}
java_group("mockito_java") {
testonly = true
proguard_configs = [ "//third_party/mockito/proguard.flags" ]
deps = [
":mockito_apk_assets",
":mockito_modified_files_java",
"//third_party/android_deps:org_mockito_mockito_android_java",
"//third_party/android_deps:org_mockito_mockito_core_java",
]
}
android_assets("mockito_apk_assets") {
renaming_sources = [ "local/src/subprojects/android/src/main/resources/mockito-extensions/org.mockito.plugins.MockMaker" ]
renaming_destinations =
[ "../mockito-extensions/org.mockito.plugins.MockMaker" ]
}
android_library("mockito_modified_files_java") {
testonly = true
deps = [
"//third_party/android_deps:org_mockito_mockito_core_java",
"//third_party/junit:junit",
]
sources = [
"local/src/main/java/org/mockito/internal/junit/ExceptionFactory.java",
"local/src/main/java/org/mockito/internal/stubbing/defaultanswers/ReturnsEmptyValues.java",
]
}