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
|
# Copyright 2014 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("chrome_java_test_pagecontroller") {
testonly = true
java_files = [
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/android/PermissionDialog.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ElementController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/first_run/DataSaverController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/first_run/SyncController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/first_run/TOSController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/notifications/DownloadNotificationController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/ArticleActionsMenu.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/ArticleCardController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/ChromeMenu.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/IncognitoNewTabPageController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/NewTabPageController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/ntp/SuggestionTileController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/PageController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/tabswitcher/TabSwitcherController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/tabswitcher/TabSwitcherMenuController.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/controllers/urlpage/UrlPage.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/rules/ChromeUiApplicationTestRule.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/rules/ChromeUiAutomatorTestRule.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/BySelectorIndexUi2Locator.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/BySelectorUi2Locator.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/ChildIndexUi2Locator.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/IUi2Locator.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/PathUi2Locator.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/Ui2Locators.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/UiAutomatorUtils.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/UiLocationException.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/UiLocatorHelper.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/Utils.java",
]
deps = [
":chrome_java_test_support",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/guava:guava_android_java",
"//third_party/junit",
"//third_party/ub-uiautomator:ub_uiautomator_java",
]
}
instrumentation_test_apk("chrome_java_test_pagecontroller_tests") {
apk_name = "ChromePageControllerTests"
apk_under_test = "//chrome/android:chrome_public_apk"
android_manifest = "javatests/src/org/chromium/chrome/test/pagecontroller/tests/AndroidManifest.xml"
target_sdk_version = 28
testonly = true
java_files = [
"javatests/src/org/chromium/chrome/test/pagecontroller/tests/ExampleTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/tests/FirstRunControllerTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/tests/NewTabPageControllerTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/tests/TabSwitcherControllerTest.java",
]
deps = [
":chrome_java_test_pagecontroller",
"//third_party/junit",
]
if (!is_java_debug) {
proguard_enabled = true
proguard_configs = [ "//chrome/android/java/apk_for_test.flags" ]
}
}
junit_binary("chrome_java_test_pagecontroller_unit_tests") {
testonly = true
java_files = [
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/BySelectorIndexUi2LocatorTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/BySelectorUi2LocatorTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/ChildIndexUi2LocatorTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/PathUi2LocatorTest.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/TestUtils.java",
"javatests/src/org/chromium/chrome/test/pagecontroller/utils/Ui2LocatorsTest.java",
]
deps = [
":chrome_java_test_pagecontroller",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//third_party/ub-uiautomator:ub_uiautomator_java",
]
}
android_library("chrome_java_test_support") {
testonly = true
java_files = [
"javatests/src/org/chromium/chrome/browser/omnibox/suggestions/AutocompleteCoordinatorTestUtils.java",
"javatests/src/org/chromium/chrome/test/BottomSheetTestRule.java",
"javatests/src/org/chromium/chrome/test/ChromeActivityTestRule.java",
"javatests/src/org/chromium/chrome/test/ChromeBrowserTestRule.java",
"javatests/src/org/chromium/chrome/test/ChromeJUnit4ClassRunner.java",
"javatests/src/org/chromium/chrome/test/ChromeJUnit4RunnerDelegate.java",
"javatests/src/org/chromium/chrome/test/ChromeTabbedActivityTestRule.java",
"javatests/src/org/chromium/chrome/test/gcore/MockChromeGoogleApiClient.java",
"javatests/src/org/chromium/chrome/test/invalidation/IntentSavingContext.java",
"javatests/src/org/chromium/chrome/test/MultiActivityTestRule.java",
"javatests/src/org/chromium/chrome/test/omaha/AttributeFinder.java",
"javatests/src/org/chromium/chrome/test/omaha/MockRequestGenerator.java",
"javatests/src/org/chromium/chrome/test/partnercustomizations/TestPartnerBrowserCustomizationsDelayedProvider.java",
"javatests/src/org/chromium/chrome/test/partnercustomizations/TestPartnerBrowserCustomizationsProvider.java",
"javatests/src/org/chromium/chrome/test/ReducedModeNativeTestRule.java",
"javatests/src/org/chromium/chrome/test/TestContentProvider.java",
"javatests/src/org/chromium/chrome/test/util/ActivityUtils.java",
"javatests/src/org/chromium/chrome/test/util/ApplicationTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/BookmarkTestUtil.java",
"javatests/src/org/chromium/chrome/test/util/browser/compositor/layouts/DisableChromeAnimations.java",
"javatests/src/org/chromium/chrome/test/util/browser/contextmenu/ContextMenuUtils.java",
"javatests/src/org/chromium/chrome/test/util/browser/contextmenu/RevampedContextMenuUtils.java",
"javatests/src/org/chromium/chrome/test/util/browser/Features.java",
"javatests/src/org/chromium/chrome/test/util/browser/LocationSettingsTestUtil.java",
"javatests/src/org/chromium/chrome/test/util/browser/notifications/MockNotificationManagerProxy.java",
"javatests/src/org/chromium/chrome/test/util/browser/offlinepages/FakeOfflinePageBridge.java",
"javatests/src/org/chromium/chrome/test/util/browser/signin/MockChangeEventChecker.java",
"javatests/src/org/chromium/chrome/test/util/browser/signin/SigninTestUtil.java",
"javatests/src/org/chromium/chrome/test/util/browser/suggestions/ContentSuggestionsTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/browser/suggestions/DummySuggestionsEventReporter.java",
"javatests/src/org/chromium/chrome/test/util/browser/suggestions/mostvisited/FakeMostVisitedSites.java",
"javatests/src/org/chromium/chrome/test/util/browser/suggestions/FakeSuggestionsSource.java",
"javatests/src/org/chromium/chrome/test/util/browser/suggestions/SuggestionsDependenciesRule.java",
"javatests/src/org/chromium/chrome/test/util/browser/sync/SyncTestUtil.java",
"javatests/src/org/chromium/chrome/test/util/browser/RecyclerViewTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/browser/TabLoadObserver.java",
"javatests/src/org/chromium/chrome/test/util/browser/tabmodel/MockTabModel.java",
"javatests/src/org/chromium/chrome/test/util/browser/tabmodel/MockTabModelSelector.java",
"javatests/src/org/chromium/chrome/test/util/browser/TabTitleObserver.java",
"javatests/src/org/chromium/chrome/test/util/browser/WebApkInfoBuilder.java",
"javatests/src/org/chromium/chrome/test/util/browser/WebappTestPage.java",
"javatests/src/org/chromium/chrome/test/util/browser/WebappTestHelper.java",
"javatests/src/org/chromium/chrome/test/util/ChromeRestriction.java",
"javatests/src/org/chromium/chrome/test/util/ChromeTabUtils.java",
"javatests/src/org/chromium/chrome/test/util/DisableInTabbedMode.java",
"javatests/src/org/chromium/chrome/test/util/ViewUtils.java",
"javatests/src/org/chromium/chrome/test/util/FullscreenTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/InfoBarTestAnimationListener.java",
"javatests/src/org/chromium/chrome/test/util/InfoBarUtil.java",
"javatests/src/org/chromium/chrome/test/util/MenuUtils.java",
"javatests/src/org/chromium/chrome/test/util/NewTabPageTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/OmniboxTestUtils.java",
"javatests/src/org/chromium/chrome/test/util/OverviewModeBehaviorWatcher.java",
"javatests/src/org/chromium/chrome/test/util/PrerenderTestHelper.java",
"javatests/src/org/chromium/chrome/test/util/RenderTestRule.java",
"javatests/src/org/chromium/chrome/test/util/SadTabRule.java",
"javatests/src/org/chromium/chrome/test/util/TabStripUtils.java",
"javatests/src/org/chromium/chrome/test/util/TranslateUtil.java",
]
deps = [
"$google_play_services_package:google_play_services_base_java",
"$google_play_services_package:google_play_services_basement_java",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//chrome/android/third_party/compositor_animator:compositor_animator_java",
"//components/bookmarks/common/android:bookmarks_java",
"//components/embedder_support/android:web_contents_delegate_java",
"//components/invalidation/impl:java",
"//components/location/android:location_java",
"//components/omnibox/browser:browser_java",
"//components/policy/android:policy_java",
"//components/policy/android:policy_java_test_support",
"//components/signin/core/browser/android:java",
"//components/signin/core/browser/android:signin_java_test_support",
"//components/sync/android:sync_java",
"//content/public/android:content_java",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java",
"//net/android:net_java_test_support",
"//testing/android/reporter:reporter_java",
"//third_party/android_deps:android_arch_lifecycle_common_java",
"//third_party/android_deps:android_support_v7_appcompat_java",
"//third_party/android_deps:com_android_support_design_java",
"//third_party/android_deps:com_android_support_recyclerview_v7_java",
"//third_party/android_deps:com_android_support_support_annotations_java",
"//third_party/android_deps:com_android_support_support_compat_java",
"//third_party/android_sdk:android_test_base_java",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/blink/public:blink_headers_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/jsr-305:jsr_305_javalib",
"//third_party/junit",
"//third_party/ub-uiautomator:ub_uiautomator_java",
"//ui/android:ui_java",
"//ui/android:ui_java_test_support",
]
}
|