NetCpp/test/env.h

20 lines
432 B
C
Raw Permalink Normal View History

2019-12-12 14:34:09 +00:00
//
// Created by Eric Saturn on 2019/12/12.
//
#ifndef NET_ENV_H
#define NET_ENV_H
#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()};
string rsa_test_data = "hello world";
string rsa_encrypt_data;
shared_ptr<Net::RSAPrvKey> prvKey = nullptr;
shared_ptr<Net::RSAPubKey> pubKey = nullptr;
2019-12-12 14:34:09 +00:00
};
#endif //NET_ENV_H