| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <list> | 5 #include <list> |
| 6 #include <string> | 6 #include <string> |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/test/chromedriver/chrome/status.h" |
| 11 #include "chrome/test/chromedriver/chrome/ui_events.h" |
| 10 #include "chrome/test/chromedriver/key_converter.h" | 12 #include "chrome/test/chromedriver/key_converter.h" |
| 11 #include "chrome/test/chromedriver/status.h" | |
| 12 #include "chrome/test/chromedriver/test_util.h" | 13 #include "chrome/test/chromedriver/test_util.h" |
| 13 #include "chrome/test/chromedriver/ui_events.h" | |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 void CheckEvents(const string16& keys, | 18 void CheckEvents(const string16& keys, |
| 19 KeyEvent expected_events[], | 19 KeyEvent expected_events[], |
| 20 bool release_modifiers, | 20 bool release_modifiers, |
| 21 size_t expected_size, | 21 size_t expected_size, |
| 22 int expected_modifiers) { | 22 int expected_modifiers) { |
| 23 int modifiers = 0; | 23 int modifiers = 0; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 kShiftKeyModifierMask | kControlKeyModifierMask), | 394 kShiftKeyModifierMask | kControlKeyModifierMask), |
| 395 CreateKeyUpEvent(ui::VKEY_SHIFT, 0), | 395 CreateKeyUpEvent(ui::VKEY_SHIFT, 0), |
| 396 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)}; | 396 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)}; |
| 397 string16 keys; | 397 string16 keys; |
| 398 keys.push_back(static_cast<char16>(0xE008U)); | 398 keys.push_back(static_cast<char16>(0xE008U)); |
| 399 keys.push_back(static_cast<char16>(0xE009U)); | 399 keys.push_back(static_cast<char16>(0xE009U)); |
| 400 | 400 |
| 401 CheckEvents(keys, event_array, true /* release_modifiers */, | 401 CheckEvents(keys, event_array, true /* release_modifiers */, |
| 402 arraysize(event_array), 0); | 402 arraysize(event_array), 0); |
| 403 } | 403 } |
| OLD | NEW |