Beispiel #1
0
 /** Posts url on the UI thread and blocks until onPageFinished is called. */
 public void postUrlSync(
     final AwContents awContents,
     CallbackHelper onPageFinishedHelper,
     final String url,
     byte[] postData)
     throws Exception {
   int currentCallCount = onPageFinishedHelper.getCallCount();
   postUrlAsync(awContents, url, postData);
   onPageFinishedHelper.waitForCallback(
       currentCallCount, 1, WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS);
 }