summaryrefslogtreecommitdiff
path: root/src/components/application_manager/test/commands/command_request_impl_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/test/commands/command_request_impl_test.cc')
-rw-r--r--src/components/application_manager/test/commands/command_request_impl_test.cc22
1 files changed, 16 insertions, 6 deletions
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 86dba1c5ac..2b3231ba98 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
@@ -53,6 +53,7 @@
#include "application_manager/mock_app_service_manager.h"
#include "resumption/last_state_impl.h"
+#include "resumption/last_state_wrapper_impl.h"
namespace test {
namespace components {
@@ -95,6 +96,9 @@ const std::string kDisallowedParam2 = "disallowed_param2";
const std::string kAllowedParam = "allowed_param";
const std::string kUndefinedParam = "undefined_params";
const std::string kMissedParam = "missed_param";
+const std::string kAppStorageFolder = "app_storage_folder";
+const std::string kAppStorageFile = "./app_info.dat";
+const std::string kAppInfoStorage = "app_info_storage";
} // namespace
class CommandRequestImplTest
@@ -607,8 +611,10 @@ TEST_F(CommandRequestImplTest, AppNotFound_HashUpdateNotExpected) {
}
TEST_F(CommandRequestImplTest, SendProviderRequest_ByServiceType) {
- resumption::LastStateImpl last_state("app_storage_folder",
- "app_info_storage");
+ auto last_state = std::make_shared<resumption::LastStateWrapperImpl>(
+ std::make_shared<resumption::LastStateImpl>(kAppStorageFolder,
+ kAppInfoStorage));
+
MockAppServiceManager app_service_manager(app_mngr_, last_state);
MockAppPtr mock_app = CreateMockApp();
EXPECT_CALL(app_mngr_, GetAppServiceManager())
@@ -634,8 +640,10 @@ TEST_F(CommandRequestImplTest, SendProviderRequest_ByServiceType) {
}
TEST_F(CommandRequestImplTest, SendProviderRequest_ByProviderID) {
- resumption::LastStateImpl last_state("app_storage_folder",
- "app_info_storage");
+ auto last_state = std::make_shared<resumption::LastStateWrapperImpl>(
+ std::make_shared<resumption::LastStateImpl>(kAppStorageFolder,
+ kAppInfoStorage));
+
MockAppServiceManager app_service_manager(app_mngr_, last_state);
MockAppPtr mock_app = CreateMockApp();
EXPECT_CALL(app_mngr_, GetAppServiceManager())
@@ -661,8 +669,10 @@ TEST_F(CommandRequestImplTest, SendProviderRequest_ByProviderID) {
}
TEST_F(CommandRequestImplTest, SendProviderRequestToHMI_ByProviderID) {
- resumption::LastStateImpl last_state("app_storage_folder",
- "app_info_storage");
+ auto last_state = std::make_shared<resumption::LastStateWrapperImpl>(
+ std::make_shared<resumption::LastStateImpl>(kAppStorageFolder,
+ kAppInfoStorage));
+
MockAppServiceManager app_service_manager(app_mngr_, last_state);
MockAppPtr mock_app = CreateMockApp();
EXPECT_CALL(app_mngr_, GetAppServiceManager())