Don't use hardcoded package name.

Bug 2454892
This commit is contained in:
Makoto Onuki 2010-02-18 16:45:18 -08:00
parent 62a7b7fe76
commit d6d843a10b
1 changed files with 1 additions and 3 deletions

View File

@ -22,8 +22,6 @@ import android.content.Context;
import android.os.Bundle;
import android.test.AndroidTestCase;
import java.net.URI;
public class VendorPolicyLoaderTest extends AndroidTestCase {
/**
* Test for the case where the helper package doesn't exist.
@ -49,7 +47,7 @@ public class VendorPolicyLoaderTest extends AndroidTestCase {
*/
public void testGetPolicy() {
// Because MockVendorPolicy lives in a non-system apk, we need to skip the system-apk check.
VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), "com.android.email.tests",
VendorPolicyLoader pl = new VendorPolicyLoader(getContext(), getContext().getPackageName(),
MockVendorPolicy.class.getName(), true);
// Prepare result