Skip to content

Commit 8a5a91f

Browse files
brettchabotcopybara-androidxtest
authored andcommitted
Set testonly=1 to targets.
PiperOrigin-RevId: 735794577
1 parent 5c331df commit 8a5a91f

File tree

20 files changed

+32
-0
lines changed

20 files changed

+32
-0
lines changed

espresso/contrib/java/androidx/test/espresso/contrib/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ android_library(
5151

5252
android_library(
5353
name = "picker_actions",
54+
testonly = 1,
5455
srcs = ["PickerActions.java"],
5556
visibility = ["//visibility:public"],
5657
deps = [

espresso/core/java/androidx/test/espresso/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ android_library(
202202

203203
android_library(
204204
name = "espresso_aar_lib",
205+
testonly = 1,
205206
custom_package = "androidx.test.espresso.core",
206207
manifest = "AndroidManifest.xml",
207208
proguard_specs = [":proguard_library.cfg"],
@@ -214,6 +215,7 @@ android_library(
214215

215216
axt_android_aar(
216217
name = "espresso_core_aar",
218+
testonly = 1,
217219
expected_class_prefixes = [
218220
"androidx.test.espresso",
219221
],
@@ -224,6 +226,7 @@ axt_android_aar(
224226

225227
maven_artifact(
226228
name = "espresso_core_maven_artifact",
229+
testonly = 1,
227230
last_updated = "20170622000000",
228231
target = ":espresso_core_aar",
229232
)

espresso/core/java/androidx/test/espresso/base/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ android_library(
4949

5050
android_library(
5151
name = "active_root_lister",
52+
testonly = 1,
5253
srcs = ["ActiveRootLister.java"],
5354
visibility = [
5455
"//espresso/core/java/androidx/test/espresso:espresso_first_party",

espresso/device/java/androidx/test/espresso/device/controller/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ package(
1414

1515
kt_android_library(
1616
name = "controller",
17+
testonly = 1,
1718
srcs = [
1819
"DeviceControllerOperationException.kt",
1920
"DeviceMode.kt",

espresso/remote/java/androidx/test/espresso/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package(
1212

1313
android_library(
1414
name = "data-interaction-remote",
15+
testonly = 1,
1516
srcs = [
1617
"DataInteractionRemote.java",
1718
],

espresso/remote/java/androidx/test/espresso/action/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package(
1212

1313
android_library(
1414
name = "remote_view_actions",
15+
testonly = 1,
1516
srcs = glob(
1617
["*.java"],
1718
),

espresso/remote/java/androidx/test/espresso/assertion/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ package(
1212

1313
android_library(
1414
name = "remote_view_assertions",
15+
testonly = 1,
1516
srcs = glob(
1617
["*.java"],
1718
),

espresso/remote/java/androidx/test/espresso/matcher/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ REMOTE_HAMCREST_v1_3_CORE_MATCHERS = [
1616

1717
android_library(
1818
name = "remote_view_matchers",
19+
testonly = 1,
1920
srcs = glob(
2021
["*.java"],
2122
exclude = REMOTE_HAMCREST_v1_3_CORE_MATCHERS,
@@ -35,6 +36,7 @@ android_library(
3536

3637
android_library(
3738
name = "remote_hamcrest_v1_3_core_matchers",
39+
testonly = 1,
3840
srcs = glob(
3941
REMOTE_HAMCREST_v1_3_CORE_MATCHERS,
4042
),

espresso/remote/java/androidx/test/espresso/remote/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ REMOTE_REGISTRY = [
2626

2727
android_library(
2828
name = "registry",
29+
testonly = 1,
2930
srcs = REMOTE_REGISTRY,
3031
visibility = ["//visibility:public"],
3132
deps = [
@@ -60,6 +61,7 @@ PROTO_UTILS = [
6061

6162
android_library(
6263
name = "protoUtils",
64+
testonly = 1,
6365
srcs = PROTO_UTILS,
6466
visibility = ["//visibility:public"],
6567
deps = [
@@ -83,6 +85,7 @@ android_library(
8385

8486
android_library(
8587
name = "remote",
88+
testonly = 1,
8689
srcs = glob(
8790
["*.java"],
8891
exclude = PROTO_UTILS + REMOTE_REGISTRY,
@@ -130,6 +133,7 @@ android_library(
130133

131134
axt_android_aar(
132135
name = "espresso_remote_aar",
136+
testonly = 1,
133137
expected_class_prefixes = [
134138
"androidx.test.espresso",
135139
],
@@ -139,6 +143,7 @@ axt_android_aar(
139143

140144
maven_artifact(
141145
name = "espresso_remote_maven_artifact",
146+
testonly = 1,
142147
last_updated = "20170622000000",
143148
target = ":espresso_remote_aar",
144149
)

espresso/remote/java/androidx/test/espresso/web/action/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ package(
1313

1414
android_library(
1515
name = "remote_web_actions",
16+
testonly = 1,
1617
srcs = glob(
1718
["*.java"],
1819
),

0 commit comments

Comments
 (0)