OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/test/automation/automation_json_requests.h" | 10 #include "chrome/test/automation/automation_json_requests.h" |
11 #include "chrome/test/webdriver/webdriver_key_converter.h" | 11 #include "chrome/test/webdriver/webdriver_key_converter.h" |
12 #include "chrome/test/webdriver/webdriver_test_util.h" | 12 #include "chrome/test/webdriver/webdriver_test_util.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace webdriver { | 15 namespace webdriver { |
16 | 16 |
17 void CheckEvents(const string16& keys, | 17 void CheckEvents(const string16& keys, |
18 WebKeyEvent expected_events[], | 18 WebKeyEvent expected_events[], |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)}; | 367 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)}; |
368 string16 keys; | 368 string16 keys; |
369 keys.push_back(static_cast<char16>(0xE008U)); | 369 keys.push_back(static_cast<char16>(0xE008U)); |
370 keys.push_back(static_cast<char16>(0xE009U)); | 370 keys.push_back(static_cast<char16>(0xE009U)); |
371 | 371 |
372 CheckEvents(keys, event_array, true /* release_modifiers */, | 372 CheckEvents(keys, event_array, true /* release_modifiers */, |
373 arraysize(event_array), 0); | 373 arraysize(event_array), 0); |
374 } | 374 } |
375 | 375 |
376 } // namespace webdriver | 376 } // namespace webdriver |
OLD | NEW |