Revision control
Copy as Markdown
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
import Foundation
@testable import WebEngine
class MockFindInPageHelperDelegate: FindInPageHelperDelegate {
var didUpdateCurrentResultCalled = 0
var didUpdateTotalResultsCalled = 0
var savedCurrentResult = 0
var savedTotalResults = 0
func findInPageHelper(didUpdateCurrentResult currentResult: Int) {
savedCurrentResult = currentResult
didUpdateCurrentResultCalled += 1
}
func findInPageHelper(didUpdateTotalResults totalResults: Int) {
savedTotalResults = totalResults
didUpdateTotalResultsCalled += 1
}
}