Commit 47de1a56 authored by Orvid King's avatar Orvid King Committed by Facebook GitHub Bot

Remove dependence on common for a test

Summary: Because folly can't depend on common.

Reviewed By: yfeldblum

Differential Revision: D25636772

fbshipit-source-id: d7b049330c9ca68eb4013fde5ca6de9413433823
parent d7c40bc1
...@@ -15,11 +15,9 @@ ...@@ -15,11 +15,9 @@
*/ */
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <folly/experimental/TestUtil.h>
#include <folly/io/async/SSLContext.h> #include <folly/io/async/SSLContext.h>
#include <gtest/gtest.h> #include <folly/portability/GTest.h>
#include "common/files/FileUtil.h"
using namespace facebook::files;
/* /*
* This test is meant to verify that SSLContext correctly sets its minimum * This test is meant to verify that SSLContext correctly sets its minimum
...@@ -44,7 +42,7 @@ const std::string kOpenSSLConf = folly::stripLeftMargin(R"( ...@@ -44,7 +42,7 @@ const std::string kOpenSSLConf = folly::stripLeftMargin(R"(
class SSLContextRegressionTest : public testing::Test { class SSLContextRegressionTest : public testing::Test {
public: public:
void SetUp() override { void SetUp() override {
TemporaryFile confFile(nullptr, "", true); TemporaryFile confFile{};
FileUtil::writeStringToFile(StringPiece(kOpenSSLConf), confFile.filename()); FileUtil::writeStringToFile(StringPiece(kOpenSSLConf), confFile.filename());
// simulate the system environment by loading a config file that should // simulate the system environment by loading a config file that should
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment