SQL token checker to detect uses of hidden tables/columns
- Detect invalid SQL code (e.g. contains a semi-colon)
in not only WHERE for query() but in other places too.
- Disallow use of the word "select" and table/view names
in the supplied code to prevent subqueries.
- This mechanism will be used to hide columns in the futire too.
Test: adb shell am instrument -w com.android.providers.contacts.tests
Bug 31559073
Change-Id: Ib4293b4caf7e341186ee8bd4cc2d7dad7155c48d
diff --git a/tests/Android.mk b/tests/Android.mk
index 35a6b39..d2f9986 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -4,7 +4,9 @@
# We only want this apk build for tests.
LOCAL_MODULE_TAGS := tests
-LOCAL_STATIC_JAVA_LIBRARIES := mockito-target
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ android-support-test \
+ mockito-target-minus-junit4
LOCAL_JAVA_LIBRARIES := android.test.runner