| 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..4872bea82e94a896803f5dcb4f0ee43760d00a0a 100644
|
| --- a/content/public/test/web_contents_tester.h
|
| +++ b/content/public/test/web_contents_tester.h
|
| @@ -6,9 +6,12 @@
|
| #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
|
|
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "content/public/browser/site_instance.h"
|
| +#include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/base/page_transition_types.h"
|
| +#include "ui/gfx/geometry/size.h"
|
|
|
| class GURL;
|
|
|
| @@ -124,6 +127,14 @@ class WebContentsTester {
|
| // Returns headers that were passed in the previous SaveFrameWithHeaders(...)
|
| // call.
|
| virtual const std::string& GetSaveFrameHeaders() = 0;
|
| +
|
| + // Simulates a request completion for DownloadImage(). Returns whether an
|
| + // actual download associated to |id| was pending.
|
| + virtual bool TestDidDownloadImage(
|
| + int id,
|
| + int http_status_code,
|
| + const std::vector<SkBitmap>& bitmaps,
|
| + const std::vector<gfx::Size>& original_bitmap_sizes) = 0;
|
| };
|
|
|
| } // namespace content
|
|
|