@Override
 public void setUp() throws Exception {
   super.setUp();
   mServer = new TestWebServer(false);
   mContentsClient = new TestAwContentsClient();
   final AwTestContainerView testContainerView =
       createAwTestContainerViewOnMainSync(mContentsClient);
   mAwContents = testContainerView.getAwContents();
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   AwContents.setShouldDownloadFavicons();
   mContentsClient = new TestAwContentsClient();
   AwTestContainerView testContainerView = createAwTestContainerViewOnMainSync(mContentsClient);
   mAwContents = testContainerView.getAwContents();
   mWebServer = TestWebServer.start();
 }
Example #3
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   mContentsClient = new TestAwContentsClient();
   mTestView = createAwTestContainerViewOnMainSync(mContentsClient);
   mAwContents = mTestView.getAwContents();
   mWebServer = TestWebServer.start();
   final String imagePath = "/" + CommonResources.TEST_IMAGE_FILENAME;
   mWebServer.setResponseBase64(
       imagePath, CommonResources.FAVICON_DATA_BASE64, CommonResources.getImagePngHeaders(true));
 }
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    mCookieManager = new AwCookieManager();
    mContentsClient = new TestAwContentsClient();
    final AwTestContainerView testContainerView =
        createAwTestContainerViewOnMainSync(mContentsClient);
    mAwContents = testContainerView.getAwContents();
    mAwContents.getSettings().setJavaScriptEnabled(true);
    assertNotNull(mCookieManager);

    mCookieManager.setAcceptCookie(true);
    assertTrue(mCookieManager.acceptCookie());
  }
  @Override
  public void setUp() throws Exception {
    super.setUp();
    mContentsClient = new TestAwContentsClient();
    mTestView = createAwTestContainerViewOnMainSync(mContentsClient);
    mAwContents = mTestView.getAwContents();
    mWebServer = TestWebServer.start();
    mOrigin = mWebServer.getBaseUrl();

    AwSettings settings = getAwSettingsOnUiThread(mAwContents);
    settings.setJavaScriptEnabled(true);
    settings.setDomStorageEnabled(true);
    settings.setAppCacheEnabled(true);
    settings.setAppCachePath("whatever"); // Enables AppCache.
  }
 @Override
 public void setUp() throws Exception {
   super.setUp();
   mWebServer = TestWebServer.start();
 }
 @Override
 protected void setUp() throws Exception {
   super.setUp();
   mWebServer = TestWebServer.start();
 }