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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2408443003: Make ResourceFetcher return Resources with LoadError instead of nullptrs. (Closed)
Patch Set: Add comment. Created 4 years, 2 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 | « third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 6e29863b1345c05eab0b06cf84614c78bddbd3c7..3942d5a8db868a7333cc2964369f74e9d02bbe30 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7888,7 +7888,10 @@ TEST_P(ParameterizedWebFrameTest, ManifestCSPFetchSelf) {
Resource* resource = fetchManifest(
document, toKURL(m_notBaseURL + "link-manifest-fetch.json"));
- EXPECT_EQ(0, resource); // Fetching resource wasn't allowed.
+ // Fetching resource wasn't allowed.
+ ASSERT_TRUE(resource);
+ EXPECT_TRUE(resource->errorOccurred());
+ EXPECT_TRUE(resource->resourceError().isAccessCheck());
}
TEST_P(ParameterizedWebFrameTest, ManifestCSPFetchSelfReportOnly) {
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698