Chromium Code Reviews| 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/remote_desktop_browsertest.h" | 8 #include "chrome/test/remoting/remote_desktop_browsertest.h" |
| 9 #include "chrome/test/remoting/waiter.h" | 9 #include "chrome/test/remoting/waiter.h" |
| 10 #include "extensions/browser/app_window/app_window.h" | 10 #include "extensions/browser/app_window/app_window.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 EXPECT_TRUE(RemoteDesktopBrowserTest::IsSessionConnected()); | 89 EXPECT_TRUE(RemoteDesktopBrowserTest::IsSessionConnected()); |
| 90 | 90 |
| 91 // Maximize so we can disconnect and teardown. | 91 // Maximize so we can disconnect and teardown. |
| 92 RestoreApp(); | 92 RestoreApp(); |
| 93 | 93 |
| 94 // Cleanup | 94 // Cleanup |
| 95 DisconnectMe2Me(); | 95 DisconnectMe2Me(); |
| 96 Cleanup(); | 96 Cleanup(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 IN_PROC_BROWSER_TEST_F(Me2MeBrowserTest, | |
| 100 MANUAL_Me2Me_disable_remote_connection) { | |
|
Jamie
2014/12/19 23:17:26
Nit: Disable_Remote_Connection (capitalization).
yihongg1
2015/01/22 21:55:25
Done.
| |
| 101 SetUpTestForMe2Me(); | |
| 102 | |
| 103 DisableRemoteConnection(); | |
| 104 EXPECT_FALSE(IsLocalHostReady()); | |
| 105 | |
| 106 Cleanup(); | |
| 107 } | |
| 99 | 108 |
| 100 void Me2MeBrowserTest::TestKeyboardInput() { | 109 void Me2MeBrowserTest::TestKeyboardInput() { |
| 101 // We will assume here that the browser window is already open on the host | 110 // We will assume here that the browser window is already open on the host |
| 102 // and in focus. | 111 // and in focus. |
| 103 // Press tab to put focus on the textbox. | 112 // Press tab to put focus on the textbox. |
| 104 SimulateKeyPressWithCode(ui::VKEY_TAB, "Tab", false, false, false, false); | 113 SimulateKeyPressWithCode(ui::VKEY_TAB, "Tab", false, false, false, false); |
| 105 | 114 |
| 106 // Write some text in the box and press enter | 115 // Write some text in the box and press enter |
| 107 std::string text = "Abigail"; | 116 std::string text = "Abigail"; |
| 108 SimulateStringInput(text); | 117 SimulateStringInput(text); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 193 void Me2MeBrowserTest::RestoreApp() { | 202 void Me2MeBrowserTest::RestoreApp() { |
| 194 extensions::AppWindow* appWindow = GetFirstAppWindow(); | 203 extensions::AppWindow* appWindow = GetFirstAppWindow(); |
| 195 if (appWindow) { | 204 if (appWindow) { |
| 196 appWindow->Restore(); | 205 appWindow->Restore(); |
| 197 } else { | 206 } else { |
| 198 browser()->window()->Restore(); | 207 browser()->window()->Restore(); |
| 199 } | 208 } |
| 200 } | 209 } |
| 201 | 210 |
| 202 } // namespace remoting | 211 } // namespace remoting |
| OLD | NEW |