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

Unified 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: Last iteration 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/remoting/remote_desktop_browsertest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/remoting/pin_browsertest.cc
diff --git a/chrome/test/remoting/pin_browsertest.cc b/chrome/test/remoting/pin_browsertest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..eac2a3f3d3ffcbcf6c0fc301de193dc3e6d6d941
--- /dev/null
+++ b/chrome/test/remoting/pin_browsertest.cc
@@ -0,0 +1,52 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/file_util.h"
+#include "base/files/file_path.h"
+#include "chrome/test/remoting/remote_desktop_browsertest.h"
+#include "chrome/test/remoting/waiter.h"
+
+namespace remoting {
+
+IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Cancel_PIN) {
+ SetUpTestForMe2Me();
+
+ content::WebContents* content = app_web_content();
+ LoadScript(content, FILE_PATH_LITERAL("cancel_pin_browser_test.js"));
+
+ RunJavaScriptTest(content, "Cancel_PIN", "{"
+ "pin: '" + me2me_pin() + "'"
+ "}");
+
+ Cleanup();
+}
+
+IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Invalid_PIN) {
+ SetUpTestForMe2Me();
+
+ content::WebContents* content = app_web_content();
+ LoadScript(content, FILE_PATH_LITERAL("invalid_pin_browser_test.js"));
+
+ RunJavaScriptTest(content, "Invalid_PIN", "{"
+ "pin: '" + me2me_pin() + "'"
+ "}");
+
+ Cleanup();
+}
+
+IN_PROC_BROWSER_TEST_F(RemoteDesktopBrowserTest, MANUAL_Update_PIN) {
+ SetUpTestForMe2Me();
+
+ content::WebContents* content = app_web_content();
+ LoadScript(content, FILE_PATH_LITERAL("update_pin_browser_test.js"));
+
+ RunJavaScriptTest(content, "Update_PIN", "{"
+ "old_pin: '" + me2me_pin() + "',"
+ "new_pin: '314159'"
+ "}");
+
+ Cleanup();
+}
+
+} // namespace remoting
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/remoting/remote_desktop_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698