static resolve(opt_value) {
    if (opt_value instanceof mr.MockPromise) {
      // Avoid creating a new object if we already have a promise object
      // of the correct type.
      return opt_value;
    }

    return new mr.MockPromise((resolve, reject) => {
      resolve(opt_value);
    });
  }
/**
   * @param {*=} opt_value
   * @return {!mr.MockPromise} A new Promise that is immediately resolved
   *     with the given value. If the input value is already a mr.MockPromise,
   * it will be returned immediately without creating a new instance.
   */
@param {*=} opt_value
@return {!mr.MockPromise} A new Promise that is immediately resolved
with the given value. If the input value is already a mr.MockPromise,
it will be returned immediately without creating a new instance.
@param { * = } opt_value @return { !mr . MockPromise } A new Promise that is immediately resolved with the given value . If the input value is already a mr . MockPromise it will be returned immediately without creating a new instance .
static resolve(opt_value) {
    if (opt_value instanceof mr.MockPromise) {
      return opt_value;
    }
    return new mr.MockPromise((resolve, reject) => {
      resolve(opt_value);
    });
  }
static resolve ( opt_value ) { if ( opt_value instanceof mr . MockPromise ) { return opt_value ; } return new mr . MockPromise ( ( resolve , reject ) => { resolve ( opt_value ) ; } ) ; }
@param {*=} opt_value
 @return {!mr.MockPromise} A new Promise that is immediately resolved
     with the given value.
@param { * = } opt_value @return { !mr . MockPromise } A new Promise that is immediately resolved with the given value .
// Avoid creating a new object if we already have a promise object // of the correct type.