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

Unified Diff: content/test/test_web_contents.cc

Issue 1137563002: Tests for "Save Image As..." when Data Saver is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head Created 5 years, 7 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 | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_web_contents.cc
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
index 28c39801e8b8156197ccb2e036b1ee0a4bdf8aa9..26431327a47d02fb66459afcb3bf0a7eaa0a0133 100644
--- a/content/test/test_web_contents.cc
+++ b/content/test/test_web_contents.cc
@@ -111,6 +111,10 @@ void TestWebContents::TestDidNavigateWithReferrer(
rfhi->frame_tree_node()->navigator()->DidNavigate(rfhi, params);
}
+const std::string& TestWebContents::GetSaveFrameHeaders() {
+ return save_frame_headers_;
+}
+
bool TestWebContents::CrossProcessNavigationPending() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBrowserSideNavigation)) {
@@ -285,4 +289,10 @@ void TestWebContents::ShowCreatedWidget(int route_id,
void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
}
+void TestWebContents::SaveFrameWithHeaders(const GURL& url,
+ const Referrer& referrer,
+ const std::string& headers) {
+ save_frame_headers_ = headers;
+}
+
} // namespace content
« no previous file with comments | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698