| 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 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/files/file_util.h" | 6 #include "base/files/file_util.h" |
| 7 #include "chrome/browser/ui/browser_window.h" | 7 #include "chrome/browser/ui/browser_window.h" |
| 8 #include "chrome/test/remoting/key_code_test_map.h" | 8 #include "chrome/test/remoting/key_code_test_map.h" |
| 9 #include "chrome/test/remoting/remote_desktop_browsertest.h" | 9 #include "chrome/test/remoting/remote_desktop_browsertest.h" |
| 10 #include "chrome/test/remoting/remote_test_helper.h" | 10 #include "chrome/test/remoting/remote_test_helper.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 EXPECT_TRUE(RemoteDesktopBrowserTest::IsSessionConnected()); | 147 EXPECT_TRUE(RemoteDesktopBrowserTest::IsSessionConnected()); |
| 148 | 148 |
| 149 // Maximize so we can disconnect and teardown. | 149 // Maximize so we can disconnect and teardown. |
| 150 RestoreApp(); | 150 RestoreApp(); |
| 151 | 151 |
| 152 // Cleanup | 152 // Cleanup |
| 153 DisconnectMe2Me(); | 153 DisconnectMe2Me(); |
| 154 Cleanup(); | 154 Cleanup(); |
| 155 } | 155 } |
| 156 | 156 |
| 157 IN_PROC_BROWSER_TEST_F(Me2MeBrowserTest, |
| 158 MANUAL_Me2Me_Disable_Remote_Connection) { |
| 159 SetUpTest(); |
| 160 |
| 161 DisableRemoteConnection(); |
| 162 EXPECT_FALSE(IsLocalHostReady()); |
| 163 |
| 164 Cleanup(); |
| 165 } |
| 166 |
| 157 void Me2MeBrowserTest::SetupForRemoteHostTest() { | 167 void Me2MeBrowserTest::SetupForRemoteHostTest() { |
| 158 VerifyInternetAccess(); | 168 VerifyInternetAccess(); |
| 159 OpenClientBrowserPage(); | 169 OpenClientBrowserPage(); |
| 160 Install(); | 170 Install(); |
| 161 LaunchChromotingApp(false); | 171 LaunchChromotingApp(false); |
| 162 | 172 |
| 163 // Authorize, Authenticate, and Approve. | 173 // Authorize, Authenticate, and Approve. |
| 164 Auth(); | 174 Auth(); |
| 165 ExpandMe2Me(); | 175 ExpandMe2Me(); |
| 166 ConnectToRemoteHost(remote_host_name(), false); | 176 ConnectToRemoteHost(remote_host_name(), false); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 void Me2MeBrowserTest::RestoreApp() { | 253 void Me2MeBrowserTest::RestoreApp() { |
| 244 extensions::AppWindow* appWindow = GetFirstAppWindow(); | 254 extensions::AppWindow* appWindow = GetFirstAppWindow(); |
| 245 if (appWindow) { | 255 if (appWindow) { |
| 246 appWindow->Restore(); | 256 appWindow->Restore(); |
| 247 } else { | 257 } else { |
| 248 browser()->window()->Restore(); | 258 browser()->window()->Restore(); |
| 249 } | 259 } |
| 250 } | 260 } |
| 251 | 261 |
| 252 } // namespace remoting | 262 } // namespace remoting |
| OLD | NEW |