Page Speed Optimization Libraries  1.12.34.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | List of all members
net_instaweb::spriter::MockImageLibraryInterface Class Reference
Inheritance diagram for net_instaweb::spriter::MockImageLibraryInterface:
net_instaweb::spriter::ImageLibraryInterface

Classes

class  MockCanvas
 
class  MockImage
 

Public Member Functions

 MockImageLibraryInterface (const FilePath &base_input_path, const FilePath &base_output_path, Delegate *delegate)
 
 MOCK_METHOD1 (ReadFromFile, Image *(const FilePath &path))
 
 MOCK_METHOD2 (CreateCanvas, Canvas *(int width, int height))
 
- Public Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface
virtual ImageReadFromFile (const FilePath &path)=0
 
virtual CanvasCreateCanvas (int width, int height)=0
 
 ImageLibraryInterface (Delegate *delegate)
 

Additional Inherited Members

- Public Types inherited from net_instaweb::spriter::ImageLibraryInterface
typedef GoogleString FilePath
 
- Static Public Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface
static ImageLibraryInterfaceImageLibraryInterfaceFactory (const GoogleString &library_name)
 Use this factory method to get a usable image library object.
 
- Protected Member Functions inherited from net_instaweb::spriter::ImageLibraryInterface
 ImageLibraryInterface (const FilePath &base_input_path, const FilePath &base_output_path, Delegate *delegate)
 Use ImageLibraryInterfaceFactory() to access an image library.
 
const FilePathbase_input_path ()
 Used by subclasses:
 
const FilePathbase_output_path ()
 
const Delegatedelegate ()
 

Member Function Documentation

net_instaweb::spriter::MockImageLibraryInterface::MOCK_METHOD1 ( ReadFromFile  ,
Image const FilePath &path 
)

Read an image from disk. Return NULL (after calling delegate method) on error. Caller owns the returned pointer.


The documentation for this class was generated from the following file: