Home
last modified time | relevance | path

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

/device/google/redfin/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()
175 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
180 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
249 std::unique_ptr<MockCal> mockcal; in TEST_P() local
259 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/device/google/barbet/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()
175 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
180 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
249 std::unique_ptr<MockCal> mockcal; in TEST_P() local
259 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/device/google/sunfish/vibrator/drv2624/tests/
Dtest-vibrator.cpp100 std::unique_ptr<MockCal> mockcal; in SetUp() local
123 createMock(&mockapi, &mockcal); in SetUp()
124 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
132 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
134 *mockcal = std::make_unique<MockCal>(); in createMock()
137 mMockCal = mockcal->get(); in createMock()
179 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
184 mVibrator = new 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 …]
/device/google/felix/vibrator/cs40l26/tests/
Dtest-vibrator.cpp205 std::unique_ptr<MockCal> mockcal; in SetUp() local
208 createMock(&mockapi, &mockcal, &mockgpio); in SetUp()
209 createVibrator(std::move(mockapi), std::move(mockcal), std::move(mockgpio)); in SetUp()
215 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal, in createMock() argument
218 *mockcal = std::make_unique<MockCal>(); in createMock()
222 mMockCal = mockcal->get(); in createMock()
254 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
261 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator()
325 std::unique_ptr<MockCal> mockcal; in TEST_F() local
341 createMock(&mockapi, &mockcal, &mockgpio); in TEST_F()
[all …]