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

Unified Diff: content/test/test_web_contents.h

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/public/test/web_contents_tester.h ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_web_contents.h
diff --git a/content/test/test_web_contents.h b/content/test/test_web_contents.h
index 632d57f5fd184cf0c569d4fc7e462ebb32afad80..53bc82a04ea80a42cb5fd92bd07e073e0aa2c759 100644
--- a/content/test/test_web_contents.h
+++ b/content/test/test_web_contents.h
@@ -5,12 +5,16 @@
#ifndef CONTENT_TEST_TEST_WEB_CONTENTS_H_
#define CONTENT_TEST_TEST_WEB_CONTENTS_H_
+#include <string>
+
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/test/web_contents_tester.h"
#include "content/test/test_render_frame_host.h"
#include "content/test/test_render_view_host.h"
#include "ui/base/page_transition_types.h"
+class GURL;
+class Referrer;
class SiteInstanceImpl;
namespace content {
@@ -51,6 +55,7 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
const GURL& url,
const Referrer& referrer,
ui::PageTransition transition) override;
+ const std::string& GetSaveFrameHeaders() override;
// True if a cross-site navigation is pending.
bool CrossProcessNavigationPending();
@@ -116,6 +121,9 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
bool user_gesture) override;
void ShowCreatedWidget(int route_id, const gfx::Rect& initial_rect) override;
void ShowCreatedFullscreenWidget(int route_id) override;
+ void SaveFrameWithHeaders(const GURL& url,
+ const Referrer& referrer,
+ const std::string& headers) override;
RenderViewHostDelegateView* delegate_view_override_;
@@ -123,6 +131,7 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
bool expect_set_history_offset_and_length_;
int expect_set_history_offset_and_length_history_offset_;
int expect_set_history_offset_and_length_history_length_;
+ std::string save_frame_headers_;
};
} // namespace content
« no previous file with comments | « content/public/test/web_contents_tester.h ('k') | content/test/test_web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698