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

Commit e57ff0e1 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 6652 into donut

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


        activity.clearCache();
        dumpMemoryInfo();
        dumpMemoryInfo();


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


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

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