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
|
#ifndef SRC_COMPONENTS_REMOTE_CONTROL_TEST_INCLUDE_MOCK_RESOURCE_ALLOCATION_MANAGER_H_
#define SRC_COMPONENTS_REMOTE_CONTROL_TEST_INCLUDE_MOCK_RESOURCE_ALLOCATION_MANAGER_H_
#include "gmock/gmock.h"
#include "remote_control/resource_allocation_manager.h"
namespace test {
namespace components {
namespace remote_control_test {
class MockResourceAllocationManager
: public remote_control::ResourceAllocationManager {
public:
MOCK_METHOD2(AcquireResource,
remote_control::AcquireResult::eType(
const std::string& module_type, const uint32_t app_id));
MOCK_METHOD2(ForceAcquireResource,
void(const std::string& module_type, const uint32_t app_id));
MOCK_METHOD2(OnDriverDisallowed,
void(const std::string& module_type, const uint32_t app_id));
MOCK_METHOD2(OnApplicationEvent,
void(functional_modules::ApplicationEvent event,
application_manager::ApplicationSharedPtr application));
MOCK_METHOD1(OnPolicyEvent, void(functional_modules::PolicyEvent event));
MOCK_METHOD1(SetAccessMode,
void(const hmi_apis::Common_RCAccessMode::eType access_mode));
MOCK_CONST_METHOD0(GetAccessMode, hmi_apis::Common_RCAccessMode::eType());
MOCK_METHOD3(SetResourceState,
void(const std::string& module_type,
const uint32_t app_id,
const remote_control::ResourceState::eType state));
MOCK_CONST_METHOD1(IsResourceFree, bool(const std::string& module_type));
MOCK_METHOD0(ResetAllAllocations, void());
};
} // namespace remote_control_test
} // namespace components
} // namespace test
#endif // SRC_COMPONENTS_REMOTE_CONTROL_TEST_INCLUDE_MOCK_RESOURCE_ALLOCATION_MANAGER_H_
|