| OLD | NEW | 
|    1 // Copyright 2014 The Chromium Authors. All rights reserved. |    1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "base/bind.h" |    5 #include "base/bind.h" | 
|    6 #include "base/memory/scoped_ptr.h" |    6 #include "base/memory/scoped_ptr.h" | 
|    7 #include "base/memory/scoped_vector.h" |    7 #include "base/memory/scoped_vector.h" | 
|    8 #include "base/message_loop/message_loop.h" |    8 #include "base/message_loop/message_loop.h" | 
|    9 #include "testing/gtest/include/gtest/gtest.h" |    9 #include "testing/gtest/include/gtest/gtest.h" | 
|   10 #include "ui/events/event.h" |   10 #include "ui/events/event.h" | 
|   11 #include "ui/events/keycodes/dom3/dom_code.h" |   11 #include "ui/events/keycodes/dom/dom_code.h" | 
|   12 #include "ui/events/keycodes/keyboard_codes.h" |   12 #include "ui/events/keycodes/keyboard_codes.h" | 
|   13 #include "ui/events/ozone/device/device_manager.h" |   13 #include "ui/events/ozone/device/device_manager.h" | 
|   14 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |   14 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 
|   15 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" |   15 #include "ui/events/ozone/evdev/event_converter_evdev_impl.h" | 
|   16 #include "ui/events/ozone/evdev/event_converter_test_util.h" |   16 #include "ui/events/ozone/evdev/event_converter_test_util.h" | 
|   17 #include "ui/events/ozone/evdev/event_factory_evdev.h" |   17 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 
|   18 #include "ui/events/ozone/evdev/keyboard_evdev.h" |   18 #include "ui/events/ozone/evdev/keyboard_evdev.h" | 
|   19 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |   19 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" | 
|   20  |   20  | 
|   21 #include <linux/input.h> |   21 #include <linux/input.h> | 
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  632   dev->SetAllowedKeys(allowed_keys.Pass()); |  632   dev->SetAllowedKeys(allowed_keys.Pass()); | 
|  633   ASSERT_EQ(1u, size()); |  633   ASSERT_EQ(1u, size()); | 
|  634   event = dispatched_event(0); |  634   event = dispatched_event(0); | 
|  635   EXPECT_EQ(ui::ET_KEY_RELEASED, event->type()); |  635   EXPECT_EQ(ui::ET_KEY_RELEASED, event->type()); | 
|  636  |  636  | 
|  637   // The real key release should be dropped, whenever it comes. |  637   // The real key release should be dropped, whenever it comes. | 
|  638   ClearDispatchedEvents(); |  638   ClearDispatchedEvents(); | 
|  639   dev->ProcessEvents(key_release, arraysize(key_release)); |  639   dev->ProcessEvents(key_release, arraysize(key_release)); | 
|  640   ASSERT_EQ(0u, size()); |  640   ASSERT_EQ(0u, size()); | 
|  641 } |  641 } | 
| OLD | NEW |