Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "remote_desktop_browsertest.h" | 5 #include "remote_desktop_browsertest.h" |
| 6 | 6 |
| 7 namespace remoting { | 7 namespace remoting { |
| 8 | 8 |
| 9 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Auth) { | 9 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Auth) { |
| 10 VerifyInternetAccess(); | 10 VerifyInternetAccess(); |
| 11 | 11 |
| 12 if (!NoInstall()) { | 12 Install(); |
| 13 VerifyChromotingLoaded(false); | |
| 14 InstallChromotingApp(); | |
| 15 } | |
| 16 | |
| 17 VerifyChromotingLoaded(true); | |
| 18 | 13 |
| 19 LaunchChromotingApp(); | 14 LaunchChromotingApp(); |
| 20 | 15 |
| 21 Authorize(); | 16 // Authorize, Authenticate, and Approve. |
| 17 Auth(); | |
|
garykac
2013/08/19 18:02:28
Perhaps AuthAuthAppApp? ^_^
For Authorize, Authen
| |
| 22 | 18 |
| 23 Authenticate(); | 19 Cleanup(); |
| 24 | |
| 25 Approve(); | |
| 26 | |
| 27 // TODO: Remove this hack by blocking on the appropriate notification. | |
| 28 // The browser may still be loading images embedded in the webapp. If we | |
| 29 // uinstall it now those load will fail. Navigating away to avoid the load | |
| 30 // failures. | |
| 31 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); | |
| 32 | |
| 33 if (!NoCleanup()) { | |
| 34 UninstallChromotingApp(); | |
| 35 VerifyChromotingLoaded(false); | |
| 36 } | |
| 37 } | 20 } |
| 38 | 21 |
| 39 } // namespace remoting | 22 } // namespace remoting |
| OLD | NEW |