Home
last modified time | relevance | path

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

/device/google/redfin/vibrator/drv2624/tests/
Dtest-vibrator.cpp95 std::unique_ptr<MockApi> mockapi; 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
129 *mockapi = std::make_unique<MockApi>(); in createMock()
132 mMockApi = mockapi->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()
248 std::unique_ptr<MockApi> mockapi; in TEST_P() local
259 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/device/google/barbet/vibrator/drv2624/tests/
Dtest-vibrator.cpp95 std::unique_ptr<MockApi> mockapi; 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
129 *mockapi = std::make_unique<MockApi>(); in createMock()
132 mMockApi = mockapi->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()
248 std::unique_ptr<MockApi> mockapi; in TEST_P() local
259 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/device/google/sunfish/vibrator/drv2624/tests/
Dtest-vibrator.cpp99 std::unique_ptr<MockApi> mockapi; 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
133 *mockapi = std::make_unique<MockApi>(); in createMock()
136 mMockApi = mockapi->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()
252 std::unique_ptr<MockApi> mockapi; in TEST_P() local
263 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/device/google/felix/vibrator/cs40l26/tests/
Dtest-vibrator.cpp204 std::unique_ptr<MockApi> mockapi; 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
217 *mockapi = std::make_unique<MockApi>(); in createMock()
221 mMockApi = mockapi->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()
324 std::unique_ptr<MockApi> mockapi; in TEST_F() local
341 createMock(&mockapi, &mockcal, &mockgpio); in TEST_F()
[all …]