Bug 1067060: Eliminate SynchronousQueue from RobocopUtils. r=mcomella

This commit is contained in:
Chris Kitching 2014-09-13 19:09:16 -07:00
parent 61458ad6ea
commit f6574c55b5
2 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -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;