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

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: Refactor common setup code. 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
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..42e011c6cf138d6bcc231a3b2099bea6d82e08bc 100644
--- a/content/test/test_web_contents.h
+++ b/content/test/test_web_contents.h
@@ -51,6 +51,7 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
const GURL& url,
const Referrer& referrer,
ui::PageTransition transition) override;
+ const std::string& GetSaveFrameHeaders() override;
bengr 2015/05/13 17:35:47 #include <string>
Not at Google. Contact bengr 2015/05/13 20:24:09 Done.
// True if a cross-site navigation is pending.
bool CrossProcessNavigationPending();
@@ -116,6 +117,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,
bengr 2015/05/13 17:35:47 Forward declare.
Not at Google. Contact bengr 2015/05/13 20:24:09 Done.
+ const Referrer& referrer,
bengr 2015/05/13 17:35:47 Forward declare.
Not at Google. Contact bengr 2015/05/13 20:24:09 Done.
+ const std::string& headers) override;
RenderViewHostDelegateView* delegate_view_override_;
@@ -123,6 +127,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

Powered by Google App Engine
This is Rietveld 408576698