Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b41bab2a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix Error Prone errors"

parents 9bc62f76 0f782161
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import android.text.TextUtils;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -202,8 +203,10 @@ public class MediaRouterManagerTest {
     * Tests if MR2.Callback.onRouteSelected is called when a route is selected from MR2Manager.
     *
     * TODO: Change this test so that this test check whether the route is added in a session.
     *       Until then, temporailiy removing @Test annotation.
     *       Until then, temporailiy marking @Ignore
     */
    @Test
    @Ignore
    public void testRouterOnRouteSelected() throws Exception {
        Map<String, MediaRoute2Info> routes = waitAndGetRoutesWithManager(CATEGORIES_ALL);

@@ -235,7 +238,8 @@ public class MediaRouterManagerTest {
     * Tests if MR2Manager.Callback.onRouteSelected is called
     * when a route is selected by MR2Manager.
     */
    //TODO: test session created callback instead of onRouteSelected
    @Test
    @Ignore("TODO: test session created callback instead of onRouteSelected")
    public void testManagerOnRouteSelected() throws Exception {
        CountDownLatch latch = new CountDownLatch(1);
        Map<String, MediaRoute2Info> routes = waitAndGetRoutesWithManager(CATEGORIES_ALL);
@@ -263,7 +267,8 @@ public class MediaRouterManagerTest {
        }
    }

    //TODO: enable this when "releasing session" is implemented
    @Test
    @Ignore("TODO: enable this when 'releasing session' is implemented")
    public void testGetActiveRoutes() throws Exception {
        CountDownLatch latch = new CountDownLatch(1);

@@ -300,7 +305,8 @@ public class MediaRouterManagerTest {
    /**
     * Tests selecting and unselecting routes of a single provider.
     */
    //TODO: @Test when session is released
    @Test
    @Ignore("TODO: enable when session is released")
    public void testSingleProviderSelect() throws Exception {
        Map<String, MediaRoute2Info> routes = waitAndGetRoutesWithManager(CATEGORIES_ALL);
        addRouterCallback(new RouteCallback());