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

Side by Side Diff: remoting/test/remote_desktop_browsertest.h

Issue 23542008: Add a CodeToNativeKeycode helper that converts UIEvent code to native code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unittests Created 7 years, 3 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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | remoting/test/remote_desktop_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef REMOTE_DESKTOP_BROWSER_TEST_H_ 5 #ifndef REMOTE_DESKTOP_BROWSER_TEST_H_
6 #define REMOTE_DESKTOP_BROWSER_TEST_H_ 6 #define REMOTE_DESKTOP_BROWSER_TEST_H_
7 7
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/extension_browsertest.h" 9 #include "chrome/browser/extensions/extension_browsertest.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Authenticate: sign in to google using the credentials provided. 75 // Authenticate: sign in to google using the credentials provided.
76 void Authenticate(); 76 void Authenticate();
77 77
78 // Approve: grant the chromoting app necessary permissions. 78 // Approve: grant the chromoting app necessary permissions.
79 void Approve(); 79 void Approve();
80 80
81 // Click on "Get Started" in the Me2Me section and show the host list. 81 // Click on "Get Started" in the Me2Me section and show the host list.
82 void StartMe2Me(); 82 void StartMe2Me();
83 83
84 // Simulate a key event. 84 // Simulate a key event.
85 void SimulateKeyPress(ui::KeyboardCode key, int nativeKeyCode); 85 void SimulateKeyPressWithCode(ui::KeyboardCode keyCode, const char* code);
86 86
87 void SimulateKeyPress(ui::KeyboardCode key, 87 void SimulateKeyPressWithCode(ui::KeyboardCode keyCode,
88 int nativeKeyCode, 88 const char* code,
89 bool control, 89 bool control,
90 bool shift, 90 bool shift,
91 bool alt, 91 bool alt,
92 bool command); 92 bool command);
93 93
94 94
95 /* */ 95 /* */
96 /* The following helpers each perform a composite task. */ 96 /* The following helpers each perform a composite task. */
97 /* */ 97 /* */
98 98
99 // Install the chromoting extension 99 // Install the chromoting extension
100 void Install(); 100 void Install();
101 101
102 // Clean up after the test. 102 // Clean up after the test.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 std::string chromoting_id_; 219 std::string chromoting_id_;
220 base::FilePath webapp_crx_; 220 base::FilePath webapp_crx_;
221 std::string username_; 221 std::string username_;
222 std::string password_; 222 std::string password_;
223 std::string me2me_pin_; 223 std::string me2me_pin_;
224 }; 224 };
225 225
226 } // namespace remoting 226 } // namespace remoting
227 227
228 #endif // REMOTE_DESKTOP_BROWSER_TEST_H_ 228 #endif // REMOTE_DESKTOP_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | remoting/test/remote_desktop_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698