Fix MockTerminalOutput to implement all methods

This commit is contained in:
Fredrik Fornwall
2016-06-08 16:09:42 +02:00
parent 599aaff723
commit 491240ee3f

View File

@@ -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,6 +50,11 @@ 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;