forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathBUILD.gn
402 lines (391 loc) · 23.1 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
# Copyright 2019 The Chromium Authors. All rights reserved.
# 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/components/browser_ui/widget/AlwaysDismissedDialog.java",
"java/src/org/chromium/components/browser_ui/widget/BoundedLinearLayout.java",
"java/src/org/chromium/components/browser_ui/widget/ClipDrawableProgressBar.java",
"java/src/org/chromium/components/browser_ui/widget/CompositeTouchDelegate.java",
"java/src/org/chromium/components/browser_ui/widget/ContextMenuDialog.java",
"java/src/org/chromium/components/browser_ui/widget/CoordinatorLayoutForPointer.java",
"java/src/org/chromium/components/browser_ui/widget/DateDividedAdapter.java",
"java/src/org/chromium/components/browser_ui/widget/DualControlLayout.java",
"java/src/org/chromium/components/browser_ui/widget/FadingEdgeScrollView.java",
"java/src/org/chromium/components/browser_ui/widget/FadingShadow.java",
"java/src/org/chromium/components/browser_ui/widget/FadingShadowView.java",
"java/src/org/chromium/components/browser_ui/widget/InsetObserverView.java",
"java/src/org/chromium/components/browser_ui/widget/InsetObserverViewSupplier.java",
"java/src/org/chromium/components/browser_ui/widget/MaterialCardViewNoShadow.java",
"java/src/org/chromium/components/browser_ui/widget/MaterialProgressBar.java",
"java/src/org/chromium/components/browser_ui/widget/MenuOrKeyboardActionController.java",
"java/src/org/chromium/components/browser_ui/widget/MoreProgressButton.java",
"java/src/org/chromium/components/browser_ui/widget/NumberRollView.java",
"java/src/org/chromium/components/browser_ui/widget/PaddedFrameLayout.java",
"java/src/org/chromium/components/browser_ui/widget/PromoDialog.java",
"java/src/org/chromium/components/browser_ui/widget/PromoDialogLayout.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonLayout.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithDescription.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithDescriptionAndAuxButton.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithDescriptionLayout.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithEditText.java",
"java/src/org/chromium/components/browser_ui/widget/RoundedCornerImageView.java",
"java/src/org/chromium/components/browser_ui/widget/RoundedCornerOutlineProvider.java",
"java/src/org/chromium/components/browser_ui/widget/RoundedIconGenerator.java",
"java/src/org/chromium/components/browser_ui/widget/SurfaceColorDrawable.java",
"java/src/org/chromium/components/browser_ui/widget/TintedDrawable.java",
"java/src/org/chromium/components/browser_ui/widget/TouchEventObserver.java",
"java/src/org/chromium/components/browser_ui/widget/ViewResourceFrameLayout.java",
"java/src/org/chromium/components/browser_ui/widget/WrappingLayout.java",
"java/src/org/chromium/components/browser_ui/widget/animation/CancelAwareAnimatorListener.java",
"java/src/org/chromium/components/browser_ui/widget/animation/FocusAnimator.java",
"java/src/org/chromium/components/browser_ui/widget/animation/Interpolators.java",
"java/src/org/chromium/components/browser_ui/widget/async_image/AsyncImageView.java",
"java/src/org/chromium/components/browser_ui/widget/async_image/AutoAnimatorDrawable.java",
"java/src/org/chromium/components/browser_ui/widget/async_image/ForegroundDrawableCompat.java",
"java/src/org/chromium/components/browser_ui/widget/async_image/ForegroundRoundedCornerImageView.java",
"java/src/org/chromium/components/browser_ui/widget/chips/ChipProperties.java",
"java/src/org/chromium/components/browser_ui/widget/chips/ChipView.java",
"java/src/org/chromium/components/browser_ui/widget/chips/ChipViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/chips/ChipsCoordinator.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/DisplayStyleObserver.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/DisplayStyleObserverAdapter.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/HorizontalDisplayStyle.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/UiConfig.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/VerticalDisplayStyle.java",
"java/src/org/chromium/components/browser_ui/widget/displaystyle/ViewResizer.java",
"java/src/org/chromium/components/browser_ui/widget/dragreorder/DragReorderableListAdapter.java",
"java/src/org/chromium/components/browser_ui/widget/dragreorder/DragStateDelegate.java",
"java/src/org/chromium/components/browser_ui/widget/gesture/SwipeGestureListener.java",
"java/src/org/chromium/components/browser_ui/widget/highlight/PulseDrawable.java",
"java/src/org/chromium/components/browser_ui/widget/highlight/PulseInterpolator.java",
"java/src/org/chromium/components/browser_ui/widget/highlight/ViewHighlighter.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/ImageTile.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/ImageTileCoordinator.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/ImageTileCoordinatorFactory.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileConfig.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileCoordinatorImpl.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileListModel.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileListProperties.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileListPropertyViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileListView.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileMediator.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileSizeSupplier.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileViewHolder.java",
"java/src/org/chromium/components/browser_ui/widget/image_tiles/TileViewHolderFactory.java",
"java/src/org/chromium/components/browser_ui/widget/impression/ImpressionTracker.java",
"java/src/org/chromium/components/browser_ui/widget/impression/OneShotImpressionListener.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/BasicListMenu.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenu.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuButton.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuButtonDelegate.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuItemAdapter.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuItemProperties.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuItemViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardCoordinator.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardProperties.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardView.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimCoordinator.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimMediator.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimProperties.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimView.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableItemView.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableItemViewBase.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableItemViewHolder.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableListLayout.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableListToolbar.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectableListUtils.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectionDelegate.java",
"java/src/org/chromium/components/browser_ui/widget/text/AccessibleTextView.java",
"java/src/org/chromium/components/browser_ui/widget/text/AlertDialogEditText.java",
"java/src/org/chromium/components/browser_ui/widget/text/TemplatePreservingTextView.java",
"java/src/org/chromium/components/browser_ui/widget/text/TextViewWithCompoundDrawables.java",
"java/src/org/chromium/components/browser_ui/widget/text/VerticallyFixedEditText.java",
"java/src/org/chromium/components/browser_ui/widget/textbubble/ArrowBubbleDrawable.java",
"java/src/org/chromium/components/browser_ui/widget/textbubble/TextBubble.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileView.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileViewBinder.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileViewCoordinator.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileViewMediator.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileViewProperties.java",
]
deps = [
":java_resources",
"//base:base_java",
"//components/browser_ui/styles/android:java",
"//components/browser_ui/util/android:java",
"//components/embedder_support/android:util_java",
"//third_party/android_deps:android_support_v4_java",
"//third_party/android_deps:android_support_v7_appcompat_java",
"//third_party/android_deps:material_design_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_coordinatorlayout_coordinatorlayout_java",
"//third_party/androidx:androidx_interpolator_interpolator_java",
"//third_party/androidx:androidx_recyclerview_recyclerview_java",
"//ui/android:ui_java",
"//url:gurl_java",
]
resources_package = "org.chromium.components.browser_ui.widget"
}
android_resources("java_resources") {
sources = [
"java/res/anim/chip_in.xml",
"java/res/anim/chip_out.xml",
"java/res/anim/image_grid_enter.xml",
"java/res/anim/image_tile_enter.xml",
"java/res/anim/menu_enter.xml",
"java/res/anim/menu_enter_from_bottom.xml",
"java/res/anim/menu_enter_from_bottom_left.xml",
"java/res/anim/menu_enter_from_top_left.xml",
"java/res/anim/menu_exit.xml",
"java/res/anim/menu_exit_from_bottom.xml",
"java/res/anim/menu_exit_from_bottom_left.xml",
"java/res/anim/menu_exit_from_top_left.xml",
"java/res/anim/textbubble_in.xml",
"java/res/anim/textbubble_out.xml",
"java/res/color/chip_background_color.xml",
"java/res/color/chip_ripple_color.xml",
"java/res/color/chip_state_layer_color.xml",
"java/res/color/chip_stroke_color.xml",
"java/res/color/chip_text_color.xml",
"java/res/color/menu_chip_background.xml",
"java/res/drawable-hdpi/btn_delete_24dp.png",
"java/res/drawable-hdpi/btn_info.png",
"java/res/drawable-hdpi/ic_arrow_back_white_24dp.png",
"java/res/drawable-hdpi/ic_check_googblue_24dp.png",
"java/res/drawable-hdpi/ic_drag_handle_grey600_24dp.png",
"java/res/drawable-hdpi/ic_error_outline_googblue_24dp.png",
"java/res/drawable-hdpi/ic_more_vert_24dp_on_dark_bg.png",
"java/res/drawable-hdpi/ic_more_vert_24dp_on_light_bg.png",
"java/res/drawable-mdpi/btn_delete_24dp.png",
"java/res/drawable-mdpi/btn_info.png",
"java/res/drawable-mdpi/ic_arrow_back_white_24dp.png",
"java/res/drawable-mdpi/ic_check_googblue_24dp.png",
"java/res/drawable-mdpi/ic_drag_handle_grey600_24dp.png",
"java/res/drawable-mdpi/ic_error_outline_googblue_24dp.png",
"java/res/drawable-mdpi/ic_more_vert_24dp_on_dark_bg.png",
"java/res/drawable-mdpi/ic_more_vert_24dp_on_light_bg.png",
"java/res/drawable-v23/app_menu_bg.xml",
"java/res/drawable-v23/default_list_item_bg_rect.xml",
"java/res/drawable-v23/dialog_bg_no_shadow.xml",
"java/res/drawable-v23/modern_toolbar_text_box_background.xml",
"java/res/drawable-v23/oval_surface_1.xml",
"java/res/drawable-v23/rectangle_surface_1.xml",
"java/res/drawable-v23/rounded_rectangle_surface_1.xml",
"java/res/drawable-v23/sheet_background.xml",
"java/res/drawable-v31/app_menu_bg.xml",
"java/res/drawable-v31/default_list_item_bg_rect.xml",
"java/res/drawable-v31/dialog_bg_no_shadow.xml",
"java/res/drawable-v31/menu_bg_tinted.xml",
"java/res/drawable-v31/modern_toolbar_text_box_background.xml",
"java/res/drawable-v31/oval_surface_1.xml",
"java/res/drawable-v31/rectangle_surface_1.xml",
"java/res/drawable-v31/rounded_rectangle_surface_1.xml",
"java/res/drawable-v31/sheet_background.xml",
"java/res/drawable-xhdpi/btn_delete_24dp.png",
"java/res/drawable-xhdpi/btn_info.png",
"java/res/drawable-xhdpi/ic_arrow_back_white_24dp.png",
"java/res/drawable-xhdpi/ic_check_googblue_24dp.png",
"java/res/drawable-xhdpi/ic_drag_handle_grey600_24dp.png",
"java/res/drawable-xhdpi/ic_error_outline_googblue_24dp.png",
"java/res/drawable-xhdpi/ic_more_vert_24dp_on_dark_bg.png",
"java/res/drawable-xhdpi/ic_more_vert_24dp_on_light_bg.png",
"java/res/drawable-xxhdpi/btn_delete_24dp.png",
"java/res/drawable-xxhdpi/btn_info.png",
"java/res/drawable-xxhdpi/ic_arrow_back_white_24dp.png",
"java/res/drawable-xxhdpi/ic_check_googblue_24dp.png",
"java/res/drawable-xxhdpi/ic_drag_handle_grey600_24dp.png",
"java/res/drawable-xxhdpi/ic_error_outline_googblue_24dp.png",
"java/res/drawable-xxhdpi/ic_more_vert_24dp_on_dark_bg.png",
"java/res/drawable-xxhdpi/ic_more_vert_24dp_on_light_bg.png",
"java/res/drawable-xxxhdpi/btn_delete_24dp.png",
"java/res/drawable-xxxhdpi/btn_info.png",
"java/res/drawable-xxxhdpi/ic_arrow_back_white_24dp.png",
"java/res/drawable-xxxhdpi/ic_check_googblue_24dp.png",
"java/res/drawable-xxxhdpi/ic_drag_handle_grey600_24dp.png",
"java/res/drawable-xxxhdpi/ic_error_outline_googblue_24dp.png",
"java/res/drawable-xxxhdpi/ic_more_vert_24dp_on_dark_bg.png",
"java/res/drawable-xxxhdpi/ic_more_vert_24dp_on_light_bg.png",
"java/res/drawable/async_image_view_unavailable.xml",
"java/res/drawable/async_image_view_waiting.xml",
"java/res/drawable/bottom_sheet_background.xml",
"java/res/drawable/card_with_corners_background.xml",
"java/res/drawable/ic_arrow_back_24dp.xml",
"java/res/drawable/ic_check_googblue_24dp_animated.xml",
"java/res/drawable/ic_offline_pin_blue_white.xml",
"java/res/drawable/ic_settings_gear_24dp.xml",
"java/res/drawable/incognito_card_bg.xml",
"java/res/drawable/list_item_icon_modern_bg.xml",
"java/res/drawable/list_item_icon_modern_bg_rect.xml",
"java/res/drawable/query_tile_overlay.xml",
"java/res/drawable/search_toolbar_modern_bg.xml",
"java/res/drawable/tile_view_highlight.xml",
"java/res/drawable/tile_view_highlight_mask.xml",
"java/res/drawable/tile_view_highlight_plain.xml",
"java/res/layout/app_menu_divider.xml",
"java/res/layout/app_menu_layout.xml",
"java/res/layout/date_divided_adapter_header_view_holder.xml",
"java/res/layout/dialog_control_description.xml",
"java/res/layout/divider_preference.xml",
"java/res/layout/expand_arrow_with_separator.xml",
"java/res/layout/horizontal_divider.xml",
"java/res/layout/indeterminate_progress_view.xml",
"java/res/layout/list_menu_item.xml",
"java/res/layout/modern_list_item_view.xml",
"java/res/layout/modern_list_item_view_v2.xml",
"java/res/layout/more_progress_button.xml",
"java/res/layout/number_roll_view.xml",
"java/res/layout/promo_card_view_compact.xml",
"java/res/layout/promo_card_view_large.xml",
"java/res/layout/promo_card_view_slim.xml",
"java/res/layout/promo_dialog_layout.xml",
"java/res/layout/query_tile_view.xml",
"java/res/layout/radio_button_layout_element.xml",
"java/res/layout/radio_button_with_description.xml",
"java/res/layout/radio_button_with_edit_text.xml",
"java/res/layout/search_toolbar.xml",
"java/res/layout/selectable_list_layout.xml",
"java/res/layout/textbubble_text.xml",
"java/res/layout/textbubble_text_with_image.xml",
"java/res/layout/tile_no_text_view.xml",
"java/res/layout/tile_no_text_view_condensed.xml",
"java/res/layout/tile_view_modern.xml",
"java/res/layout/tile_view_modern_condensed.xml",
"java/res/values-ldrtl/values.xml",
"java/res/values-night/colors.xml",
"java/res/values-night/dimens.xml",
"java/res/values-night/drawables.xml",
"java/res/values-sw600dp/dimens.xml",
"java/res/values-v23/drawables.xml",
"java/res/values/attrs.xml",
"java/res/values/colors.xml",
"java/res/values/dimens.xml",
"java/res/values/drawables.xml",
"java/res/values/ids.xml",
"java/res/values/styles.xml",
"java/res/values/values.xml",
]
deps = [
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//third_party/android_deps:material_design_java",
"//ui/android:ui_java_resources",
]
}
android_library("test_support_java") {
testonly = true
sources = [
"test/java/src/org/chromium/components/browser_ui/widget/RecyclerViewTestUtils.java",
"test/java/src/org/chromium/components/browser_ui/widget/highlight/ViewHighlighterTestUtils.java",
]
deps = [
":java",
"//base:base_java_test_support",
"//content/public/test/android:content_java_test_support",
"//third_party/androidx:androidx_recyclerview_recyclerview_java",
"//third_party/hamcrest:hamcrest_library_java",
]
}
android_library("javatests") {
testonly = true
sources = [
"java/src/org/chromium/components/browser_ui/widget/DualControlLayoutTest.java",
"java/src/org/chromium/components/browser_ui/widget/MoreProgressButtonTest.java",
"java/src/org/chromium/components/browser_ui/widget/PromoDialogRenderTest.java",
"java/src/org/chromium/components/browser_ui/widget/PromoDialogTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonLayoutTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonRenderTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithDescriptionAndAuxButtonTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithDescriptionLayoutTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithEditTextTest.java",
"java/src/org/chromium/components/browser_ui/widget/RadioButtonWithIconRenderTest.java",
"java/src/org/chromium/components/browser_ui/widget/RoundedIconGeneratorTest.java",
"java/src/org/chromium/components/browser_ui/widget/WrappingLayoutTest.java",
"java/src/org/chromium/components/browser_ui/widget/highlight/ViewHighlighterTest.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuButtonTest.java",
"java/src/org/chromium/components/browser_ui/widget/listmenu/ListMenuRenderTest.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardCoordinatorTest.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardImpressionTest.java",
"java/src/org/chromium/components/browser_ui/widget/promo/PromoCardViewRenderTest.java",
"java/src/org/chromium/components/browser_ui/widget/scrim/ScrimTest.java",
]
deps = [
":java",
":java_resources",
":java_test_resources",
":test_support_java",
"//base:base_java",
"//base:base_java_test_support",
"//components/browser_ui/test/android:test_support_java",
"//components/browser_ui/theme/android:java_resources",
"//content/public/test/android:content_java_test_support",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java",
"//ui/android:ui_java_test_support",
]
resources_package = "org.chromium.components.browser_ui.widget.test"
}
android_resources("java_test_resources") {
testonly = true
sources = [
"test/java/res/drawable-hdpi/promo_dialog_test_drawable.png",
"test/java/res/drawable-mdpi/promo_dialog_test_drawable.png",
"test/java/res/drawable-xhdpi/promo_dialog_test_drawable.png",
"test/java/res/drawable-xxhdpi/promo_dialog_test_drawable.png",
"test/java/res/drawable-xxxhdpi/promo_dialog_test_drawable.png",
"test/java/res/drawable/promo_dialog_test_vector.xml",
"test/java/res/drawable/test_illustration.xml",
"test/java/res/drawable/test_logo_avatar_anonymous.xml",
"test/java/res/layout/dual_control_test_layout.xml",
"test/java/res/layout/radio_button_render_test.xml",
"test/java/res/layout/radio_button_with_description_and_aux_button_test.xml",
"test/java/res/layout/radio_button_with_description_layout_test.xml",
"test/java/res/layout/radio_button_with_edit_text_test.xml",
"test/java/res/layout/radio_button_with_icon_render_test.xml",
"test/java/res/values/strings.xml",
]
deps = [
":java_resources",
"//ui/android:ui_java_resources",
]
}
java_library("junit") {
# Skip platform checks since Robolectric depends on requires_android targets.
bypass_platform_checks = true
testonly = true
sources = [
"java/src/org/chromium/components/browser_ui/widget/CompositeTouchDelegateUnitTest.java",
"java/src/org/chromium/components/browser_ui/widget/ContextMenuDialogUnitTest.java",
"java/src/org/chromium/components/browser_ui/widget/InsetObserverViewTest.java",
"java/src/org/chromium/components/browser_ui/widget/RoundedCornerOutlineProviderUnitTest.java",
"java/src/org/chromium/components/browser_ui/widget/gesture/SwipeGestureListenerTest.java",
"java/src/org/chromium/components/browser_ui/widget/selectable_list/SelectionDelegateTest.java",
"java/src/org/chromium/components/browser_ui/widget/tile/TileViewBinderTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//base/test:test_support_java",
"//third_party/android_deps:robolectric_all_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_no_recycler_view_java",
]
}