diff options
Diffstat (limited to 'src/components/application_manager/test/resumption/include/resumption_data_test.h')
-rw-r--r-- | src/components/application_manager/test/resumption/include/resumption_data_test.h | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/src/components/application_manager/test/resumption/include/resumption_data_test.h b/src/components/application_manager/test/resumption/include/resumption_data_test.h deleted file mode 100644 index 55767225b5..0000000000 --- a/src/components/application_manager/test/resumption/include/resumption_data_test.h +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) 2015, Ford Motor Company - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following - * disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * Neither the name of the Ford Motor Company nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - */ - -#include <string> -#include <algorithm> -#include "gtest/gtest.h" -#include "application_manager/usage_statistics.h" -#include "application_mock.h" -#include "application_manager/application_manager_impl.h" -#include "utils/data_accessor.h" - -namespace test { -namespace components { -namespace resumption_test { - -using ::testing::NiceMock; -namespace am = application_manager; -namespace sm = smart_objects; -using namespace Json; - -using namespace resumption; -using namespace mobile_apis; - -class ResumptionDataTest : public ::testing::Test { - protected: - // Check structure in saved application - void CheckSavedApp(sm::SmartObject& saved_data); - - // Set data for resumption - virtual void PrepareData(); - utils::SharedPtr<NiceMock<ApplicationMock>> app_mock; - - HMILevel::eType hmi_level_; - size_t app_id_; - size_t hmi_app_id_; - std::string policy_app_id_; - size_t ign_off_count_; - const size_t tts_chunks_count = 4; - - size_t grammar_id_; - std::string hash_; - bool is_audio_; - const connection_handler::DeviceHandle device_handle_ = 10; - - sm::SmartObject* help_prompt_; - sm::SmartObject* timeout_prompt_; - sm::SmartObject* vr_help_; - sm::SmartObject* vr_help_title_; - sm::SmartObject* vr_synonyms_; - sm::SmartObject* keyboard_props_; - sm::SmartObject* menu_title_; - sm::SmartObject* menu_icon_; - - void SetCommands(); - void SetSubmenues(); - void SetChoiceSet(); - void SetAppFiles(); - void SetGlobalProporties(); - void SetKeyboardProperties(); - void SetMenuTitleAndIcon(); - void SetHelpAndTimeoutPrompt(); - void SetVRHelpTitle(); - void SetSubscriptions(); - - void CheckCommands(sm::SmartObject& res_list); - void CheckGlobalProporties(sm::SmartObject& res_list); - void CheckSubmenues(sm::SmartObject& res_list); - void CheckChoiceSet(sm::SmartObject& res_list); - void CheckAppFiles(sm::SmartObject& res_list); - void CheckKeyboardProperties(sm::SmartObject& res_list); - void CheckMenuTitle(sm::SmartObject& res_list); - void CheckMenuIcon(sm::SmartObject& res_list); - void CheckHelpPrompt(sm::SmartObject& res_list); - void CheckTimeoutPrompt(sm::SmartObject& res_list); - void CheckVRHelp(NsSmartDeviceLink::NsSmartObjects::SmartObject& res_list); - void CheckVRTitle(sm::SmartObject& res_list); - void CheckSubscriptions(sm::SmartObject& res_list); - - const size_t count_of_commands = 5; - const size_t count_of_choice = 2; - const size_t count_of_choice_sets = 4; - const size_t count_of_submenues = 3; - const size_t count_of_files = 8; - const size_t count_of_vrhelptitle = 2; - const std::string device_id_ = "12345"; - - am::CommandsMap test_commands_map; - am::SubMenuMap test_submenu_map; - am::ChoiceSetMap test_choiceset_map; - am::AppFilesMap app_files_map_; - - am::ButtonSubscriptions btn_subscr; - am::VehicleInfoSubscriptions ivi; - - sync_primitives::Lock sublock_; - sync_primitives::Lock comlock_; - sync_primitives::Lock setlock_; - sync_primitives::Lock btnlock_; - sync_primitives::Lock ivilock_; -}; - -} // namespace resumption_test -} // namespace components -} // namespace test |