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

Unified Diff: content/public/test/web_contents_tester.h

Issue 2697803003: Improve test coverage for ContentFaviconDriver (Closed)
Patch Set: Minor test renames. 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
« no previous file with comments | « components/favicon/content/content_favicon_driver_unittest.cc ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/web_contents_tester.h
diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h
index bb2b8b92b33dfc4a8d7aa27ad478e302b317fa53..ec12cecfbfb1f1f9e328cc6ecb33d00fa914b450 100644
--- a/content/public/test/web_contents_tester.h
+++ b/content/public/test/web_contents_tester.h
@@ -6,11 +6,17 @@
#define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
#include <string>
+#include <vector>
#include "content/public/browser/site_instance.h"
#include "ui/base/page_transition_types.h"
class GURL;
+class SkBitmap;
+
+namespace gfx {
+class Size;
+}
namespace content {
@@ -124,6 +130,18 @@ class WebContentsTester {
// Returns headers that were passed in the previous SaveFrameWithHeaders(...)
// call.
virtual const std::string& GetSaveFrameHeaders() = 0;
+
+ // Returns whether a download request triggered via DownloadImage() is in
+ // progress for |url|.
+ virtual bool HasPendingDownloadImage(const GURL& url) = 0;
+
+ // Simulates a request completion for DownloadImage(). For convenience, it
+ // returns whether an actual download associated to |url| was pending.
+ virtual bool TestDidDownloadImage(
+ const GURL& url,
+ int http_status_code,
+ const std::vector<SkBitmap>& bitmaps,
+ const std::vector<gfx::Size>& original_bitmap_sizes) = 0;
};
} // namespace content
« no previous file with comments | « components/favicon/content/content_favicon_driver_unittest.cc ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698