| # 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. |
| |
| assert(is_android) |
| |
| import("//build/config/android/rules.gni") |
| |
| robolectric_library("junit_test_support") { |
| annotation_processor_deps = |
| [ "//third_party/android_deps:auto_service_processor" ] |
| sources = [ |
| "java/src/org/chromium/testing/local/ChromiumAndroidConfigurer.java", |
| "java/src/org/chromium/testing/local/ConfigFilter.java", |
| "java/src/org/chromium/testing/local/CustomShadowApplicationPackageManager.java", |
| "java/src/org/chromium/testing/local/GtestComputer.java", |
| "java/src/org/chromium/testing/local/GtestFilter.java", |
| "java/src/org/chromium/testing/local/GtestListener.java", |
| "java/src/org/chromium/testing/local/GtestLogger.java", |
| "java/src/org/chromium/testing/local/JsonListener.java", |
| "java/src/org/chromium/testing/local/JsonLogger.java", |
| "java/src/org/chromium/testing/local/JunitTestArgParser.java", |
| "java/src/org/chromium/testing/local/JunitTestMain.java", |
| "java/src/org/chromium/testing/local/PackageFilter.java", |
| "java/src/org/chromium/testing/local/RunnerFilter.java", |
| "java/src/org/chromium/testing/local/TestDir.java", |
| "java/src/org/chromium/testing/local/TestListComputer.java", |
| ] |
| deps = [ |
| "//third_party/android_build_tools/json:json_java", |
| "//third_party/android_deps:com_google_auto_service_auto_service_annotations_java", |
| "//third_party/junit", |
| "//third_party/mockito:mockito_jvm_java", |
| ] |
| } |
| |
| robolectric_binary("junit_unit_tests") { |
| sources = [ |
| "javatests/src/org/chromium/testing/local/GtestFilterTest.java", |
| "javatests/src/org/chromium/testing/local/GtestLoggerTest.java", |
| "javatests/src/org/chromium/testing/local/PackageFilterTest.java", |
| "javatests/src/org/chromium/testing/local/RunnerFilterTest.java", |
| ] |
| } |