blob: 877b17d5f3266a258033ddc35c140accc2795645 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_KEYBOARD_UI_TEST_TEST_KEYBOARD_CONTROLLER_OBSERVER_H_
#define ASH_KEYBOARD_UI_TEST_TEST_KEYBOARD_CONTROLLER_OBSERVER_H_
#include "ash/public/cpp/keyboard/keyboard_controller_observer.h"
namespace keyboard {
// A KeyboardControllerObserver that counts occurrences of events for testing.
struct TestKeyboardControllerObserver : public ash::KeyboardControllerObserver {
TestKeyboardControllerObserver();
~TestKeyboardControllerObserver() override;
// KeyboardControllerObserver:
void OnKeyboardEnabledChanged(bool is_enabled) override;
int enabled_count = 0;
int disabled_count = 0;
DISALLOW_COPY_AND_ASSIGN(TestKeyboardControllerObserver);
};
} // namespace keyboard
#endif // ASH_KEYBOARD_UI_TEST_TEST_KEYBOARD_CONTROLLER_OBSERVER_H_