void (boolean useHttpProxy, boolean proxyTypeIsSocks, boolean useProxyPac, boolean usePacUrl, @Nullable String pacUrl, @Nullable String proxyHost, int proxyPort, @Nullable String proxyExceptions, boolean proxyAuthentication, @Nullable String login, @Nullable String password) { if (!ApplicationManager.getApplication().isUnitTestMode()) { throw new IllegalStateException("not in unit test mode!"); } ourTestInstance = new JBCefProxySettings( useHttpProxy, proxyTypeIsSocks, useProxyPac, usePacUrl, pacUrl, proxyHost, proxyPort, proxyExceptions, proxyAuthentication, new Credentials() { @Override public @Nullable String getLogin() { return login; } @Override public @Nullable String getPassword() { return password; } }); }