Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mir::test::doubles::MockAllocDevice Class Reference

#include <mock_android_alloc_device.h>

Inheritance diagram for mir::test::doubles::MockAllocDevice:
Inheritance graph
[legend]

Public Member Functions

 MockAllocDevice ()
 
 ~MockAllocDevice ()
 
native_handle_t * mock_generate_sane_android_handle (int numFd, int numInt)
 
 MOCK_METHOD7 (alloc_interface, int(alloc_device_t *, int, int, int, int, buffer_handle_t *, int *))
 
 MOCK_METHOD2 (free_interface, int(alloc_device_t *, buffer_handle_t))
 
 MOCK_METHOD3 (dump_interface, int(alloc_device_t *, char *, int))
 

Static Public Member Functions

static int hook_alloc (alloc_device_t *mock_alloc, int w, int h, int format, int usage, buffer_handle_t *handle, int *stride)
 
static int hook_free (alloc_device_t *mock_alloc, buffer_handle_t handle)
 
static void hook_dump (alloc_device_t *mock_alloc, char *buf, int buf_len)
 

Public Attributes

native_handle_t * buffer_handle
 
unsigned int fake_stride
 

Constructor & Destructor Documentation

mir::test::doubles::MockAllocDevice::MockAllocDevice ( )
inline
mir::test::doubles::MockAllocDevice::~MockAllocDevice ( )
inline

Member Function Documentation

static int mir::test::doubles::MockAllocDevice::hook_alloc ( alloc_device_t *  mock_alloc,
int  w,
int  h,
int  format,
int  usage,
buffer_handle_t *  handle,
int *  stride 
)
inlinestatic
static void mir::test::doubles::MockAllocDevice::hook_dump ( alloc_device_t *  mock_alloc,
char *  buf,
int  buf_len 
)
inlinestatic
static int mir::test::doubles::MockAllocDevice::hook_free ( alloc_device_t *  mock_alloc,
buffer_handle_t  handle 
)
inlinestatic
native_handle_t* mir::test::doubles::MockAllocDevice::mock_generate_sane_android_handle ( int  numFd,
int  numInt 
)
inline
mir::test::doubles::MockAllocDevice::MOCK_METHOD2 ( free_interface  ,
int(alloc_device_t *, buffer_handle_t)   
)
mir::test::doubles::MockAllocDevice::MOCK_METHOD3 ( dump_interface  ,
int(alloc_device_t *, char *, int)   
)
mir::test::doubles::MockAllocDevice::MOCK_METHOD7 ( alloc_interface  ,
int(alloc_device_t *, int, int, int, int, buffer_handle_t *, int *)   
)

Member Data Documentation

native_handle_t* mir::test::doubles::MockAllocDevice::buffer_handle
unsigned int mir::test::doubles::MockAllocDevice::fake_stride

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

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014