From 7dd92fa94df0a13b4592ee636b7aa2b605f6b473 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Thu, 7 Jan 2010 16:33:05 -0800 Subject: Use the private legacy API The public API is getting deeply reworked for forward compatibility, but since the Download Manager and the Browser need to continue using the old API, a separate copy is being kept on the side. Bug: 2245521 Change-Id: I85eff6ba9efc68600aa80e8dffa6720b0f2ed155 --- .../downloads/permission/tests/DownloadProviderPermissionsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/permission') diff --git a/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java b/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java index b16c2650..ecdce93c 100644 --- a/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java +++ b/tests/permission/src/com/android/providers/downloads/permission/tests/DownloadProviderPermissionsTest.java @@ -72,7 +72,7 @@ public class DownloadProviderPermissionsTest extends AndroidTestCase { @MediumTest public void testReadDownloadProvider() throws IOException { try { - mContentResolver.query(Downloads.CONTENT_URI, null, null, null, null); + mContentResolver.query(Downloads.Impl.CONTENT_URI, null, null, null, null); fail("read from provider did not throw SecurityException as expected."); } catch (SecurityException e) { // expected @@ -88,8 +88,8 @@ public class DownloadProviderPermissionsTest extends AndroidTestCase { public void testWriteDownloadProvider() throws IOException { try { ContentValues values = new ContentValues(); - values.put(Downloads.COLUMN_URI, "foo"); - mContentResolver.insert(Downloads.CONTENT_URI, values); + values.put(Downloads.Impl.COLUMN_URI, "foo"); + mContentResolver.insert(Downloads.Impl.CONTENT_URI, values); fail("write to provider did not throw SecurityException as expected."); } catch (SecurityException e) { // expected -- cgit v1.2.3