Searched refs:mMockController (Results 1 – 2 of 2) sorted by relevance
/frameworks/native/services/vibratorservice/test/ |
D | VibratorManagerHalWrapperLegacyTest.cpp | 52 mMockController = std::make_shared<StrictMock<MockHalController>>(); in SetUp() 53 mWrapper = std::make_unique<vibrator::LegacyManagerHalWrapper>(mMockController); in SetUp() 58 std::shared_ptr<StrictMock<MockHalController>> mMockController = nullptr; member in VibratorManagerHalWrapperLegacyTest 65 EXPECT_CALL(*mMockController.get(), init()).Times(Exactly(1)).WillOnce(Return(false)); in TEST_F() 71 EXPECT_CALL(*mMockController.get(), tryReconnect()).Times(Exactly(1)); in TEST_F() 85 EXPECT_CALL(*mMockController.get(), init()) in TEST_F() 100 EXPECT_CALL(*mMockController.get(), init()) in TEST_F() 109 ASSERT_EQ(mMockController.get(), result.value().get()); in TEST_F()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsAnimationControlImplTest.java | 78 @Mock InsetsController mMockController; field in InsetsAnimationControlImplTest 93 doNothing().when(mMockController).onRequestedVisibilityChanged(any()); in setup() 95 () -> mMockTransaction, mMockController); in setup() 102 mInsetsState, () -> mMockTransaction, mMockController); in setup() 112 mMockController, 10 /* durationMs */, new LinearInterpolator(), in setup() 141 verify(mMockController).applySurfaceParams(captor.capture()); in testChangeInsets() 171 when(mMockController.getState()).thenReturn(mInsetsState); in testFinishing() 175 verify(mMockController).notifyFinished(eq(mController), eq(true /* shown */)); in testFinishing() 211 when(mMockController.getState()).thenReturn(mInsetsState); in testFinish_immediately() 215 }).when(mMockController).scheduleApplyChangeInsets(any()); in testFinish_immediately() [all …]
|