| 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 void SetUpTestForMe2Me(); | 136 void SetUpTestForMe2Me(); |
| 137 | 137 |
| 138 // Clean up after the test. | 138 // Clean up after the test. |
| 139 void Cleanup(); | 139 void Cleanup(); |
| 140 | 140 |
| 141 // Perform all the auth steps: authorization, authentication, etc. | 141 // Perform all the auth steps: authorization, authentication, etc. |
| 142 // It starts from the chromoting main page unauthenticated and ends up back | 142 // It starts from the chromoting main page unauthenticated and ends up back |
| 143 // on the chromoting main page authenticated and ready to go. | 143 // on the chromoting main page authenticated and ready to go. |
| 144 void Auth(); | 144 void Auth(); |
| 145 | 145 |
| 146 // Ensures that the host is started locally with |me2me_pin()|. |
| 147 // Browser_test.js must be loaded before calling this function. |
| 148 void EnsureRemoteConnectionEnabled(); |
| 149 |
| 146 // Connect to the local host through Me2Me. | 150 // Connect to the local host through Me2Me. |
| 147 void ConnectToLocalHost(bool remember_pin); | 151 void ConnectToLocalHost(bool remember_pin); |
| 148 | 152 |
| 149 // Connect to a remote host through Me2Me. | 153 // Connect to a remote host through Me2Me. |
| 150 void ConnectToRemoteHost(const std::string& host_name, bool remember_pin); | 154 void ConnectToRemoteHost(const std::string& host_name, bool remember_pin); |
| 151 | 155 |
| 152 // Enter the pin number and connect. | 156 // Enter the pin number and connect. |
| 153 void EnterPin(const std::string& name, bool remember_pin); | 157 void EnterPin(const std::string& name, bool remember_pin); |
| 154 | 158 |
| 155 // Helper to get the pin number used for me2me authentication. | 159 // Helper to get the pin number used for me2me authentication. |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 std::string password_; | 362 std::string password_; |
| 359 std::string me2me_pin_; | 363 std::string me2me_pin_; |
| 360 std::string remote_host_name_; | 364 std::string remote_host_name_; |
| 361 std::string extension_name_; | 365 std::string extension_name_; |
| 362 std::string http_server_; | 366 std::string http_server_; |
| 363 }; | 367 }; |
| 364 | 368 |
| 365 } // namespace remoting | 369 } // namespace remoting |
| 366 | 370 |
| 367 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ | 371 #endif // CHROME_TEST_REMOTING_REMOTE_DESKTOP_BROWSERTEST_H_ |
| OLD | NEW |