@@ -196,14 +196,14 @@ class MockPointerChoreographerPolicyInterface : public PointerChoreographerPolic
196196class MockInputDevice : public InputDevice {
197197public:
198198 MockInputDevice (InputReaderContext* context, int32_t id, int32_t generation,
199- const InputDeviceIdentifier& identifier)
200- : InputDevice(context, id, generation, identifier) {}
199+ const InputDeviceIdentifier& identifier, bool isExternal )
200+ : InputDevice(context, id, generation, identifier), mIsExternal (isExternal) {}
201201
202202 MOCK_METHOD (uint32_t , getSources, (), (const , override ));
203203 MOCK_METHOD (std::optional<DisplayViewport>, getAssociatedViewport, (), (const ));
204204 MOCK_METHOD (KeyboardType, getKeyboardType, (), (const , override ));
205205 MOCK_METHOD (bool , isEnabled, (), ());
206- MOCK_METHOD ( bool , isExternal, (), ( override ));
206+ bool isExternal () override { return mIsExternal ; }
207207
208208 MOCK_METHOD (void , dump, (std::string& dump, const std::string& eventHubDevStr), ());
209209 MOCK_METHOD (void , addEmptyEventHubDevice, (int32_t eventHubId), ());
@@ -266,5 +266,6 @@ class MockInputDevice : public InputDevice {
266266
267267private:
268268 int32_t mGeneration = 0 ;
269+ const bool mIsExternal ;
269270};
270271} // namespace android
0 commit comments