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

Unified Diff: chrome/test/remoting/it2me_browsertest.cc

Issue 1007543003: Implements It2MeBrowserTest CancelShare and VerifyAccessCodeNotReusable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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 | « no previous file | remoting/webapp/browser_test/browser_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/remoting/it2me_browsertest.cc
diff --git a/chrome/test/remoting/it2me_browsertest.cc b/chrome/test/remoting/it2me_browsertest.cc
index c4a3240b083d285dfd40ac022e565a4d8dfa1241..e13d05ad1bf55e5d9aa4b011412ac8ae9c5f8fef 100644
--- a/chrome/test/remoting/it2me_browsertest.cc
+++ b/chrome/test/remoting/it2me_browsertest.cc
@@ -42,6 +42,35 @@ IN_PROC_BROWSER_TEST_F(It2MeBrowserTest, MANUAL_Connect) {
Cleanup();
}
+IN_PROC_BROWSER_TEST_F(It2MeBrowserTest, MANUAL_CancelShare) {
+ content::WebContents* helpee_content = SetUpTest();
+ LoadScript(helpee_content, FILE_PATH_LITERAL("it2me_browser_test.js"));
+ std::string access_code = GetAccessCode(helpee_content);
+ RunJavaScriptTest(helpee_content, "CancelShare", "{}");
+
+ content::WebContents* helper_content = SetUpHelperInstance();
+ RunJavaScriptTest(helper_content, "InvalidAccessCode", "{"
+ "accessCode: '" + access_code + "'"
+ "}");
+ Cleanup();
+}
+
+IN_PROC_BROWSER_TEST_F(It2MeBrowserTest, MANUAL_VerifyAccessCodeNonReusable) {
+ content::WebContents* helpee_content = SetUpTest();
+ LoadScript(helpee_content, FILE_PATH_LITERAL("it2me_browser_test.js"));
+ std::string access_code = GetAccessCode(helpee_content);
+
+ content::WebContents* helper_content = SetUpHelperInstance();
+ RunJavaScriptTest(helper_content, "ConnectIt2Me", "{"
+ "accessCode: '" + access_code + "'"
+ "}");
+
+ RunJavaScriptTest(helper_content, "InvalidAccessCode", "{"
+ "accessCode: '" + access_code + "'"
+ "}");
+ Cleanup();
+}
+
IN_PROC_BROWSER_TEST_F(It2MeBrowserTest, MANUAL_InvalidAccessCode) {
content::WebContents* helpee_content = SetUpTest();
LoadScript(helpee_content, FILE_PATH_LITERAL("it2me_browser_test.js"));
« no previous file with comments | « no previous file | remoting/webapp/browser_test/browser_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698