OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/test/remoting/remote_desktop_browsertest.h" | 7 #include "chrome/test/remoting/remote_desktop_browsertest.h" |
8 #include "chrome/test/remoting/waiter.h" | 8 #include "chrome/test/remoting/waiter.h" |
9 | 9 |
10 namespace remoting { | 10 namespace remoting { |
11 | 11 |
12 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Cancel_PIN) { | 12 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Cancel_PIN) { |
13 SetUpTestForMe2Me(); | 13 content::WebContents* content = SetUpTest(); |
14 | |
15 content::WebContents* content = app_web_content(); | |
16 LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js")); | 14 LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js")); |
17 | 15 |
18 RunJavaScriptTest(content, "Cancel_PIN", "{" | 16 RunJavaScriptTest(content, "Cancel_PIN", "{" |
19 "pin: '" + me2me_pin() + "'" | 17 "pin: '" + me2me_pin() + "'" |
20 "}"); | 18 "}"); |
21 | 19 |
22 Cleanup(); | 20 Cleanup(); |
23 } | 21 } |
24 | 22 |
25 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) { | 23 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) { |
26 SetUpTestForMe2Me(); | 24 content::WebContents* content = SetUpTest(); |
27 | |
28 content::WebContents* content = app_web_content(); | |
29 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js")); | 25 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js")); |
30 | 26 |
31 RunJavaScriptTest(content, "Invalid_PIN", "{" | 27 RunJavaScriptTest(content, "Invalid_PIN", "{" |
32 // Append arbitrary characters after the pin to make it invalid. | 28 // Append arbitrary characters after the pin to make it invalid. |
33 "pin: '" + me2me_pin() + "ABC'" | 29 "pin: '" + me2me_pin() + "ABC'" |
34 "}"); | 30 "}"); |
35 | 31 |
36 Cleanup(); | 32 Cleanup(); |
37 } | 33 } |
38 | 34 |
39 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) { | 35 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) { |
40 SetUpTestForMe2Me(); | 36 content::WebContents* content = SetUpTest(); |
41 | |
42 content::WebContents* content = app_web_content(); | |
43 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js")); | 37 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js")); |
44 | 38 |
45 RunJavaScriptTest(content, "Update_PIN", "{" | 39 RunJavaScriptTest(content, "Update_PIN", "{" |
46 "old_pin: '" + me2me_pin() + "'," | 40 "old_pin: '" + me2me_pin() + "'," |
47 "new_pin: '314159'" | 41 "new_pin: '314159'" |
48 "}"); | 42 "}"); |
49 | 43 |
50 Cleanup(); | 44 Cleanup(); |
51 } | 45 } |
52 | 46 |
53 } // namespace remoting | 47 } // namespace remoting |
OLD | NEW |