Page Speed Optimization Libraries
1.4.26.1
|
Protected Types | |
typedef scoped_ptr< Image > | ImagePtr |
Protected Member Functions | |
Image * | ImageFromString (ImageType output_type, const GoogleString &name, const GoogleString &contents, bool progressive) |
Image * | ReadFromFileWithOptions (const char *name, GoogleString *contents, Image::CompressionOptions *options) |
Image * | ReadImageFromFile (ImageType output_type, const char *filename, GoogleString *buffer, bool progressive) |
Protected Attributes | |
MockTimer | timer_ |
StdioFileSystem | file_system_ |
GoogleMessageHandler | handler_ |
Static Protected Attributes | |
static const char | kTestData [] |
static const char | kCuppa [] |
static const char | kCuppaTransparent [] |
static const char | kBikeCrash [] |
static const char | kIronChef [] |
static const char | kCradle [] |
static const char | kPuzzle [] |
static const char | kLarge [] |
static const char | kRedbrush [] |
static const char | kScenery [] |
static const char | kAppSegments [] |
Image* net_instaweb::ImageTestBase::ImageFromString | ( | ImageType | 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 | ( | ImageType | 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.