mirror of
https://github.com/eclipse-openvehicle-api/openvehicle-api.git
synced 2026-07-02 05:35:11 +00:00
update parser (#5)
This commit is contained in:
@@ -3,8 +3,10 @@
|
||||
#include "mock.h"
|
||||
#include "../../../sdv_services/core/toml_parser/parser_toml.cpp"
|
||||
#include "../../../sdv_services/core/toml_parser/lexer_toml.cpp"
|
||||
#include "../../../sdv_services/core/toml_parser/lexer_toml_token.cpp"
|
||||
#include "../../../sdv_services/core/toml_parser/parser_node_toml.cpp"
|
||||
#include "../../../sdv_services/core/toml_parser/character_reader_utf_8.cpp"
|
||||
#include "../../../sdv_services/core/toml_parser/miscellaneous.cpp"
|
||||
#include "../../../sdv_services/core/module_control.cpp"
|
||||
#include "../../../sdv_services/core/module.cpp"
|
||||
#include "../../../sdv_services/core/app_config.cpp"
|
||||
|
||||
@@ -11,13 +11,7 @@
|
||||
class CMock
|
||||
{
|
||||
public:
|
||||
CMock() : m_root("root")
|
||||
{
|
||||
auto ptrElement = std::make_shared<CNormalTable>("Install");
|
||||
m_root.AddElement(ptrElement);
|
||||
auto ptrValue = std::make_shared<CStringNode>("Directory", "install/test");
|
||||
ptrElement->AddElement(ptrValue);
|
||||
}
|
||||
CMock() {}
|
||||
void DestroyModuleObjects(sdv::core::TModuleID) {}
|
||||
bool IsStandaloneApplication() { return true; }
|
||||
bool IsEssentialApplication() { return false; }
|
||||
@@ -40,9 +34,8 @@ public:
|
||||
sdv::core::TModuleID ContextLoad(const std::filesystem::path&, const sdv::u8string&) { return 0; }
|
||||
bool ContextUnload(sdv::core::TModuleID, bool) { return false; }
|
||||
|
||||
CNormalTable m_root;
|
||||
bool m_bIsMain = false;
|
||||
bool m_bIsIsolated = false;
|
||||
bool m_bIsMain = false;
|
||||
bool m_bIsIsolated = false;
|
||||
};
|
||||
|
||||
inline CMock& GetMock()
|
||||
|
||||
Reference in New Issue
Block a user