Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ShellTestCase.java +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell; import static android.view.Display.DEFAULT_DISPLAY; import static org.junit.Assume.assumeTrue; import android.content.Context; Loading Loading @@ -45,6 +46,9 @@ public abstract class ShellTestCase { // Disable protolog tool when running the tests from studio ProtoLog.REQUIRE_PROTOLOGTOOL = false; // Make sure ProtoLog is initialized before any logging occurs. ProtoLog.init(); MockitoAnnotations.initMocks(this); final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); Loading Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/ShellTestCase.java +4 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.wm.shell; import static android.view.Display.DEFAULT_DISPLAY; import static org.junit.Assume.assumeTrue; import android.content.Context; Loading Loading @@ -45,6 +46,9 @@ public abstract class ShellTestCase { // Disable protolog tool when running the tests from studio ProtoLog.REQUIRE_PROTOLOGTOOL = false; // Make sure ProtoLog is initialized before any logging occurs. ProtoLog.init(); MockitoAnnotations.initMocks(this); final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); Loading