Commit a49866e6 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 2

Include the correct headers in various tests

Summary: There are two types of includes this adds. The first are standard library headers that weer previously included by transitive dependencies, but aren't included under MSVC, so need to be explicitly included. The second type is a couple of portability headers.

Reviewed By: yfeldblum

Differential Revision: D3513196

fbshipit-source-id: 4f2ac1207aee887ba41c19f5490003e5fe4088f4
parent 2604541a
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <folly/Conv.h> #include <folly/Conv.h>
...@@ -28,6 +27,7 @@ ...@@ -28,6 +27,7 @@
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/portability/Environment.h> #include <folly/portability/Environment.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
namespace folly { namespace folly {
......
...@@ -23,10 +23,12 @@ ...@@ -23,10 +23,12 @@
#include <system_error> #include <system_error>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <folly/Memory.h>
#include <glog/logging.h> #include <glog/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <folly/Memory.h>
#include <folly/portability/Environment.h>
using namespace folly; using namespace folly;
using namespace folly::test; using namespace folly::test;
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <numeric>
#include <boost/thread/barrier.hpp> #include <boost/thread/barrier.hpp>
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
#include <folly/io/async/test/SocketPair.h> #include <folly/io/async/test/SocketPair.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/portability/Fcntl.h>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <fcntl.h>
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdexcept> #include <stdexcept>
......
...@@ -18,6 +18,8 @@ ...@@ -18,6 +18,8 @@
#include <chrono> #include <chrono>
#include <iostream> #include <iostream>
#include <folly/portability/SysTypes.h>
namespace folly { namespace folly {
class TimePoint { class TimePoint {
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
#include <algorithm>
#include <thread> #include <thread>
#include <gtest/gtest.h> #include <gtest/gtest.h>
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <time.h>
#include <folly/portability/Time.h>
using namespace folly::detail; using namespace folly::detail;
using namespace folly::test; using namespace folly::test;
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <folly/detail/MemoryIdler.h> #include <folly/detail/MemoryIdler.h>
#include <folly/Baton.h> #include <folly/Baton.h>
#include <folly/portability/Windows.h>
#include <memory> #include <memory>
#include <thread> #include <thread>
......
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <pthread.h> #include <pthread.h>
#include <unistd.h>
#include <thread> #include <thread>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <folly/portability/Asm.h> #include <folly/portability/Asm.h>
#include <folly/portability/Unistd.h>
using folly::MSLGuard; using folly::MSLGuard;
using folly::MicroLock; using folly::MicroLock;
......
...@@ -16,9 +16,7 @@ ...@@ -16,9 +16,7 @@
#include <folly/ThreadLocal.h> #include <folly/ThreadLocal.h>
#include <dlfcn.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h>
#include <array> #include <array>
#include <atomic> #include <atomic>
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <folly/stats/TimeseriesHistogram.h> #include <folly/stats/TimeseriesHistogram.h>
#include <folly/stats/TimeseriesHistogram-defs.h> #include <folly/stats/TimeseriesHistogram-defs.h>
#include <random>
#include <gtest/gtest.h> #include <gtest/gtest.h>
using namespace std; using namespace std;
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
#include <folly/stats/MultiLevelTimeSeries.h> #include <folly/stats/MultiLevelTimeSeries.h>
#include <folly/stats/MultiLevelTimeSeries-defs.h> #include <folly/stats/MultiLevelTimeSeries-defs.h>
#include <array>
#include <glog/logging.h> #include <glog/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
......
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