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

Side by Side Diff: chrome/test/webdriver/webdriver_key_converter_unittest.cc

Issue 6614023: Convert ChromeDriver to use only the JSON automation interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address Pawel's additional comments Created 9 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
« no previous file with comments | « chrome/test/webdriver/webdriver_key_converter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/string16.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/test/webdriver/automation.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 "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace webdriver { 14 namespace webdriver {
15 15
16 void CheckEvents(const string16& keys, 16 void CheckEvents(const string16& keys,
17 WebKeyEvent expected_events[], 17 WebKeyEvent expected_events[],
18 size_t expected_size) { 18 size_t expected_size) {
19 std::vector<WebKeyEvent> events; 19 std::vector<WebKeyEvent> events;
20 ConvertKeysToWebKeyEvents(keys, &events); 20 ConvertKeysToWebKeyEvents(keys, &events);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 << "Index: " << i; 259 << "Index: " << i;
260 } else if (i < 2) { 260 } else if (i < 2) {
261 EXPECT_EQ(0u, events.size()) << "Index: " << i; 261 EXPECT_EQ(0u, events.size()) << "Index: " << i;
262 } else { 262 } else {
263 EXPECT_EQ(2u, events.size()) << "Index: " << i; 263 EXPECT_EQ(2u, events.size()) << "Index: " << i;
264 } 264 }
265 } 265 }
266 } 266 }
267 267
268 } // namespace webdriver 268 } // namespace webdriver
OLDNEW
« no previous file with comments | « chrome/test/webdriver/webdriver_key_converter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698