Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3ae93a50 authored by Daniel Norman's avatar Daniel Norman
Browse files

Adds more test coverage for BrailleDisplay[Controller|Connection].

BrailleDisplayConnection:
- Test when write() is called but the accessibility service is not
  connected.
- Test when write() is called with too large of a buffer.
- Test when write() is called but the FileOutputStream fails to be
  created.
- Test for DefaultNativeScanner#getHidrawNodePaths
- Renamed getDefaultNativeInterface anonymous class to a defined class
  name so that its missing coverage is clearer in dashboards.
  (These instrumentation tests cannot call the native methods.)

BrailleDisplayControllerImpl
- Test connect(UsbDevice) calls the correct system_server method.
- Test when connect is called but the service is not connected.

Bug: 306754563
Test: atest BrailleDisplayConnectionTest
Test: atest BrailleDisplayControllerImplTest
Change-Id: I16fa7eb71dfa2ccf719dbdf7c9a1f167dcd3ae00
parent 8fcb1092
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment