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

Unified Diff: content/test/test_web_contents.h

Issue 2691933004: Avoid cyclic dependency FaviconHandler<-->FaviconDriverImpl (Closed)
Patch Set: Created 3 years, 10 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 1deb67a8404a98c6ba0b230a6c18820a0b97ef95..2a141aeb9f14e7db0c03e894f1a5501cce53be90 100644
--- a/content/test/test_web_contents.h
+++ b/content/test/test_web_contents.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <map>
#include <string>
#include "content/browser/web_contents/web_contents_impl.h"
@@ -73,6 +74,11 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
int item_sequence_number,
int document_sequence_number);
const std::string& GetSaveFrameHeaders() override;
+ bool TestDidDownloadImage(
+ int id,
+ int http_status_code,
+ const std::vector<SkBitmap>& bitmaps,
+ const std::vector<gfx::Size>& original_bitmap_sizes) override;
// True if a cross-site navigation is pending.
bool CrossProcessNavigationPending();
@@ -161,6 +167,9 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
int expect_set_history_offset_and_length_history_offset_;
int expect_set_history_offset_and_length_history_length_;
std::string save_frame_headers_;
+ // Map from image download ID to request arguments.
+ std::map<int, std::pair<GURL, ImageDownloadCallback>>
+ pending_image_downloads_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698