summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Byzhynar <AByzhynar@luxoft.com>2016-06-16 16:39:19 +0300
committerGitHub <noreply@github.com>2016-06-16 16:39:19 +0300
commit373d60b58bce555cf63230186b2df46421ea218b (patch)
treec2eb4c50a682fe44091a693aec8e56d21bc54a02
parent708b8e71d076c6e5658ac9b3d97e52dd04de8d06 (diff)
parentba0985bb86a92c463baed5be286f6c3e09b5fe14 (diff)
downloadsdl_core-373d60b58bce555cf63230186b2df46421ea218b.tar.gz
Merge pull request #607 from LevchenkoS/fix/Resolve_Qt_build_issues
Resolve Qt build issues
-rw-r--r--src/components/application_manager/test/commands/CMakeLists.txt2
-rw-r--r--src/components/application_manager/test/commands/command_impl_test.cc10
-rw-r--r--src/components/application_manager/test/commands/command_request_impl_test.cc17
-rw-r--r--src/components/application_manager/test/commands/mobile/CMakeLists.txt1
4 files changed, 16 insertions, 14 deletions
diff --git a/src/components/application_manager/test/commands/CMakeLists.txt b/src/components/application_manager/test/commands/CMakeLists.txt
index 4eca36f386..cb61b23a0e 100644
--- a/src/components/application_manager/test/commands/CMakeLists.txt
+++ b/src/components/application_manager/test/commands/CMakeLists.txt
@@ -35,7 +35,6 @@ include_directories(
)
set (SOURCES
- ${COMPONENTS_DIR}/application_manager/src/message_helper.cc
${AM_TEST_DIR}/commands/command_impl_test.cc
${AM_TEST_DIR}/commands/command_response_impl_test.cc
${AM_TEST_DIR}/commands/command_request_impl_test.cc
@@ -50,7 +49,6 @@ set(LIBRARIES
MOBILE_API
SmartObjects
jsoncpp
- MessageHelper
)
create_test("commands_test" "${SOURCES}" "${LIBRARIES}" )
diff --git a/src/components/application_manager/test/commands/command_impl_test.cc b/src/components/application_manager/test/commands/command_impl_test.cc
index 5d437aac42..48dd187402 100644
--- a/src/components/application_manager/test/commands/command_impl_test.cc
+++ b/src/components/application_manager/test/commands/command_impl_test.cc
@@ -62,6 +62,12 @@ using ::test::components::application_manager_test::MockApplication;
typedef SharedPtr<MockApplication> MockAppPtr;
+namespace {
+static const uint32_t kDefaultMsgCount_ = 5u;
+static const uint32_t kAppId1_ = 5u;
+static const uint32_t kAppId2_ = 10u;
+} // namespace
+
class CommandImplTest : public CommandsTest<CommandsTestMocks::kIsNice> {
public:
class UnwrappedCommandImpl : CommandImpl {
@@ -101,10 +107,6 @@ class CommandImplTest : public CommandsTest<CommandsTestMocks::kIsNice> {
}
return msg;
}
-
- static const uint32_t kDefaultMsgCount_ = 5u;
- const uint32_t kAppId1_ = 5u;
- const uint32_t kAppId2_ = 10u;
};
typedef CommandImplTest::UnwrappedCommandImpl UCommandImpl;
diff --git a/src/components/application_manager/test/commands/command_request_impl_test.cc b/src/components/application_manager/test/commands/command_request_impl_test.cc
index fff425512e..a96daf0990 100644
--- a/src/components/application_manager/test/commands/command_request_impl_test.cc
+++ b/src/components/application_manager/test/commands/command_request_impl_test.cc
@@ -75,6 +75,16 @@ using ::application_manager::RPCParams;
typedef ::application_manager::commands::CommandRequestImpl::RequestState
RequestState;
+namespace {
+const uint32_t kConnectionKey_ = 5u;
+const uint32_t kCorrelationId_ = 3u;
+const hmi_apis::FunctionID::eType kInvalidFunctionId_ =
+ hmi_apis::FunctionID::INVALID_ENUM;
+const std::string kPolicyAppId_ = "Test";
+const mobile_apis::Result::eType kMobResultSuccess_ =
+ mobile_apis::Result::SUCCESS;
+} // namespace
+
class CommandRequestImplTest
: public CommandRequestTest<CommandsTestMocks::kIsNice> {
public:
@@ -115,13 +125,6 @@ class CommandRequestImplTest
return app;
}
- const uint32_t kConnectionKey_ = 5u;
- const uint32_t kCorrelationId_ = 3u;
- const hmi_apis::FunctionID::eType kInvalidFunctionId_ =
- hmi_apis::FunctionID::INVALID_ENUM;
- const std::string kPolicyAppId_ = "Test";
- const mobile_apis::Result::eType kMobResultSuccess_ =
- mobile_apis::Result::SUCCESS;
sync_primitives::Lock app_set_lock_;
};
diff --git a/src/components/application_manager/test/commands/mobile/CMakeLists.txt b/src/components/application_manager/test/commands/mobile/CMakeLists.txt
index a46e4bfc87..d079c2abed 100644
--- a/src/components/application_manager/test/commands/mobile/CMakeLists.txt
+++ b/src/components/application_manager/test/commands/mobile/CMakeLists.txt
@@ -48,7 +48,6 @@ set(LIBRARIES
HMI_API
MOBILE_API
SmartObjects
- MessageHelper
)
create_test("mobile_commands_test" "${SOURCES}" "${LIBRARIES}" )