OLD | NEW |
---|---|
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 bool shift, | 87 bool shift, |
88 bool alt, | 88 bool alt, |
89 bool command); | 89 bool command); |
90 | 90 |
91 // Simulate typing a character | 91 // Simulate typing a character |
92 void SimulateCharInput(char c); | 92 void SimulateCharInput(char c); |
93 | 93 |
94 // Simulate typing a string | 94 // Simulate typing a string |
95 void SimulateStringInput(const std::string& input); | 95 void SimulateStringInput(const std::string& input); |
96 | 96 |
97 // Helper to simulate a left button mouse click. | |
98 void SimulateMouseClickAt(int x, int y); | |
garykac
2013/09/19 21:37:27
SimulateMouseLeftClickAt rather than overload.
| |
99 | |
100 // Helper to simulate a mouse click. | |
101 void SimulateMouseClickAt( | |
102 int modifiers, WebKit::WebMouseEvent::Button button, int x, int y); | |
103 | |
97 // The following helpers each perform a composite task. | 104 // The following helpers each perform a composite task. |
98 | 105 |
99 // Install the chromoting extension | 106 // Install the chromoting extension |
100 void Install(); | 107 void Install(); |
101 | 108 |
102 // Clean up after the test. | 109 // Clean up after the test. |
103 void Cleanup(); | 110 void Cleanup(); |
104 | 111 |
105 // Perform all the auth steps: authorization, authenticattion, etc. | 112 // Perform all the auth steps: authorization, authenticattion, etc. |
106 // It starts from the chromoting main page unauthenticated and ends up back | 113 // It starts from the chromoting main page unauthenticated and ends up back |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 std::string me2me_pin_; | 239 std::string me2me_pin_; |
233 | 240 |
234 // TODO: Remove this when issue 291207 is fixed. | 241 // TODO: Remove this when issue 291207 is fixed. |
235 // http://crbug.com/294343 | 242 // http://crbug.com/294343 |
236 std::string oauth_redirect_url_; | 243 std::string oauth_redirect_url_; |
237 }; | 244 }; |
238 | 245 |
239 } // namespace remoting | 246 } // namespace remoting |
240 | 247 |
241 #endif // REMOTE_DESKTOP_BROWSER_TEST_H_ | 248 #endif // REMOTE_DESKTOP_BROWSER_TEST_H_ |
OLD | NEW |