Lines Matching refs:mAwContents

48     private AwContents mAwContents;  field in GeolocationTest
98 mAwContents = mActivityTestRule.createAwTestContainerViewOnMainSync(mContentsClient) in initAwContents()
100 AwActivityTestRule.enableJavaScriptOnUiThread(mAwContents); in initAwContents()
102 () -> mAwContents.getSettings().setGeolocationEnabled(true)); in initAwContents()
121 mAwContents, mContentsClient, "positionCount")); in getPositionCountFromJS()
156 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testGetPosition()
161 () -> mAwContents.evaluateJavaScriptForTests( in testGetPosition()
167 () -> mAwContents.evaluateJavaScriptForTests( in testGetPosition()
180 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testWatchPosition()
185 () -> mAwContents.evaluateJavaScriptForTests("initiate_watchPosition();", null)); in testWatchPosition()
196 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testPauseGeolocationOnPause()
201 () -> mAwContents.evaluateJavaScriptForTests("initiate_watchPosition();", null)); in testPauseGeolocationOnPause()
207 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onPause()); in testPauseGeolocationOnPause()
213 mAwContents, mContentsClient, "positionCount = 0"); in testPauseGeolocationOnPause()
219 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onResume()); in testPauseGeolocationOnPause()
231 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onPause()); in testPauseAwContentsBeforeNavigating()
234 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testPauseAwContentsBeforeNavigating()
239 () -> mAwContents.evaluateJavaScriptForTests("initiate_watchPosition();", null)); in testPauseAwContentsBeforeNavigating()
245 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onResume()); in testPauseAwContentsBeforeNavigating()
257 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onPause()); in testResumeWhenNotStarted()
259 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testResumeWhenNotStarted()
263 InstrumentationRegistry.getInstrumentation().runOnMainSync(() -> mAwContents.onResume()); in testResumeWhenNotStarted()
273 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testDenyAccessByDefault()
278 () -> mAwContents.evaluateJavaScriptForTests( in testDenyAccessByDefault()
285 return "deny".equals(mActivityTestRule.getTitleOnUiThread(mAwContents)); in testDenyAccessByDefault()
296 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testDenyOnInsecureOrigins()
301 () -> mAwContents.evaluateJavaScriptForTests( in testDenyOnInsecureOrigins()
308 return "deny".equals(mActivityTestRule.getTitleOnUiThread(mAwContents)); in testDenyOnInsecureOrigins()
318 mActivityTestRule.loadDataWithBaseUrlSync(mAwContents, in testAllowOnInsecureOriginsByDefault()
323 () -> mAwContents.evaluateJavaScriptForTests( in testAllowOnInsecureOriginsByDefault()