2019-12-12 14:34:09 +00:00
|
|
|
//
|
|
|
|
// Created by Eric Saturn on 2019/12/12.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef NET_ENV_H
|
|
|
|
#define NET_ENV_H
|
|
|
|
|
2020-06-26 12:28:56 +00:00
|
|
|
#include "utils/rsa_key_chain.h"
|
2019-12-12 14:34:09 +00:00
|
|
|
|
|
|
|
class GlobalTestEnv : public testing::Environment{
|
|
|
|
public:
|
|
|
|
unique_ptr<Net::RSAKeyChain> rsa{new Net::RSAKeyChain()};
|
2019-12-12 15:25:55 +00:00
|
|
|
string rsa_test_data = "hello world";
|
|
|
|
string rsa_encrypt_data;
|
2019-12-14 15:23:09 +00:00
|
|
|
shared_ptr<Net::RSAPrvKey> prvKey = nullptr;
|
|
|
|
shared_ptr<Net::RSAPubKey> pubKey = nullptr;
|
2019-12-12 14:34:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //NET_ENV_H
|