Covellite++  Version: 2.3.0 Revision: ??? Platform: x64 Build: 23:13 04.01.2025
Кроссплатформенный фреймворк для разработки приложений на С++
Загрузка...
Поиск...
Не найдено
mock.hpp
См. документацию.
1
2#pragma once
3#include <memory>
4#include <vector>
5#include <map>
6#include <boost/filesystem.hpp>
7#include <alicorn/std/chrono.mock.hpp>
8#include <alicorn/std/exception.hpp>
9#include <alicorn/std/string.hpp>
10#include <alicorn/platform/app-info.hpp>
11#include <alicorn/platform/environment.mock.hpp>
12#include <alicorn/platform/windows.hpp>
13#include <alicorn/application/current-module.mock.hpp>
14#include <windef.h>
15#include <winuser.h>
16#include <alicorn/logger.mock.hpp>
17#include <alicorn/settings.mock.hpp>
18#include <Platform/Android.mock.hpp>
19
20#include <Covellite/App/Vfs.hpp>
21
22using ::covellite::app::VfsCore_t;
23using ::covellite::app::VfsPtr_t;
24using ::alicorn::extension::std::Singleton;
25
27
28inline /*static*/ VfsPtr_t Singleton<VfsCore_t>::Make(void)
29{
30 using ::alicorn::modules::vfs::FileSystem;
31 using ImplPtr_t = ::std::shared_ptr<::alicorn::modules::vfs::IImplementation>;
32
33 return ::std::make_unique<VfsCore_t>(::std::vector<ImplPtr_t>
34 {
35 // Это позволяет задавать как полный путь, так и путь относительно
36 // папки этого самого файла.
37 ::std::make_shared<FileSystem>(""),
38 ::std::make_shared<FileSystem>(THIS_DIRECTORY / "Test.File"),
39 ::std::make_shared<FileSystem>(THIS_DIRECTORY / "Test.Renderer"),
40 });
41}
42
44
50#include "Mock/Namespaces.hpp"
51
52#include <Covellite/App/Settings.mock.hpp>
53#include <Covellite/Gui/External.hpp>
54#include <Covellite/Gui.inside.mock.hpp>
55
56#include "Mock/Time.hpp"
57#include "Mock/StringTranslator.hpp"
58#include "Mock/CovelliteGuiInterfaces.hpp"
59#include "Mock/SystemToGuiKeyCode.inl"
60#include "Mock/Renderer.hpp"
61
62namespace alicorn::extension::std
63{
64
65using Section_t = alicorn::modules::settings::Section;
66using SectionPtr_t = ::std::unique_ptr<Section_t>;
67
68/*static*/ SectionPtr_t Singleton<Section_t>::Make(void)
69{
70 return ::std::make_unique<Section_t>(uT("Dummy"));
71}
72
73} // namespace alicorn::extension::std