summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2019-11-08 13:57:04 -0800
committerHall Liu <hallliu@google.com>2019-11-08 14:52:19 -0800
commit93ed14bc14f4762e6d4c357a8db653d0bbc602f4 (patch)
tree1e1b3f70ea872fa3a3f45f9a513afd3f7a5ad37d
parent4540ec7024bb8f78eea794aed3479b5b2ce570a1 (diff)
downloadcts-93ed14bc14f4762e6d4c357a8db653d0bbc602f4.tar.gz
Revert "DO NOT MERGE Add CTS for sort field checks"
This reverts commit 51c14c70c39a2ca39bf9214a27c1dbeae559bf6c.
-rw-r--r--tests/tests/telephonyprovider/src/android/telephonyprovider/cts/TelephonyProviderTest.java31
1 files changed, 1 insertions, 30 deletions
diff --git a/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/TelephonyProviderTest.java b/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/TelephonyProviderTest.java
index 3d449f20bf4..05acf329b0a 100644
--- a/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/TelephonyProviderTest.java
+++ b/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/TelephonyProviderTest.java
@@ -59,36 +59,7 @@ public class TelephonyProviderTest extends InstrumentationTestCase {
String[] selectionArgs = null;
Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI,
APN_PROJECTION, selection, selectionArgs, null);
- fail("Expected SecurityException");
- } catch (SecurityException e) {
- // expected
- }
- }
-
- public void testNoAccessToPasswordThruSort() {
- try {
- String selection = Carriers.CURRENT + " IS NOT NULL";
- String[] selectionArgs = null;
- String sort = "LIMIT CASE WHEN ((SELECT COUNT(*) FROM carriers WHERE"
- + " password LIKE 'a%') > 0) THEN 1 ELSE 0 END";
- Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI,
- APN_PROJECTION, selection, selectionArgs, sort);
- fail("Expected SecurityException");
- } catch (SecurityException e) {
- // expected
- }
- }
-
- public void testNoAccessToUser() {
- try {
- String selection = Carriers.CURRENT + " IS NOT NULL AND "
- + Carriers.USER + " IS NOT NULL";
- String[] selectionArgs = null;
- String sort = "LIMIT CASE WHEN ((SELECT COUNT(*) FROM carriers WHERE"
- + " user LIKE 'a%') > 0) THEN 1 ELSE 0 END";
- Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI,
- APN_PROJECTION, selection, selectionArgs, sort);
- fail("Expected SecurityException");
+ fail("Expected SecurityExceptio");
} catch (SecurityException e) {
// expected
}