summaryrefslogtreecommitdiff
path: root/org.genivi.commonapi.core.tests/src/test-interface-proxy.h
blob: 9a68778a40216800ca3ec5509fd4c446a25f1c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef TEST_INTERFACE_PROXY_H_
#define TEST_INTERFACE_PROXY_H_

#include "commonapi-mock.h"

#include <commonapi/tests/TestInterfaceProxy.h>


class MockTestPredefinedTypeAttributeAttribute:
		public commonapi::tests::TestInterfaceProxyBase::TestPredefinedTypeAttributeAttribute {
// TODO
};

class MockTestDerivedStructAttributeAttribute:
		public commonapi::tests::TestInterfaceProxyBase::TestDerivedStructAttributeAttribute {
// TODO
};

class MockTestDerivedArrayAttributeAttribute:
		public commonapi::tests::TestInterfaceProxyBase::TestDerivedArrayAttributeAttribute {
// TODO
};

class MockTestPredefinedTypeBroadcastEvent:
		public commonapi::tests::TestInterfaceProxyBase::TestPredefinedTypeBroadcastEvent {
// TODO
};



class MockTestInterfaceProxyBase: public MockProxy, public commonapi::tests::TestInterfaceProxyBase {
 public:
	MOCK_METHOD0(getTestPredefinedTypeAttributeAttribute, TestPredefinedTypeAttributeAttribute&());
	MOCK_METHOD0(getTestDerivedStructAttributeAttribute, TestDerivedStructAttributeAttribute&());
	MOCK_METHOD0(getTestDerivedArrayAttributeAttribute, TestDerivedArrayAttributeAttribute&());
	MOCK_METHOD0(getTestPredefinedTypeBroadcastEvent, TestPredefinedTypeBroadcastEvent&());

	MOCK_METHOD3(testVoidPredefinedTypeMethod,
		         void(const uint32_t& uint32Value,
                      const std::string& stringValue,
                      CommonAPI::CallStatus& callStatus));

	MOCK_METHOD3_WITH_FUTURE_RETURN(testVoidPredefinedTypeMethodAsync,
			CommonAPI::CallStatus (const uint32_t& uint32Value,
								   const std::string& stringValue,
								   TestVoidPredefinedTypeMethodAsyncCallback callback));

	MOCK_METHOD5(testPredefinedTypeMethod,
			void(const uint32_t& uint32InValue,
				 const std::string& stringInValue,
				 CommonAPI::CallStatus& callStatus,
				 uint32_t& uint32OutValue,
				 std::string& stringOutValue));

	MOCK_METHOD3_WITH_FUTURE_RETURN(testPredefinedTypeMethodAsync,
			CommonAPI::CallStatus (const uint32_t& uint32InValue,
								   const std::string& stringInValue,
								   TestPredefinedTypeMethodAsyncCallback callback));

	MOCK_METHOD3(testVoidDerivedTypeMethod,
			void(const commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2Value,
				 const commonapi::tests::DerivedTypeCollection::TestMap& testMapValue,
				 CommonAPI::CallStatus& callStatus));


	MOCK_METHOD3_WITH_FUTURE_RETURN(testVoidDerivedTypeMethodAsync,
			CommonAPI::CallStatus (const commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2Value,
								   const commonapi::tests::DerivedTypeCollection::TestMap& testMapValue,
		    		               TestVoidDerivedTypeMethodAsyncCallback callback));

	MOCK_METHOD5(testDerivedTypeMethod,
			void(const commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue,
				 const commonapi::tests::DerivedTypeCollection::TestMap& testMapInValue,
				 CommonAPI::CallStatus& callStatus,
				 commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2OutValue,
				 commonapi::tests::DerivedTypeCollection::TestMap& testMapOutValue));

	MOCK_METHOD3_WITH_FUTURE_RETURN(testDerivedTypeMethodAsync,
			CommonAPI::CallStatus (const commonapi::tests::DerivedTypeCollection::TestEnumExtended2& testEnumExtended2InValue,
								   const commonapi::tests::DerivedTypeCollection::TestMap& testMapInValue,
								   TestDerivedTypeMethodAsyncCallback callback));
};

#endif /* TEST_INTERFACE_PROXY_H_ */