mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
a710558c6b
Contains minimal account creation and login Considerations: - migrated status-go wrapper and login code from the fix/cpp-structure (241eec) - Minimal refactoring and changes at the moment. Expect further refactoring follow up to reach the desired state. - Fix missing keychain initialization - Fix accounts DB initialization call done by startup -> Controller.openedAccounts -> status-go.OpenAccounts calls - Small refactoring and todos for other steps - fix SignalsManager - fix async access to dereferenced status-go memory from SignalsManager - fix SignalsManager not starting when registering - finish dev end to end test for create account and login - small improvements and added TODOs for future work - add onboarding test helpers and start messaging test - Refactoring towards Login UI integration Closes: #5909 Closes: #6028
23 lines
467 B
C++
23 lines
467 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
|
|
#include <string>
|
|
|
|
namespace Status::Testing {
|
|
|
|
class AutoCleanTempTestDir {
|
|
public:
|
|
/// Creates a temporary folder to be used in tests. The folder content's will
|
|
/// be removed when out of scope
|
|
explicit AutoCleanTempTestDir(const std::string& testName, bool createDir = true);
|
|
~AutoCleanTempTestDir();
|
|
|
|
const std::filesystem::path& tempFolder();
|
|
|
|
private:
|
|
const std::filesystem::path m_testFolder;
|
|
};
|
|
|
|
}
|