Add moreKeys helper method for unit test
Bug: 13017434 Change-Id: Icfaa4093686e2d8dec00d5acce894bfc6a2474b7
This commit is contained in:
parent
e06eb8cff4
commit
74f259a74e
2 changed files with 12 additions and 0 deletions
|
@ -76,6 +76,12 @@ public abstract class AbstractLayoutBase {
|
|||
return ExpectedKey.newInstance(label, code);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
public static ExpectedKey[] moreKeys(final Object ... moreKeys) {
|
||||
return joinKeys(moreKeys);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
public static ExpectedKey[] joinKeys(final Object ... keys) {
|
||||
|
|
|
@ -83,6 +83,12 @@ abstract class LayoutTestsBase extends KeyboardLayoutSetTestsBase {
|
|||
return AbstractLayoutBase.moreKey(label, outputText);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
static ExpectedKey[] moreKeys(final Object ... moreKeys) {
|
||||
return AbstractLayoutBase.joinKeys(moreKeys);
|
||||
}
|
||||
|
||||
// Helper method to create {@link ExpectedKey} array by joining {@link ExpectedKey},
|
||||
// {@link ExpectedKey} array, and {@link String}.
|
||||
static ExpectedKey[] joinKeys(final Object ... keys) {
|
||||
|
|
Loading…
Reference in a new issue