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

Unified Diff: chrome/browser/apps/app_view_browsertest.cc

Issue 460133002: Allow passing parameters within appview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed params to data Created 6 years, 4 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 | chrome/browser/guest_view/app_view/app_view_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/app_view_browsertest.cc
diff --git a/chrome/browser/apps/app_view_browsertest.cc b/chrome/browser/apps/app_view_browsertest.cc
index 317bdab1b8fad2388b0434f36efed44e33a28ef8..f78539146f0153dbed4760abf559379ae1ae1d32 100644
--- a/chrome/browser/apps/app_view_browsertest.cc
+++ b/chrome/browser/apps/app_view_browsertest.cc
@@ -149,3 +149,22 @@ IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewBasic) {
NO_TEST_SERVER);
}
+// Tests that <appview> correctly processes parameters passed on connect.
+IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewRefusedDataShouldFail) {
+ const extensions::Extension* skeleton_app =
+ InstallPlatformApp("app_view/shim/skeleton");
+ TestHelper("testAppViewRefusedDataShouldFail",
+ "app_view/shim",
+ skeleton_app->id(),
+ NO_TEST_SERVER);
+}
+
+// Tests that <appview> correctly processes parameters passed on connect.
+IN_PROC_BROWSER_TEST_F(AppViewTest, TestAppViewGoodDataShouldSucceed) {
+ const extensions::Extension* skeleton_app =
+ InstallPlatformApp("app_view/shim/skeleton");
+ TestHelper("testAppViewGoodDataShouldSucceed",
+ "app_view/shim",
+ skeleton_app->id(),
+ NO_TEST_SERVER);
+}
« no previous file with comments | « no previous file | chrome/browser/guest_view/app_view/app_view_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698