Searched refs:mockapi (Results 1 – 3 of 3) sorted by relevance
/hardware/google/pixel/vibrator/drv2624/tests/ |
D | test-vibrator.cpp | 96 std::unique_ptr<MockApi> mockapi; 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 130 *mockapi = std::make_unique<MockApi>(); in createMock() 133 mMockApi = mockapi->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() 252 std::unique_ptr<MockApi> mockapi; in TEST_P() local 263 createMock(&mockapi, &mockcal); in TEST_P() [all …]
|
/hardware/google/pixel/vibrator/cs40l25/tests/ |
D | test-vibrator.cpp | 158 std::unique_ptr<MockApi> mockapi; in SetUp() local 162 createMock(&mockapi, &mockcal, &mockstats); in SetUp() 163 createVibrator(std::move(mockapi), std::move(mockcal), std::move(mockstats)); in SetUp() 169 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal, in createMock() argument 171 *mockapi = std::make_unique<MockApi>(); in createMock() 175 mMockApi = mockapi->get(); in createMock() 201 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument 206 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator() 288 std::unique_ptr<MockApi> mockapi; in TEST_F() local 304 createMock(&mockapi, &mockcal, &mockstats); in TEST_F() [all …]
|
/hardware/google/pixel/vibrator/cs40l26/tests/ |
D | test-vibrator.cpp | 205 std::unique_ptr<MockApi> mockapi; in SetUp() local 209 createMock(&mockapi, &mockcal, &mockstats); in SetUp() 210 createVibrator(std::move(mockapi), std::move(mockcal), std::move(mockstats)); in SetUp() 216 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal, in createMock() argument 218 *mockapi = std::make_unique<MockApi>(); in createMock() 222 mMockApi = mockapi->get(); in createMock() 260 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument 265 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator() 340 std::unique_ptr<MockApi> mockapi; in TEST_F() local 359 createMock(&mockapi, &mockcal, &mockstats); in TEST_F() [all …]
|