19 #ifndef NET_INSTAWEB_SPRITER_MOCK_IMAGE_LIBRARY_INTERFACE_H_
20 #define NET_INSTAWEB_SPRITER_MOCK_IMAGE_LIBRARY_INTERFACE_H_
29 namespace net_instaweb {
37 MOCK_CONST_METHOD2(
GetDimensions,
bool(
int* out_width,
int* out_height));
60 MOCK_METHOD3(DrawImage,
bool(
const Image* image,
int x,
int y));
61 MOCK_METHOD2(WriteToFile,
bool(
const FilePath& write_path,
65 MOCK_METHOD2(CreateCanvas,
Canvas* (
int width,
int height));
Definition: image_library_interface.h:41
Definition: mock_image_library_interface.h:32
MOCK_METHOD1(ReadFromFile, Image *(const FilePath &path))
Definition: mock_image_library_interface.h:56
Images are immutable rectangular regions of pixels.
Definition: image_library_interface.h:56
Image(ImageLibraryInterface *lib)
Only methods of ImageLibraryInterface may create images.
Definition: image_library_interface.h:63
virtual Image * ReadFromFile(const FilePath &path)=0
Definition: image_library_interface.h:76
const FilePath & base_input_path()
Used by subclasses:
Definition: image_library_interface.h:108
virtual bool GetDimensions(int *out_width, int *out_height) const =0
Get the width and height of an image.
GoogleString FilePath
Definition: image_library_interface.h:45
Definition: mock_image_library_interface.h:34
Definition: image_library_interface.h:49