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

#include <mock_fb_hal_device.h>

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

Public Member Functions

 MockFBHalDevice ()
 
 MockFBHalDevice (unsigned int const width, unsigned int const height, int const pf, int const numfbs)
 
 MOCK_METHOD2 (post_interface, int(struct framebuffer_device_t *, buffer_handle_t))
 
 MOCK_METHOD2 (setSwapInterval_interface, int(struct framebuffer_device_t *, int))
 

Static Public Member Functions

static int hook_post (struct framebuffer_device_t *mock_fb, buffer_handle_t handle)
 
static int hook_setSwapInterval (struct framebuffer_device_t *mock_fb, int interval)
 

Public Attributes

 post = hook_post
 
 setSwapInterval = hook_setSwapInterval
 
hw_device_t empty_module
 

Constructor & Destructor Documentation

mir::test::doubles::MockFBHalDevice::MockFBHalDevice ( )
inline
mir::test::doubles::MockFBHalDevice::MockFBHalDevice ( unsigned int const  width,
unsigned int const  height,
int const  pf,
int const  numfbs 
)
inline

Member Function Documentation

static int mir::test::doubles::MockFBHalDevice::hook_post ( struct framebuffer_device_t *  mock_fb,
buffer_handle_t  handle 
)
inlinestatic
static int mir::test::doubles::MockFBHalDevice::hook_setSwapInterval ( struct framebuffer_device_t *  mock_fb,
int  interval 
)
inlinestatic
mir::test::doubles::MockFBHalDevice::MOCK_METHOD2 ( post_interface  ,
int(struct framebuffer_device_t *, buffer_handle_t)   
)
mir::test::doubles::MockFBHalDevice::MOCK_METHOD2 ( setSwapInterval_interface  ,
int(struct framebuffer_device_t *, int)   
)

Member Data Documentation

hw_device_t mir::test::doubles::MockFBHalDevice::empty_module
mir::test::doubles::MockFBHalDevice::post = hook_post
mir::test::doubles::MockFBHalDevice::setSwapInterval = hook_setSwapInterval

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

Copyright © 2012,2013 Canonical Ltd.
Generated on Wed Oct 30 18:52:19 UTC 2013