// Path: src/tests/selenium/phabricator.sprint/src/org/phabricator/sprint/selenium/testing/DevMode.java
// public static boolean isInDevMode() {
//   return isInDevMode("/org/openqa/selenium/firefox/webdriver.xpi");
// }


import static org.phabricator.sprint.selenium.testing.DevMode.isInDevMode;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Logger;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriver;
import com.google.common.base.Supplier;
import com.google.common.base.Throwables;
package org.phabricator.sprint.selenium.testing.drivers;





public class DefaultDriverSupplier implements Supplier<WebDriver> {

  private static final Logger log = Logger.getLogger(DefaultDriverSupplier.class.getName());
  private Class<? extends WebDriver> driverClass;
  private final Capabilities desiredCapabilities;
  private final Capabilities requiredCapabilities;

  public DefaultDriverSupplier(Capabilities desiredCapabilities,
      Capabilities requiredCapabilities) {
    this.desiredCapabilities = desiredCapabilities;
    this.requiredCapabilities = requiredCapabilities;

    try {
      // Only support a default driver if we're actually in dev mode.
// Path: src/tests/selenium/phabricator.sprint/src/org/phabricator/sprint/selenium/testing/DevMode.java
// public static boolean isInDevMode() {
//   return isInDevMode("/org/openqa/selenium/firefox/webdriver.xpi");
// }


// Path: src/tests/selenium/phabricator.sprint/src/org/phabricator/sprint/selenium/testing/drivers/DefaultDriverSupplier.java
import static org.phabricator.sprint.selenium.testing.DevMode.isInDevMode;
import java.lang.reflect.InvocationTargetException;
import java.util.logging.Logger;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriver;
import com.google.common.base.Supplier;
import com.google.common.base.Throwables;

package org.phabricator.sprint.selenium.testing.drivers;





public class DefaultDriverSupplier implements Supplier<WebDriver> {

  private static final Logger log = Logger.getLogger(DefaultDriverSupplier.class.getName());
  private Class<? extends WebDriver> driverClass;
  private final Capabilities desiredCapabilities;
  private final Capabilities requiredCapabilities;

  public DefaultDriverSupplier(Capabilities desiredCapabilities,
      Capabilities requiredCapabilities) {
    this.desiredCapabilities = desiredCapabilities;
    this.requiredCapabilities = requiredCapabilities;

    try {
      // Only support a default driver if we're actually in dev mode.
      if (isInDevMode()) {