Index: Source/WebKit/chromium/tests/WebFrameTest.cpp |
diff --git a/Source/WebKit/chromium/tests/WebFrameTest.cpp b/Source/WebKit/chromium/tests/WebFrameTest.cpp |
index 1a7b59af1f65ac1238b53924b13a2491ace96c8c..118dfdd4c9a8683b7789a690c91e6d0621abab5a 100644 |
--- a/Source/WebKit/chromium/tests/WebFrameTest.cpp |
+++ b/Source/WebKit/chromium/tests/WebFrameTest.cpp |
@@ -1238,6 +1238,18 @@ public: |
EXPECT_FALSE(isRedirect); |
return WebNavigationPolicyCurrentTab; |
} |
+ |
+ virtual WebURLError cancelledError(WebFrame*, const WebURLRequest& request) |
+ { |
+ // Return a dummy error so the DocumentLoader doesn't assert when |
+ // the reload cancels it. |
+ WebURLError webURLError; |
+ webURLError.domain = ""; |
+ webURLError.reason = 1; |
+ webURLError.isCancellation = true; |
+ webURLError.unreachableURL = WebURL(); |
+ return webURLError; |
+ } |
}; |
TEST_F(WebFrameTest, ReloadDoesntSetRedirect) |