summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/resumption
diff options
context:
space:
mode:
authordcherniev <dcherniev@github.com>2016-12-09 17:44:28 +0200
committerdcherniev <dcherniev@github.com>2017-01-10 12:44:39 +0200
commit0292ff17af4f4a0f9f686a8c8ae66c4156197e61 (patch)
tree17ee1d2bc92b0e132a03c0ca0a432333beab904e /src/components/application_manager/src/resumption
parent4ff12fe67f0ed15700fd030690276712ef23659d (diff)
downloadsdl_core-0292ff17af4f4a0f9f686a8c8ae66c4156197e61.tar.gz
Create mock for LastState class
Splitted last_state into interface and implementation classes. Created mock class for last_state interface class. Updated references to last_state class in other related classes. Related task : APPLINK-30284
Diffstat (limited to 'src/components/application_manager/src/resumption')
-rw-r--r--src/components/application_manager/src/resumption/resumption_data_json.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/application_manager/src/resumption/resumption_data_json.cc b/src/components/application_manager/src/resumption/resumption_data_json.cc
index f60f934fef..7866fc4de1 100644
--- a/src/components/application_manager/src/resumption/resumption_data_json.cc
+++ b/src/components/application_manager/src/resumption/resumption_data_json.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, Ford Motor Company
+ * Copyright (c) 2017, Ford Motor Company
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -372,10 +372,9 @@ Json::Value& ResumptionDataJson::GetResumptionData() const {
using namespace app_mngr;
LOG4CXX_AUTO_TRACE(logger_);
sync_primitives::AutoLock autolock(resumption_lock_);
- Json::Value& dictionary = last_state().dictionary;
+ Json::Value& dictionary = last_state().get_dictionary();
if (!dictionary.isMember(strings::resumption)) {
- last_state().dictionary[strings::resumption] =
- Json::Value(Json::objectValue);
+ dictionary[strings::resumption] = Json::Value(Json::objectValue);
LOG4CXX_WARN(logger_, "resumption section is missed");
}
Json::Value& resumption = dictionary[strings::resumption];
@@ -481,7 +480,7 @@ bool ResumptionDataJson::DropAppDataResumption(const std::string& device_id,
}
void ResumptionDataJson::Persist() {
- last_state().SaveToFileSystem();
+ last_state().SaveStateToFileSystem();
}
} // resumption