Tests: Replaces now unresolvable USER_CERTIFICATES_DIR by call to appropriate method

This commit is contained in:
Paul-Louis NECH 2015-08-14 14:45:07 +02:00
parent 07932f0a36
commit 6770d0af6b

View file

@ -181,7 +181,7 @@ public class CertificateManagerTest extends AndroidTestCase {
}
assertNotNull(Shell.SU.run(
"mv " + source.getAbsolutePath() + " " +
CertificateManager.USER_CERTIFICATES_DIR + "/" + TEST_CERTIFICATE_NAME));
CertificateManager.getUserCertificatesDir() + "/" + TEST_CERTIFICATE_NAME));
// NOTE: We use CertificateManager.moveCertificateToSystem() to avoid
// implementing system remount again.
return (isSystemCertificate)