        importWarning(warning) {
          this.warnings.push(warning);
        }
      };
      const result2 = MemoryAllocatorDump.aggregateNumerics(
          numerics, mockModel);
      checkResult(result2);
      assert.lengthOf(mockModel.warnings, opt_expectedWarningCount || 0);
    }

    // No defined numerics.
    checkAggregateNumerics([], undefined);
    checkAggregateNumerics([undefined], undefined);
    checkAggregateNumerics([undefined, undefined], undefined);

    // Consistent units.
    che