return viewPair;
}
+
+ protected String getUrlOnUiThread() throws Exception {
+ return runTestOnUiThreadAndGetResult(new Callable<String>() {
+ @Override
+ public String call() throws Exception {
+ return mXWalkView.getUrl();
+ }
+ });
+ }
+
+ protected void clearCacheOnUiThread(final boolean includeDiskFiles) throws Exception {
+ getInstrumentation().runOnMainSync(new Runnable() {
+ @Override
+ public void run() {
+ mXWalkView.clearCache(includeDiskFiles);
+ }
+ });
+ }
}