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

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

Issue 16753002: Use a direct include of strings headers in chrome/test/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/test/chromedriver/chrome/status.h" 10 #include "chrome/test/chromedriver/chrome/status.h"
11 #include "chrome/test/chromedriver/chrome/ui_events.h" 11 #include "chrome/test/chromedriver/chrome/ui_events.h"
12 #include "chrome/test/chromedriver/key_converter.h" 12 #include "chrome/test/chromedriver/key_converter.h"
13 #include "chrome/test/chromedriver/test_util.h" 13 #include "chrome/test/chromedriver/test_util.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,
(...skipping 375 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698