1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_
6 #define UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/events/devices/events_devices_export.h"
14 class DeviceDataManager
;
18 // Test API class to access internals of the DeviceDataManager class.
19 class DeviceDataManagerTestAPI
{
21 // Constructs a test api that provides access to the global DeviceDataManager
22 // instance that is accessible by DeviceDataManager::GetInstance().
23 DeviceDataManagerTestAPI();
24 ~DeviceDataManagerTestAPI();
26 // Wrapper functions to DeviceDataManager.
27 void NotifyObserversTouchscreenDeviceConfigurationChanged();
28 void NotifyObserversKeyboardDeviceConfigurationChanged();
29 void NotifyObserversMouseDeviceConfigurationChanged();
30 void NotifyObserversTouchpadDeviceConfigurationChanged();
31 void NotifyObserversDeviceListsComplete();
32 void OnDeviceListsComplete();
35 DISALLOW_COPY_AND_ASSIGN(DeviceDataManagerTestAPI
);
41 #endif // UI_EVENTS_TEST_DEVICE_DATA_MANAGER_TEST_API_H_