Home
last modified time | relevance | path

Searched refs:mockcal (Results 1 – 2 of 2) sorted by relevance

/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-vibrator.cpp96 std::unique_ptr<MockCal> mockcal; in SetUp() local
119 createMock(&mockapi, &mockcal); in SetUp()
120 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
128 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
130 *mockcal = std::make_unique<MockCal>(); in createMock()
133 mMockCal = mockcal->get(); in createMock()
177 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
182 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
251 std::unique_ptr<MockCal> mockcal; in TEST_P() local
261 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp150 std::unique_ptr<MockCal> mockcal; in SetUp() local
152 createMock(&mockapi, &mockcal); in SetUp()
153 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
159 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
161 *mockcal = std::make_unique<MockCal>(); in createMock()
164 mMockCal = mockcal->get(); in createMock()
185 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
190 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
264 std::unique_ptr<MockCal> mockcal; in TEST_F() local
276 createMock(&mockapi, &mockcal); in TEST_F()
[all …]