Upstream version 8.36.161.0
[platform/framework/web/crosswalk.git] / src / xwalk / test / android / core / javatests / src / org / xwalk / core / xwview / test / ClearHistoryTest.java
index c44719e..d88784f 100644 (file)
@@ -10,8 +10,8 @@ import android.test.suitebuilder.annotation.SmallTest;
 
 import org.chromium.base.test.util.DisabledTest;
 import org.chromium.base.test.util.Feature;
-import org.xwalk.core.XWalkClient;
 import org.xwalk.core.XWalkView;
+import org.xwalk.core.internal.XWalkClient;
 
 /**
  * Test suite for clearHistory().
@@ -21,18 +21,7 @@ public class ClearHistoryTest extends XWalkViewTestBase {
     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);
-            }
-        }
-        getXWalkView().setXWalkClient(new TestXWalkClient());
+        setXWalkClient(new XWalkViewTestBase.TestXWalkClient());
     }
 
     // TODO(guangzhen): Since the device issue, it can not access the network,