Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mock_interpreter_resource_cache.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17  */
18 #ifndef MIR_TEST_DOUBLES_MOCK_INTERPRETER_RESOURCE_CACHE_H_
19 #define MIR_TEST_DOUBLES_MOCK_INTERPRETER_RESOURCE_CACHE_H_
20 
22 
23 namespace mir
24 {
25 namespace test
26 {
27 namespace doubles
28 {
29 struct MockInterpreterResourceCache : public graphics::android::InterpreterResourceCache
30 {
31  MOCK_METHOD2(store_buffer, void(std::shared_ptr<graphics::Buffer>const&,
32  std::shared_ptr<graphics::NativeBuffer> const&));
33  MOCK_METHOD1(retrieve_buffer, std::shared_ptr<graphics::Buffer>(ANativeWindowBuffer*));
34  MOCK_METHOD2(update_native_fence, void(ANativeWindowBuffer*, int));
35 };
36 }
37 }
38 }
39 #endif /* MIR_TEST_DOUBLES_MOCK_INTERPRETER_RESOURCE_CACHE_H_ */
Definition: mock_interpreter_resource_cache.h:29
MOCK_METHOD2(store_buffer, void(std::shared_ptr< graphics::Buffer >const &, std::shared_ptr< graphics::NativeBuffer > const &))
MOCK_METHOD1(retrieve_buffer, std::shared_ptr< graphics::Buffer >(ANativeWindowBuffer *))

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