diff options
author | Teodora Kireva <tkireva@luxoft.com> | 2017-02-03 18:44:02 +0200 |
---|---|---|
committer | Ira Lytvynenko <ILytvynenko@luxoft.com> | 2017-04-10 18:20:04 +0300 |
commit | 69a14b99f68a03bb71857d0e619b547d3bc653c0 (patch) | |
tree | 51dddef248d4f297f36c35fe1717710625931419 /src/components/include/test/policy/policy_external | |
parent | 9e7a39af22c3587580cb2dcff44e6a9b6956d02c (diff) | |
download | sdl_core-69a14b99f68a03bb71857d0e619b547d3bc653c0.tar.gz |
Fix OnSystemRequest cycling urls refactoring
Required refactoring of the functionality that is responsible
for sending different application URL on each OnSystemRequest.
The logic was placed in OnSnapshotCreated method. Now it is
separated on two methods - GetNextUpdateUrl - returns pair of
policy application id and url from the Endpoints vector that
potentially will be sent, IsUrlAppIdValid - checks if given
policy application id is assigned to a registered application
or it is the default id.
Diffstat (limited to 'src/components/include/test/policy/policy_external')
-rw-r--r-- | src/components/include/test/policy/policy_external/policy/mock_policy_manager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/include/test/policy/policy_external/policy/mock_policy_manager.h b/src/components/include/test/policy/policy_external/policy/mock_policy_manager.h index 0140efddf5..8c5a51a55d 100644 --- a/src/components/include/test/policy/policy_external/policy/mock_policy_manager.h +++ b/src/components/include/test/policy/policy_external/policy/mock_policy_manager.h @@ -182,6 +182,7 @@ class MockPolicyManager : public PolicyManager { int32_t timespan_seconds)); MOCK_CONST_METHOD0(get_settings, const PolicySettings&()); MOCK_METHOD1(set_settings, void(const PolicySettings* get_settings)); + MOCK_METHOD1(GetNextUpdateUrl, AppIdURL(const EndpointUrls& urls)); }; } // namespace policy_manager_test } // namespace components |