aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/src/com/android/tv/util/TestUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/src/com/android/tv/util/TestUtils.java')
-rw-r--r--tests/unit/src/com/android/tv/util/TestUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/src/com/android/tv/util/TestUtils.java b/tests/unit/src/com/android/tv/util/TestUtils.java
index db5e93cc..09d32779 100644
--- a/tests/unit/src/com/android/tv/util/TestUtils.java
+++ b/tests/unit/src/com/android/tv/util/TestUtils.java
@@ -32,7 +32,7 @@ public class TestUtils {
// Create a mock TvInputInfo by using private constructor
// TODO: Find better way to mock TvInputInfo.
// Note that mockito doesn't support mock/spy on final object.
- if (Build.VERSION.SDK_INT < 23) {
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
return createTvInputInfoForLmp(service, id, parentId, type);
}
return createTvInputInfoForMnc(service, id, parentId, type, isHardwareInput);