Chromium Code Reviews| 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("browser_test.js")); | |
|
Jamie
2014/05/13 18:59:54
Wasn't this previously done in the helper function
kelvinp
2014/05/13 23:11:01
Yes, because I thought including the script file i
| |
| 17 LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js")); | |
| 18 | |
| 19 RunJavaScriptTest(content, "Cancel_PIN", "{" | |
| 20 "pin: '" + me2me_pin() + "'" | |
| 21 "}"); | |
| 22 | |
| 23 Cleanup(); | |
| 24 } | |
| 25 | |
| 26 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) { | |
| 27 SetUpTestForMe2Me(); | |
| 28 | |
| 29 content::WebContents* content = app_web_content(); | |
| 30 LoadScript(content, FILE_PATH_LITERAL("browser_test.js")); | |
| 31 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js")); | |
| 32 | |
| 33 RunJavaScriptTest(content, "Invalid_PIN", "{" | |
| 34 "pin: '" + me2me_pin() + "'" | |
| 35 "}"); | |
| 36 | |
| 37 Cleanup(); | |
| 38 } | |
| 39 | |
| 40 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) { | |
| 41 SetUpTestForMe2Me(); | |
| 42 | |
| 43 content::WebContents* content = app_web_content(); | |
| 44 LoadScript(content, FILE_PATH_LITERAL("browser_test.js")); | |
| 45 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js")); | |
| 46 | |
| 47 RunJavaScriptTest(content, "Update_PIN", "{" | |
| 48 "old_pin: '" + me2me_pin() + "'," | |
| 49 "new_pin: '314159'" | |
| 50 "}"); | |
| 51 | |
| 52 Cleanup(); | |
| 53 } | |
| 54 | |
| 55 } // namespace remoting | |
| OLD | NEW |