net_instaweb::ImageTestBase Class Reference

List of all members.

Protected Types

typedef scoped_ptr< ImageImagePtr

Protected Member Functions

ImageImageFromString (Image::Type output_type, const GoogleString &name, const GoogleString &contents, bool progressive)
ImageReadFromFileWithOptions (const char *name, GoogleString *contents, Image::CompressionOptions *options)
ImageReadImageFromFile (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 []

Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:00 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3