summaryrefslogtreecommitdiff
path: root/src/components/policy/policy_external/test
diff options
context:
space:
mode:
authorAKalinich-Luxoft <AKalinich@luxoft.com>2017-08-31 17:57:54 +0300
committerAKalinich-Luxoft <AKalinich@luxoft.com>2017-08-31 18:06:56 +0300
commit27ab94b85fcf2519eabb90e9f7f4266177402cb9 (patch)
tree6078d1b34419d64a54593f26ea62d8f6f3cc1b22 /src/components/policy/policy_external/test
parentfc7bb59057532c8b95cae3694df2e1eacc051407 (diff)
downloadsdl_core-27ab94b85fcf2519eabb90e9f7f4266177402cb9.tar.gz
Rename Subject struct to ApplicationOnDevice
And more Subject structs were renamed to more descriptive name. Also removed unused mocks.
Diffstat (limited to 'src/components/policy/policy_external/test')
-rw-r--r--src/components/policy/policy_external/test/include/policy/mock_access_remote.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/components/policy/policy_external/test/include/policy/mock_access_remote.h b/src/components/policy/policy_external/test/include/policy/mock_access_remote.h
index 3eed880c0b..486c27590d 100644
--- a/src/components/policy/policy_external/test/include/policy/mock_access_remote.h
+++ b/src/components/policy/policy_external/test/include/policy/mock_access_remote.h
@@ -39,22 +39,19 @@ namespace test {
namespace components {
namespace access_remote_test {
-class MockSubject : public policy::Subject {
- public:
-};
-
class MockAccessRemote : public policy::AccessRemote {
public:
MOCK_CONST_METHOD3(
FindGroup,
- policy::PTString(const policy::Subject& who,
+ policy::PTString(const policy::ApplicationOnDevice& who,
const policy::PTString& rpc,
const policy::RemoteControlParams& params));
MOCK_METHOD2(SetDefaultHmiTypes,
- void(const policy::Subject& who,
+ void(const policy::ApplicationOnDevice& who,
const std::vector<int>& hmi_types));
- MOCK_METHOD1(GetGroups,
- const policy_table::Strings&(const policy::Subject& who));
+ MOCK_METHOD1(
+ GetGroups,
+ const policy_table::Strings&(const policy::ApplicationOnDevice& who));
MOCK_METHOD3(GetPermissionsForApp,
bool(const std::string& device_id,
const std::string& app_id,
@@ -62,7 +59,8 @@ class MockAccessRemote : public policy::AccessRemote {
MOCK_CONST_METHOD2(CheckModuleType,
bool(const policy::PTString& app_id,
policy_table::ModuleType module));
- MOCK_METHOD1(IsAppRemoteControl, bool(const policy::Subject& who));
+ MOCK_METHOD1(IsAppRemoteControl,
+ bool(const policy::ApplicationOnDevice& who));
MOCK_METHOD2(GetModuleTypes,
bool(const std::string& application_id,
std::vector<std::string>* modules));