Don't use hardcoded package name.
Bug 2454892
This commit is contained in:
parent
62a7b7fe76
commit
d6d843a10b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user