
private final class MockScrollMetricsProvider: ScrollMetricsProvider {

  // MARK: Internal

  func size(for scrollAxis: ScrollAxis) -> CGFloat {
    switch scrollAxis {
    case .vertical: return contentSize.height
    case .horizontal: return contentSize.width
    }
  }

  func setSize(to size: CGFloat, for scrollAxis: ScrollAxis) {