Files
flipper/xplat/SonarTestLib/ConnectionContextStoreMock.h
John Knox a480be90a2 Rename facebook::sonar namespace
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/271

Reviewed By: passy

Differential Revision: D9861393

Pulled By: jknoxville

fbshipit-source-id: d65f751c35028748915023f33f273d6ec45863c8
2018-09-18 07:27:28 -07:00

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/";
}
};
}}}