mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1067060: Eliminate SynchronousQueue from RobocopUtils. r=mcomella
This commit is contained in:
parent
61458ad6ea
commit
f6574c55b5
@ -18,6 +18,7 @@ import android.app.Activity;
|
||||
import android.test.ActivityInstrumentationTestCase2;
|
||||
import android.util.Log;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public abstract class BaseRobocopTest extends ActivityInstrumentationTestCase2<Activity> {
|
||||
public enum Type {
|
||||
MOCHITEST,
|
||||
@ -60,7 +61,6 @@ public abstract class BaseRobocopTest extends ActivityInstrumentationTestCase2<A
|
||||
* specify a different activity class to the one-argument constructor. To do
|
||||
* as little as possible, specify <code>Activity.class</code>.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public BaseRobocopTest() {
|
||||
this((Class<Activity>) BROWSER_INTENT_CLASS);
|
||||
}
|
||||
|
@ -156,8 +156,8 @@ public class testShareLink extends AboutHomeTest {
|
||||
}
|
||||
|
||||
// Create a SEND intent and get the possible activities offered
|
||||
public ArrayList getShareOptions() {
|
||||
ArrayList<String> shareOptions = new ArrayList();
|
||||
public ArrayList<String> getShareOptions() {
|
||||
ArrayList<String> shareOptions = new ArrayList<>();
|
||||
Activity currentActivity = getActivity();
|
||||
final Intent shareIntent = new Intent(Intent.ACTION_SEND);
|
||||
shareIntent.putExtra(Intent.EXTRA_TEXT, url);
|
||||
@ -209,14 +209,14 @@ public class testShareLink extends AboutHomeTest {
|
||||
}
|
||||
|
||||
public ArrayList<String> getSharePopupOption() {
|
||||
ArrayList<String> displayedOptions = new ArrayList();
|
||||
ArrayList<String> displayedOptions = new ArrayList<>();
|
||||
AbsListView shareMenu = getDisplayedShareList();
|
||||
getGroupTextViews(shareMenu, displayedOptions);
|
||||
return displayedOptions;
|
||||
}
|
||||
|
||||
public ArrayList<String> getShareSubMenuOption() {
|
||||
ArrayList<String> displayedOptions = new ArrayList();
|
||||
ArrayList<String> displayedOptions = new ArrayList<>();
|
||||
AbsListView shareMenu = getDisplayedShareList();
|
||||
getGroupTextViews(shareMenu, displayedOptions);
|
||||
return displayedOptions;
|
||||
|
Loading…
Reference in New Issue
Block a user