mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-10 02:51:10 +01:00
Fix MockTerminalOutput to implement all methods
This commit is contained in:
parent
599aaff723
commit
491240ee3f
1 changed files with 7 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ public abstract class TerminalTestCase extends TestCase {
|
||||||
public final List<ChangedTitle> titleChanges = new ArrayList<>();
|
public final List<ChangedTitle> titleChanges = new ArrayList<>();
|
||||||
public final List<String> clipboardPuts = new ArrayList<>();
|
public final List<String> clipboardPuts = new ArrayList<>();
|
||||||
public int bellsRung = 0;
|
public int bellsRung = 0;
|
||||||
|
public int colorsChanged = 0;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(byte[] data, int offset, int count) {
|
public void write(byte[] data, int offset, int count) {
|
||||||
|
|
@ -49,7 +50,12 @@ public abstract class TerminalTestCase extends TestCase {
|
||||||
public void onBell() {
|
public void onBell() {
|
||||||
bellsRung++;
|
bellsRung++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@Override
|
||||||
|
public void onColorsChanged() {
|
||||||
|
colorsChanged++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public TerminalEmulator mTerminal;
|
public TerminalEmulator mTerminal;
|
||||||
public MockTerminalOutput mOutput;
|
public MockTerminalOutput mOutput;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue