Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
net_instaweb::ImageTestBase Class Reference
Inheritance diagram for net_instaweb::ImageTestBase:

Protected Types

typedef scoped_ptr< ImageImagePtr
 

Protected Member Functions

ImageImageFromString (ImageType output_type, const GoogleString &name, const GoogleString &contents, bool progressive)
 
ImageReadFromFileWithOptions (const char *name, GoogleString *contents, Image::CompressionOptions *options)
 
ImageReadImageFromFile (ImageType output_type, const char *filename, GoogleString *buffer, bool progressive)
 

Protected Attributes

MockTimer timer_
 
StdioFileSystem file_system_
 
MockMessageHandler message_handler_
 

Static Protected Attributes

static const char kTestData []
 
static const char kAppSegments []
 
static const char kBikeCrash []
 
static const char kCradle []
 
static const char kCuppa []
 
static const char kCuppaTransparent []
 
static const char kIronChef []
 
static const char kPuzzle []
 
static const char kRedbrush []
 
static const char kScenery []
 
static const char kTransparent []
 

Member Function Documentation

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.


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