diff options
author | Alexander Kutsan <AKutsan@luxoft.com> | 2016-11-18 18:12:45 +0200 |
---|---|---|
committer | Alexander Kutsan <AKutsan@luxoft.com> | 2016-12-05 09:33:20 +0200 |
commit | 16891012aadef1839f460ddae51d7ee71c2d6ff0 (patch) | |
tree | d5b385a0088605c4028b64218d8ecc339e5981a3 /src/components/include/test/application_manager/policies | |
parent | 84f3d3bcd54c1ae1b842e3660c905d9f78cf9d25 (diff) | |
download | sdl_core-16891012aadef1839f460ddae51d7ee71c2d6ff0.tar.gz |
Fix usages of policy in code
Diffstat (limited to 'src/components/include/test/application_manager/policies')
-rw-r--r-- | src/components/include/test/application_manager/policies/mock_policy_handler_interface.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/components/include/test/application_manager/policies/mock_policy_handler_interface.h b/src/components/include/test/application_manager/policies/mock_policy_handler_interface.h index 3c878daf7c..199544e5f7 100644 --- a/src/components/include/test/application_manager/policies/mock_policy_handler_interface.h +++ b/src/components/include/test/application_manager/policies/mock_policy_handler_interface.h @@ -63,10 +63,16 @@ class MockPolicyHandlerInterface : public policy::PolicyHandlerInterface { MOCK_METHOD2(OnPermissionsUpdated, void(const std::string& policy_app_id, const policy::Permissions& permissions)); + +#ifdef EXTENDED_PROPRIETARY MOCK_METHOD3(OnSnapshotCreated, void(const policy::BinaryMessage& pt_string, const std::vector<int>& retry_delay_seconds, int timeout_exchange)); +#else // EXTENDED_PROPRIETARY + MOCK_METHOD1(OnSnapshotCreated, void(const policy::BinaryMessage& pt_string)); +#endif // EXTENDED_PROPRIETARY + MOCK_CONST_METHOD2(GetPriority, bool(const std::string& policy_app_id, std::string* priority)); @@ -93,7 +99,8 @@ class MockPolicyHandlerInterface : public policy::PolicyHandlerInterface { policy::StringArray* nicknames)); MOCK_METHOD1(GetInitialAppData, bool(const std::string& application_id)); MOCK_METHOD2(GetUpdateUrls, - void(int service_type, policy::EndpointUrls& end_points)); + void(const uint32_t service_type, + policy::EndpointUrls& end_points)); MOCK_CONST_METHOD0(GetLockScreenIconUrl, std::string()); MOCK_METHOD0(ResetRetrySequence, void()); MOCK_METHOD0(NextRetryTimeout, uint32_t()); @@ -180,6 +187,11 @@ class MockPolicyHandlerInterface : public policy::PolicyHandlerInterface { GetAppRequestTypes, const std::vector<std::string>(const std::string& policy_app_id)); MOCK_CONST_METHOD0(GetVehicleInfo, const policy::VehicleInfo()); + +#ifdef EXTENDED_PROPRIETARY + MOCK_CONST_METHOD0(GetMetaInfo, const policy::MetaInfo()); +#endif // EXTENDED_PROPRIETARY + MOCK_METHOD1(Increment, void(usage_statistics::GlobalCounterId type)); MOCK_METHOD2(Increment, void(const std::string& app_id, @@ -192,10 +204,12 @@ class MockPolicyHandlerInterface : public policy::PolicyHandlerInterface { void(const std::string& app_id, usage_statistics::AppStopwatchId type, int32_t timespan_seconds)); +#ifdef ENABLE_SECURITY MOCK_CONST_METHOD0(RetrieveCertificate, std::string()); +#endif // ENABLE_SECURITY MOCK_CONST_METHOD0(get_settings, const policy::PolicySettings&()); MOCK_CONST_METHOD0(RemoteAppsUrl, const std::string()); - MOCK_METHOD2(GetServiceUrls, + MOCK_METHOD2(GetUpdateUrls, void(const std::string& service_type, policy::EndpointUrls& end_points)); |