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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 <stddef.h>
6
5 #include <list> 7 #include <list>
6 #include <string> 8 #include <string>
7 9
10 #include "base/macros.h"
8 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "build/build_config.h"
10 #include "chrome/test/chromedriver/chrome/status.h" 14 #include "chrome/test/chromedriver/chrome/status.h"
11 #include "chrome/test/chromedriver/chrome/ui_events.h" 15 #include "chrome/test/chromedriver/chrome/ui_events.h"
12 #include "chrome/test/chromedriver/key_converter.h" 16 #include "chrome/test/chromedriver/key_converter.h"
13 #include "chrome/test/chromedriver/test_util.h" 17 #include "chrome/test/chromedriver/test_util.h"
14 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
15 19
16 namespace { 20 namespace {
17 21
18 void CheckEvents(const base::string16& keys, 22 void CheckEvents(const base::string16& keys,
19 KeyEvent expected_events[], 23 KeyEvent expected_events[],
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 kShiftKeyModifierMask | kControlKeyModifierMask), 407 kShiftKeyModifierMask | kControlKeyModifierMask),
404 CreateKeyUpEvent(ui::VKEY_SHIFT, 0), 408 CreateKeyUpEvent(ui::VKEY_SHIFT, 0),
405 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)}; 409 CreateKeyUpEvent(ui::VKEY_CONTROL, 0)};
406 base::string16 keys; 410 base::string16 keys;
407 keys.push_back(static_cast<base::char16>(0xE008U)); 411 keys.push_back(static_cast<base::char16>(0xE008U));
408 keys.push_back(static_cast<base::char16>(0xE009U)); 412 keys.push_back(static_cast<base::char16>(0xE009U));
409 413
410 CheckEvents(keys, event_array, true /* release_modifiers */, 414 CheckEvents(keys, event_array, true /* release_modifiers */,
411 arraysize(event_array), 0); 415 arraysize(event_array), 0);
412 } 416 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/key_converter.cc ('k') | chrome/test/chromedriver/keycode_text_conversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698