OSDN Git Service

Add unit test for Trampoline.
authorArtem Iglikov <artikz@google.com>
Thu, 20 Apr 2017 16:23:39 +0000 (17:23 +0100)
committerArtem Iglikov <artikz@google.com>
Thu, 20 Apr 2017 20:43:16 +0000 (21:43 +0100)
commit6052ef563c656e3bd524415e6d35fc1a5f50aca1
treeb014fc48407c4209676d55d7b2effffba145126c
parentdc52b3c0742662999ad18d0cfc1e5982afef7ab5
Add unit test for Trampoline.

This adds the test to FrameworksServicesTests test suite, which can be
run with the following command:

make FrameworksServicesTests -j &&
adb install -r ${OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk &&
adb shell am instrument -w -e package com.android.server.backup \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Bug: 37520021

Test: manually ran the test

Change-Id: I3f0dc50b0eb2ff2bc9360c68714c27e82b820897
services/backup/java/com/android/server/backup/Trampoline.java
services/tests/servicestests/Android.mk
services/tests/servicestests/src/com/android/server/backup/TrampolineTest.java [new file with mode: 0644]