Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: chrome/test/chromedriver/key_converter_unittest.cc

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/key_converter.cc ('k') | chrome/test/chromedriver/keycode_text_conversion_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698