@Override protected void setUp() throws Exception { super.setUp(); setXWalkClient(new XWalkViewTestBase.TestXWalkClient()); getInstrumentation() .runOnMainSync( new Runnable() { @Override public void run() { mTestXWalkResourceClient = new TestXWalkResourceClient1(); getXWalkView().setResourceClient(mTestXWalkResourceClient); mShouldInterceptLoadRequestHelper = mTestHelperBridge.getShouldInterceptLoadRequestHelper(); mOnLoadStartedHelper = mTestHelperBridge.getOnLoadStartedHelper(); } }); mWebServer = new TestWebServer(false); }
@Override public void setUp() throws Exception { super.setUp(); }
@Override protected void tearDown() throws Exception { mWebServer.shutdown(); super.tearDown(); }