blob: 16866761e57016cf9f9ee6b892739a728e2fd9ff [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/ui/a11y/lib/focus_chain/tests/mocks/mock_focus_chain_requester.h"
namespace accessibility_test {
void MockAccessibilityFocusChainRequester::set_will_change_focus(bool result) {
will_change_focus = result;
}
zx_koid_t MockAccessibilityFocusChainRequester::ReceivedKoid() const { return received_koid_; }
void MockAccessibilityFocusChainRequester::ChangeFocusToView(zx_koid_t view_ref_koid,
ChangeFocusToViewCallback callback) {
received_koid_ = view_ref_koid;
callback(will_change_focus);
}
} // namespace accessibility_test