Add test to ensure data/drm directory exists for
drm process to write the certificate files.
For bug 4950503.

Change-Id: I4477d4aa1dfae0e06383c6f8afc1c0e91ebc9c26
diff --git a/tests/tests/drm/src/android/drm/cts/DRMTest.java b/tests/tests/drm/src/android/drm/cts/DRMTest.java
index c43bf4b..dc87530 100644
--- a/tests/tests/drm/src/android/drm/cts/DRMTest.java
+++ b/tests/tests/drm/src/android/drm/cts/DRMTest.java
@@ -24,6 +24,7 @@
 import android.test.AndroidTestCase;
 import android.util.Log;
 import java.io.IOException;
+import java.io.File;
 import java.util.HashMap;
 import java.util.ArrayList;
 import java.util.Iterator;
@@ -84,6 +85,10 @@
         executeProcessDrmInfo(drmInfo, config);
     }
 
+    public void testIsDrmDirectoryExist() {
+        assertTrue("/data/drm/ does not exist", new File("/data/drm/").exists());
+    }
+
     public void testRegisterAndDeregister() throws Exception {
         for (Config config : mConfigs) {
             register(config);