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 "base/debug/stack_trace.h" | 8 #include "base/debug/stack_trace.h" |
9 #include "chrome/browser/apps/app_browsertest_util.h" | 9 #include "chrome/browser/apps/app_browsertest_util.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 int modifiers, blink::WebMouseEvent::Button button, int x, int y); | 136 int modifiers, blink::WebMouseEvent::Button button, int x, int y); |
137 | 137 |
138 void SetUserNameAndPassword( | 138 void SetUserNameAndPassword( |
139 const base::FilePath &accounts_file, const std::string& account_type); | 139 const base::FilePath &accounts_file, const std::string& account_type); |
140 | 140 |
141 // The following helpers each perform a composite task. | 141 // The following helpers each perform a composite task. |
142 | 142 |
143 // Install the chromoting extension | 143 // Install the chromoting extension |
144 void Install(); | 144 void Install(); |
145 | 145 |
| 146 // Load the browser-test support JavaScript files, including helper functions |
| 147 // and mocks. |
| 148 void LoadBrowserTestJavaScript(content::WebContents* content); |
| 149 |
146 // Perform all necessary steps (installation, authorization, authentication, | 150 // Perform all necessary steps (installation, authorization, authentication, |
147 // expanding the me2me section) so that the app is ready for a me2me | 151 // expanding the me2me section) so that the app is ready for a me2me |
148 // connection. | 152 // connection. |
149 void SetUpTestForMe2Me(); | 153 void SetUpTestForMe2Me(); |
150 | 154 |
151 // Clean up after the test. | 155 // Clean up after the test. |
152 void Cleanup(); | 156 void Cleanup(); |
153 | 157 |
154 // Perform all the auth steps: authorization, authentication, etc. | 158 // Perform all the auth steps: authorization, authentication, etc. |
155 // It starts from the chromoting main page unauthenticated and ends up back | 159 // It starts from the chromoting main page unauthenticated and ends up back |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 std::string password_; | 391 std::string password_; |
388 std::string me2me_pin_; | 392 std::string me2me_pin_; |
389 std::string remote_host_name_; | 393 std::string remote_host_name_; |
390 std::string extension_name_; | 394 std::string extension_name_; |
391 std::string http_server_; | 395 std::string http_server_; |
392 }; | 396 }; |
393 | 397 |
394 } // namespace remoting | 398 } // namespace remoting |
395 | 399 |
396 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ | 400 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ |
OLD | NEW |