Protected Types | |
typedef scoped_ptr< Image > | ImagePtr |
Protected Member Functions | |
Image * | ImageFromString (Image::Type output_type, const GoogleString &name, const GoogleString &contents, bool progressive) |
Image * | ReadFromFileWithOptions (const char *name, GoogleString *contents, Image::CompressionOptions *options) |
Image * | ReadImageFromFile (Image::Type output_type, const char *filename, GoogleString *buffer, bool progressive) |
Protected Attributes | |
StdioFileSystem | file_system_ |
GoogleMessageHandler | handler_ |
Static Protected Attributes | |
static const char | kTestData [] |
static const char | kCuppa [] |
static const char | kBikeCrash [] |
static const char | kIronChef [] |
static const char | kCradle [] |
static const char | kPuzzle [] |
static const char | kLarge [] |
static const char | kScenery [] |
static const char | kAppSegments [] |
Image* net_instaweb::ImageTestBase::ImageFromString | ( | Image::Type | output_type, | |
const GoogleString & | name, | |||
const GoogleString & | contents, | |||
bool | progressive | |||
) | [protected] |
We use the output_type (ultimate expected output type after image processing) to set up rewrite permissions for the resulting Image object.
Image* net_instaweb::ImageTestBase::ReadFromFileWithOptions | ( | const char * | name, | |
GoogleString * | contents, | |||
Image::CompressionOptions * | options | |||
) | [protected] |
Read an image with given filename and compression options. This also transfers the ownership of options to image object.
Image* net_instaweb::ImageTestBase::ReadImageFromFile | ( | Image::Type | output_type, | |
const char * | filename, | |||
GoogleString * | buffer, | |||
bool | progressive | |||
) | [protected] |
We use the output_type (ultimate expected output type after image processing) to set up rewrite permissions for the resulting Image object.