OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/file_util.h" |
| 6 #include "base/files/file_path.h" |
| 7 #include "chrome/test/remoting/remote_desktop_browsertest.h" |
| 8 #include "chrome/test/remoting/waiter.h" |
| 9 |
| 10 namespace remoting { |
| 11 |
| 12 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Cancel_PIN) { |
| 13 SetUpTestForMe2Me(); |
| 14 |
| 15 content::WebContents* content = app_web_content(); |
| 16 LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js")); |
| 17 |
| 18 RunJavaScriptTest(content, "Cancel_PIN", "{" |
| 19 "pin: '" + me2me_pin() + "'" |
| 20 "}"); |
| 21 |
| 22 Cleanup(); |
| 23 } |
| 24 |
| 25 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) { |
| 26 SetUpTestForMe2Me(); |
| 27 |
| 28 content::WebContents* content = app_web_content(); |
| 29 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js")); |
| 30 |
| 31 RunJavaScriptTest(content, "Invalid_PIN", "{" |
| 32 "pin: '" + me2me_pin() + "'" |
| 33 "}"); |
| 34 |
| 35 Cleanup(); |
| 36 } |
| 37 |
| 38 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) { |
| 39 SetUpTestForMe2Me(); |
| 40 |
| 41 content::WebContents* content = app_web_content(); |
| 42 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js")); |
| 43 |
| 44 RunJavaScriptTest(content, "Update_PIN", "{" |
| 45 "old_pin: '" + me2me_pin() + "'," |
| 46 "new_pin: '314159'" |
| 47 "}"); |
| 48 |
| 49 Cleanup(); |
| 50 } |
| 51 |
| 52 } // namespace remoting |
OLD | NEW |