summaryrefslogtreecommitdiff
path: root/tests/BootImageProfileTest/src
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-10-03 09:38:49 -0700
committerMathieu Chartier <mathieuc@google.com>2019-10-11 15:10:01 -0700
commit9a1c86dd4bb7cbb669061ecc66d4d11b12dd7a60 (patch)
treeda83e22626d68e029f18f9eddc9b7d682ff2e570 /tests/BootImageProfileTest/src
parentb389ffe2d9b3ddf90093632cbbe4fc36aa384cd8 (diff)
Use phenotype properties for boot image profile test
Use these properties instead of system properties to get coverage. Bug: 139883463 Test: atest BootImageProfileTest Change-Id: I9275913ef109b5aaf0bdca6c07da8f102ecdc701
Diffstat (limited to 'tests/BootImageProfileTest/src')
-rw-r--r--tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java b/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java
index fe1d9d26c7e7..ccdd452b3f1e 100644
--- a/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java
+++ b/tests/BootImageProfileTest/src/com/android/bootimageprofile/BootImageProfileTest.java
@@ -46,9 +46,11 @@ public class BootImageProfileTest implements IDeviceTest {
*/
@Test
public void testProperties() throws Exception {
- String res = mTestDevice.getProperty("dalvik.vm.profilebootclasspath");
+ String res = mTestDevice.getProperty(
+ "persist.device_config.runtime_native_boot.profilebootclasspath");
assertTrue("profile boot class path not enabled", res != null && res.equals("true"));
- res = mTestDevice.getProperty("dalvik.vm.profilesystemserver");
+ res = mTestDevice.getProperty(
+ "persist.device_config.runtime_native_boot.profilesystemserver");
assertTrue("profile system server not enabled", res != null && res.equals("true"));
}