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.cpp97 std::unique_ptr<MockCal> mockcal; in SetUp() local
120 createMock(&mockapi, &mockcal); in SetUp()
121 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
129 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
131 *mockcal = std::make_unique<MockCal>(); in createMock()
134 mMockCal = mockcal->get(); in createMock()
178 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
183 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
253 std::unique_ptr<MockCal> mockcal; in TEST_P() local
263 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp151 std::unique_ptr<MockCal> mockcal; in SetUp() local
153 createMock(&mockapi, &mockcal); in SetUp()
154 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
160 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
162 *mockcal = std::make_unique<MockCal>(); in createMock()
165 mMockCal = mockcal->get(); in createMock()
189 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
194 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
268 std::unique_ptr<MockCal> mockcal; in TEST_F() local
281 createMock(&mockapi, &mockcal); in TEST_F()
[all …]