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

Commit 1a3ef96b authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am e57ff0e1: Merge change 6652 into donut

Merge commit 'e57ff0e1'

* commit 'e57ff0e1':
  Call clearCache on WebView before collecting memory information.
parents 368df941 e57ff0e1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -72,6 +72,7 @@ public class LoadTestsAutoTest extends ActivityInstrumentationTestCase2<TestShel
        // Run tests
        runTestAndWaitUntilDone(activity, runner.mTestPath, runner.mTimeoutInMillis);

        activity.clearCache();
        dumpMemoryInfo();

        // Kill activity
+4 −0
Original line number Diff line number Diff line
@@ -90,6 +90,10 @@ public class TestShellActivity extends Activity implements LayoutTestController
        }
    }

    public void clearCache() {
      mWebView.clearCache(true);
    }

    @Override
    protected void onCreate(Bundle icicle) {
        super.onCreate(icicle);