Lines Matching refs:manifest

8 #include "content/public/common/manifest.h"
32 void OnGetManifest(const Manifest& manifest) {
33 manifest_ = manifest;
37 const Manifest& manifest() const {
48 // If a page has no manifest, requesting a manifest should return the empty
49 // manifest.
51 GURL test_url = GetTestUrl("manifest", "no-manifest.html");
58 EXPECT_TRUE(manifest().IsEmpty());
61 // If a page manifest points to a 404 URL, requesting the manifest should return
62 // the empty manifest.
64 GURL test_url = GetTestUrl("manifest", "404-manifest.html");
71 EXPECT_TRUE(manifest().IsEmpty());
74 // If a page has an empty manifest, requesting the manifest should return the
75 // empty manifest.
77 GURL test_url = GetTestUrl("manifest", "empty-manifest.html");
84 EXPECT_TRUE(manifest().IsEmpty());
87 // If a page's manifest can't be parsed correctly, requesting the manifest
88 // should return an empty manifest.
90 GURL test_url = GetTestUrl("manifest", "parse-error-manifest.html");
97 EXPECT_TRUE(manifest().IsEmpty());
100 // If a page has a manifest that can be fetched and parsed, requesting the
101 // manifest should return a properly filled manifest.
103 GURL test_url = GetTestUrl("manifest", "dummy-manifest.html");
110 EXPECT_FALSE(manifest().IsEmpty());
113 // If a page changes manifest during its life-time, requesting the manifest
114 // should return the current manifest.
116 GURL test_url = GetTestUrl("manifest", "dynamic-manifest.html");
124 EXPECT_TRUE(manifest().IsEmpty());
129 GetTestUrl("manifest", "dummy-manifest.json").spec();
134 EXPECT_FALSE(manifest().IsEmpty());
139 GetTestUrl("manifest", "empty-manifest.json").spec();
144 EXPECT_TRUE(manifest().IsEmpty());
148 // If a page's manifest lives in a different origin, it should follow the CORS
149 // rules and requesting the manifest should return an empty manifest (unless the
160 embedded_test_server()->GetURL("/manifest/dynamic-manifest.html");
167 cors_embedded_test_server->GetURL("/manifest/dummy-manifest.json").spec();
172 EXPECT_TRUE(manifest().IsEmpty());
175 // If a page's manifest is in an unsecure origin while the page is in a secure
176 // origin, requesting the manifest should return the empty manifest.
187 embedded_test_server()->GetURL("/manifest/dynamic-manifest.html");
194 https_server->GetURL("/manifest/dummy-manifest.json").spec();
199 EXPECT_TRUE(manifest().IsEmpty());