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 CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ | 5 #ifndef CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ |
6 #define CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ | 6 #define CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ |
7 | 7 |
8 #include "chrome/browser/apps/app_browsertest_util.h" | 8 #include "chrome/browser/apps/app_browsertest_util.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Helper to simulate a mouse click. | 116 // Helper to simulate a mouse click. |
117 void SimulateMouseClickAt( | 117 void SimulateMouseClickAt( |
118 int modifiers, blink::WebMouseEvent::Button button, int x, int y); | 118 int modifiers, blink::WebMouseEvent::Button button, int x, int y); |
119 | 119 |
120 // The following helpers each perform a composite task. | 120 // The following helpers each perform a composite task. |
121 | 121 |
122 // Install the chromoting extension | 122 // Install the chromoting extension |
123 void Install(); | 123 void Install(); |
124 | 124 |
| 125 // Perform all necessary steps (installation, authorization, authentication, |
| 126 // expanding the me2me section) so that the app is ready for a me2me |
| 127 // connection. |
| 128 void SetUpTestForMe2Me(); |
| 129 |
125 // Clean up after the test. | 130 // Clean up after the test. |
126 void Cleanup(); | 131 void Cleanup(); |
127 | 132 |
128 // Perform all the auth steps: authorization, authenticattion, etc. | 133 // Perform all the auth steps: authorization, authentication, etc. |
129 // It starts from the chromoting main page unauthenticated and ends up back | 134 // It starts from the chromoting main page unauthenticated and ends up back |
130 // on the chromoting main page authenticated and ready to go. | 135 // on the chromoting main page authenticated and ready to go. |
131 void Auth(); | 136 void Auth(); |
132 | 137 |
133 // Connect to the local host through Me2Me. | 138 // Connect to the local host through Me2Me. |
134 void ConnectToLocalHost(bool remember_pin); | 139 void ConnectToLocalHost(bool remember_pin); |
135 | 140 |
136 // Connect to a remote host through Me2Me. | 141 // Connect to a remote host through Me2Me. |
137 void ConnectToRemoteHost(const std::string& host_name, bool remember_pin); | 142 void ConnectToRemoteHost(const std::string& host_name, bool remember_pin); |
138 | 143 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 std::string password_; | 350 std::string password_; |
346 std::string me2me_pin_; | 351 std::string me2me_pin_; |
347 std::string remote_host_name_; | 352 std::string remote_host_name_; |
348 std::string extension_name_; | 353 std::string extension_name_; |
349 std::string http_server_; | 354 std::string http_server_; |
350 }; | 355 }; |
351 | 356 |
352 } // namespace remoting | 357 } // namespace remoting |
353 | 358 |
354 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ | 359 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ |
OLD | NEW |