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, | |
| 13 MANUAL_Cancel_PIN_And_Reconnect) { | |
| 14 VerifyInternetAccess(); | |
| 15 | |
| 16 Install(); | |
| 17 | |
| 18 LaunchChromotingApp(); | |
| 19 | |
| 20 Auth(); | |
| 21 | |
| 22 ExpandMe2Me(); | |
| 23 | |
| 24 content::WebContents* content = app_web_content(); | |
| 25 | |
| 26 LoadScript(content, FILE_PAHT_LITERAL("browser_test.js")); | |
|
Jamie
2014/05/09 01:02:18
s/PAHT/PATH/ (here and elsewhere).
Does this comp
kelvinp
2014/05/12 21:08:34
Done.
| |
| 27 LoadScript(content, FILE_PAHT_LITERAL("cancel_pin_browser_test.js")); | |
|
Jamie
2014/05/09 01:02:18
These tests are identical to this point. Can you p
kelvinp
2014/05/12 21:08:34
Done.
| |
| 28 RunJavaScriptTest(content, "Cancel_PIN", "{" | |
| 29 "pin: '" + me2me_pin() + "'" | |
| 30 "}"); | |
| 31 | |
| 32 Cleanup(); | |
| 33 } | |
| 34 | |
| 35 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, | |
| 36 MANUAL_Invalid_PIN) { | |
| 37 VerifyInternetAccess(); | |
| 38 | |
| 39 Install(); | |
| 40 | |
| 41 LaunchChromotingApp(); | |
| 42 | |
| 43 Auth(); | |
| 44 | |
| 45 ExpandMe2Me(); | |
| 46 | |
| 47 content::WebContents* content = app_web_content(); | |
| 48 LoadScript(content, FILE_PAHT_LITERAL("browser_test.js")); | |
| 49 LoadScript(content, FILE_PAHT_LITERAL("invalid_pin_browser_test.js")); | |
| 50 | |
| 51 std::string pin = me2me_pin(); | |
| 52 if (pin.length() == 0) { | |
| 53 pin = "''"; | |
| 54 } | |
|
Jamie
2014/05/09 01:02:18
You're adding quotes anyway, so I don't think you
kelvinp
2014/05/12 21:08:34
Done.
| |
| 55 | |
| 56 RunJavaScriptTest(content, "Invalid_PIN", "{" | |
| 57 "pin: '" + pin + "'" | |
| 58 "}"); | |
| 59 | |
| 60 Cleanup(); | |
| 61 } | |
| 62 | |
| 63 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, | |
| 64 MANUAL_Update_PIN) { | |
| 65 VerifyInternetAccess(); | |
| 66 | |
| 67 Install(); | |
| 68 | |
| 69 LaunchChromotingApp(); | |
| 70 | |
| 71 Auth(); | |
| 72 | |
| 73 ExpandMe2Me(); | |
| 74 | |
| 75 content::WebContents* content = app_web_content(); | |
| 76 LoadScript(content, FILE_PAHT_LITERAL("browser_test.js")); | |
| 77 LoadScript(content, FILE_PAHT_LITERAL("update_pin_browser_test.js")); | |
| 78 RunJavaScriptTest(content, "Update_PIN", "{" | |
| 79 "old_pin: '" + me2me_pin() + "'," | |
| 80 "new_pin: '314159'" | |
| 81 "}"); | |
| 82 | |
| 83 Cleanup(); | |
| 84 } | |
| 85 | |
| 86 } // namespace remoting | |
| OLD | NEW |