Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/271 Reviewed By: passy Differential Revision: D9861393 Pulled By: jknoxville fbshipit-source-id: d65f751c35028748915023f33f273d6ec45863c8
29 lines
677 B
C++
29 lines
677 B
C++
#include <Sonar/ConnectionContextStore.h>
|
|
|
|
namespace facebook {
|
|
namespace flipper {
|
|
namespace test {
|
|
|
|
class ConnectionContextStoreMock : public ConnectionContextStore {
|
|
public:
|
|
ConnectionContextStoreMock() : ConnectionContextStore(DeviceData()) {
|
|
}
|
|
bool hasRequiredFiles() {
|
|
return true;
|
|
}
|
|
std::string createCertificateSigningRequest() {
|
|
return "thisIsACsr";
|
|
}
|
|
std::shared_ptr<SSLContext> getSSLContext() {
|
|
return nullptr;
|
|
}
|
|
dynamic getConnectionConfig() {
|
|
return nullptr;
|
|
}
|
|
std::string getCertificateDirectoryPath() {
|
|
return "/something/sonar/";
|
|
}
|
|
};
|
|
|
|
}}}
|