mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-10-23 03:28:06 +09:00
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
23 lines
468 B
C++
23 lines
468 B
C++
/**
|
|
* @file tests/tests_environment.h
|
|
* @brief Declarations for SunshineEnvironment.
|
|
*/
|
|
#pragma once
|
|
|
|
// test includes
|
|
#include "tests_common.h"
|
|
|
|
struct SunshineEnvironment: testing::Environment {
|
|
void SetUp() override {
|
|
mail::man = std::make_shared<safe::mail_raw_t>();
|
|
deinit_log = logging::init(0, "test_sunshine.log");
|
|
}
|
|
|
|
void TearDown() override {
|
|
deinit_log = {};
|
|
mail::man = {};
|
|
}
|
|
|
|
std::unique_ptr<logging::deinit_t> deinit_log;
|
|
};
|