Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/test/remoting/pin_browsertest.cc

Issue 273753002: Implement 3 PIN browser tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR feedbacks Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698