mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 03:53:09 +08:00
Updating Native Tests to correspond with changes - CB-1580
This commit is contained in:
parent
3e6a7cbdf5
commit
a741c66c97
@ -9,3 +9,4 @@
|
||||
|
||||
# Project target.
|
||||
target=android-16
|
||||
android.library.reference.1=../framework
|
||||
|
@ -19,8 +19,10 @@
|
||||
|
||||
package org.apache.cordova.test;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
import org.apache.cordova.api.CordovaInterface;
|
||||
import org.apache.cordova.api.IPlugin;
|
||||
import org.apache.cordova.api.CordovaPlugin;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
@ -35,14 +37,15 @@ public class CordovaDriverAction extends Activity implements CordovaInterface {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
|
||||
public void bindBackButton(boolean arg0) {
|
||||
public void startActivityForResult(CordovaPlugin command, Intent intent,
|
||||
int requestCode) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void cancelLoadUrl() {
|
||||
public void setActivityResultCallback(CordovaPlugin plugin) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
}
|
||||
|
||||
public Activity getActivity() {
|
||||
@ -50,27 +53,26 @@ public class CordovaDriverAction extends Activity implements CordovaInterface {
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean isBackButtonBound() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
public Object onMessage(String arg0, Object arg1) {
|
||||
@Deprecated
|
||||
public Context getContext() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
public void setActivityResultCallback(IPlugin arg0) {
|
||||
@Deprecated
|
||||
public void cancelLoadUrl() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void startActivityForResult(IPlugin arg0, Intent arg1, int arg2) {
|
||||
public Object onMessage(String id, Object data) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Context getContext() {
|
||||
return this;
|
||||
public ExecutorService getThreadPool() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -19,9 +19,11 @@
|
||||
|
||||
package org.apache.cordova.test;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
|
||||
import org.apache.cordova.CordovaWebView;
|
||||
import org.apache.cordova.api.CordovaInterface;
|
||||
import org.apache.cordova.api.IPlugin;
|
||||
import org.apache.cordova.api.CordovaPlugin;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
@ -29,7 +31,6 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class CordovaWebViewTestActivity extends Activity implements CordovaInterface {
|
||||
|
||||
CordovaWebView cordovaWebView;
|
||||
|
||||
/** Called when the activity is first created. */
|
||||
@ -53,33 +54,30 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
||||
}
|
||||
}
|
||||
|
||||
public void startActivityForResult(IPlugin command, Intent intent, int requestCode) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public void setActivityResultCallback(IPlugin plugin) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public void bindBackButton(boolean override) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public boolean isBackButtonBound() {
|
||||
// TODO Auto-generated method stub
|
||||
return false;
|
||||
}
|
||||
|
||||
public Activity getActivity() {
|
||||
public Context getContext() {
|
||||
return this;
|
||||
}
|
||||
|
||||
public void startActivityForResult(CordovaPlugin command, Intent intent,
|
||||
int requestCode) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public void setActivityResultCallback(CordovaPlugin plugin) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
public Activity getActivity() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void cancelLoadUrl() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
}
|
||||
|
||||
public Object onMessage(String id, Object data) {
|
||||
@ -87,7 +85,8 @@ public class CordovaWebViewTestActivity extends Activity implements CordovaInter
|
||||
return null;
|
||||
}
|
||||
|
||||
public Context getContext() {
|
||||
return this;
|
||||
public ExecutorService getThreadPool() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user