Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea9251c9 authored by Neil Vohra's avatar Neil Vohra Committed by Automerger Merge Worker
Browse files

Merge "Add shutdown call after each test to initialize a new sandbox env for...

Merge "Add shutdown call after each test to initialize a new sandbox env for every test." into tm-mainline-prod am: 133e6b60

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19386617



Change-Id: I3d3c42318507d4bf766f739b9c70dc15b6a00fd2
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d0e6148d 133e6b60
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ import com.google.common.collect.ImmutableList;
import com.google.common.util.concurrent.ListenableFuture;

import org.json.JSONArray;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -86,6 +87,11 @@ public class JSScriptEnginePerfTests {
                "function test() { return \"hello world\";" + " }", ImmutableList.of(), "test");
    }

    @After
    public void after() {
        sJSScriptEngine.shutdown();
    }

    @Test
    public void evaluate_helloWorld() throws Exception {
        BenchmarkState state = mPerfStatusReporter.getBenchmarkState();