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

Commit 33933c7e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes from topic "game_loading_statsd_to_tm-dev" into tm-dev am: f8806f13

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16978545

Change-Id: I3dde40608a771f1d93d56493ec9b0d045c1a95d9
parents dbaf34e8 f8806f13
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -1167,7 +1167,14 @@ public class GameManagerServiceTests {
        startUser(gameManagerService, USER_ID_1);
        gameManagerService.setGameMode(
                mPackageName, GameManager.GAME_MODE_PERFORMANCE, USER_ID_1);
        GameState gameState = new GameState(isLoading, GameState.MODE_NONE);
        int testMode = GameState.MODE_NONE;
        int testLabel = 99;
        int testQuality = 123;
        GameState gameState = new GameState(isLoading, testMode, testLabel, testQuality);
        assertEquals(isLoading, gameState.isLoading());
        assertEquals(testMode, gameState.getMode());
        assertEquals(testLabel, gameState.getLabel());
        assertEquals(testQuality, gameState.getQuality());
        gameManagerService.setGameState(mPackageName, gameState, USER_ID_1);
        mTestLooper.dispatchAll();
        verify(mMockPowerManager, times(1)).setPowerMode(Mode.GAME_LOADING, isLoading);