Lines Matching refs:web_app
51 scoped_ptr<WebApplicationInfo> web_app(new WebApplicationInfo());
52 web_app->manifest_url = GURL("http://example.com/");
55 if (!web_apps::ParseWebAppFromDefinitionFile(defintion.get(), web_app.get(),
61 return web_app.release();
70 WebApplicationInfo web_app;
71 web_app.manifest_url = GURL("http://example.com/");
74 if (web_apps::ParseWebAppFromDefinitionFile(definition.get(), &web_app,
107 scoped_ptr<WebApplicationInfo> web_app(
110 EXPECT_EQ(UTF8ToUTF16("hello"), web_app->title);
111 EXPECT_EQ(UTF8ToUTF16(""), web_app->description);
112 EXPECT_EQ(GURL("http://example.com/launch_url"), web_app->app_url);
113 EXPECT_EQ(0u, web_app->icons.size());
114 EXPECT_EQ(0u, web_app->urls.size());
115 EXPECT_EQ(0u, web_app->permissions.size());
116 EXPECT_EQ("", web_app->launch_container);
120 scoped_ptr<WebApplicationInfo> web_app(
123 EXPECT_EQ(UTF8ToUTF16("hello"), web_app->title);
124 EXPECT_EQ(UTF8ToUTF16("This app is super awesome"), web_app->description);
125 EXPECT_EQ(GURL("http://example.com/launch_url"), web_app->app_url);
126 ASSERT_EQ(1u, web_app->icons.size());
127 EXPECT_EQ("http://example.com/16.png", web_app->icons[0].url.spec());
128 EXPECT_EQ(16, web_app->icons[0].width);
129 EXPECT_EQ(16, web_app->icons[0].height);
130 ASSERT_EQ(2u, web_app->urls.size());
131 EXPECT_EQ("http://example.com/foobar", web_app->urls[0].spec());
132 EXPECT_EQ("http://example.com/baz", web_app->urls[1].spec());
133 ASSERT_EQ(2u, web_app->permissions.size());
134 EXPECT_EQ("geolocation", web_app->permissions[0]);
135 EXPECT_EQ("notifications", web_app->permissions[1]);
136 EXPECT_EQ("panel", web_app->launch_container);