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

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

Issue 398823005: Automate host start up in browser test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.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 {
(...skipping 11 matching lines...) Expand all
22 Cleanup(); 22 Cleanup();
23 } 23 }
24 24
25 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) { 25 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) {
26 SetUpTestForMe2Me(); 26 SetUpTestForMe2Me();
27 27
28 content::WebContents* content = app_web_content(); 28 content::WebContents* content = app_web_content();
29 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js")); 29 LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js"));
30 30
31 RunJavaScriptTest(content, "Invalid_PIN", "{" 31 RunJavaScriptTest(content, "Invalid_PIN", "{"
32 "pin: '" + me2me_pin() + "'" 32 // Append arbitrary characters after the pin to make it invalid.
33 "pin: '" + me2me_pin() + "ABC'"
33 "}"); 34 "}");
34 35
35 Cleanup(); 36 Cleanup();
36 } 37 }
37 38
38 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) { 39 IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) {
39 SetUpTestForMe2Me(); 40 SetUpTestForMe2Me();
40 41
41 content::WebContents* content = app_web_content(); 42 content::WebContents* content = app_web_content();
42 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js")); 43 LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js"));
43 44
44 RunJavaScriptTest(content, "Update_PIN", "{" 45 RunJavaScriptTest(content, "Update_PIN", "{"
45 "old_pin: '" + me2me_pin() + "'," 46 "old_pin: '" + me2me_pin() + "',"
46 "new_pin: '314159'" 47 "new_pin: '314159'"
47 "}"); 48 "}");
48 49
49 Cleanup(); 50 Cleanup();
50 } 51 }
51 52
52 } // namespace remoting 53 } // namespace remoting
OLDNEW
« no previous file with comments | « chrome/test/remoting/me2me_browsertest.cc ('k') | chrome/test/remoting/remote_desktop_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698