import android.graphics.Bitmap;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
+
import org.chromium.base.test.util.DisabledTest;
import org.chromium.base.test.util.Feature;
-import org.xwalk.core.XWalkView;
-import org.xwalk.core.XWalkClient;
/**
* Test suite for loadUrl().
public void setUp() throws Exception {
super.setUp();
- class TestXWalkClient extends XWalkClient {
- @Override
- public void onPageStarted(XWalkView view, String url, Bitmap favicon) {
- mTestContentsClient.onPageStarted(url);
- }
-
- @Override
- public void onPageFinished(XWalkView view, String url) {
- mTestContentsClient.didFinishLoad(url);
- }
- }
- getInstrumentation().runOnMainSync(new Runnable() {
- @Override
- public void run() {
- getXWalkView().setXWalkClient(new TestXWalkClient());
- }
- });
+ setXWalkClient(new XWalkViewTestBase.TestXWalkClient());
}
// @SmallTest