Use folly/portability/GTest.h in folly/executurs/test/
authorYedidya Feldblum <yfeldblum@fb.com>
Sat, 21 Oct 2017 05:25:03 +0000 (22:25 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 21 Oct 2017 05:40:43 +0000 (22:40 -0700)
Summary:
[Folly] Use `folly/portability/GTest.h` in `folly/executurs/test/`.

Applying the general rule for folly tests to some recently-introduced violations.

Reviewed By: Orvid

Differential Revision: D6113707

fbshipit-source-id: f9a2961ac845489b85b5a539595e4c82df03d922

folly/executors/task_queue/test/UnboundedBlockingQueueTest.cpp
folly/executors/test/AsyncTest.cpp
folly/executors/test/CodelTest.cpp
folly/executors/test/GlobalExecutorTest.cpp
folly/executors/test/SerialExecutorTest.cpp
folly/executors/test/ThreadPoolExecutorTest.cpp
folly/executors/test/ThreadedExecutorTest.cpp

index 06de12ac696371c46465c46e3c618ff8e9ff4168..a7b1efd510efe4fd72fa27d9516c2b6ef0e4f86f 100644 (file)
@@ -15,7 +15,7 @@
  */
 #include <folly/executors/task_queue/UnboundedBlockingQueue.h>
 #include <folly/Baton.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 #include <thread>
 
 using namespace folly;
index 60f913f7ae8cc813bc36222f10a26557d456c811..0622a8a6184b281ae14b5b85901606967cfe2d82 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/executors/Async.h>
 #include <folly/futures/ManualExecutor.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
index 71450011344fcaa972d5ed1b64231cae7c408576..046feee5e410b6330401bb6f6fd98b26b36b5d95 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <folly/executors/Codel.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 #include <chrono>
 #include <thread>
 
index 06484cfc3edbefb90c14e57a726b7c45acbcf14b..a111ee3e8af838ad692500d31da1b3ee79602693 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/executors/GlobalExecutor.h>
 #include <folly/executors/IOExecutor.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
index 1a132ef1a835548670070ef2bc22c44b8604ffe3..285fd74736b825134209743677f22ece4e28dd85 100644 (file)
 
 #include <chrono>
 
-#include <gtest/gtest.h>
-
 #include <folly/Baton.h>
 #include <folly/executors/CPUThreadPoolExecutor.h>
 #include <folly/executors/SerialExecutor.h>
 #include <folly/futures/InlineExecutor.h>
+#include <folly/portability/GTest.h>
 
 using namespace std::chrono;
 using folly::SerialExecutor;
index fd96b9f19952e3e7e0d068b1917d7ef41e04a045..faf9217289af0443814b020891da7820a45250a1 100644 (file)
@@ -22,7 +22,7 @@
 #include <folly/executors/ThreadPoolExecutor.h>
 #include <folly/executors/task_queue/LifoSemMPMCQueue.h>
 #include <folly/executors/thread_factory/PriorityThreadFactory.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace std::chrono;
index 7bdf4c0e15df85cf2846fa2afa408c7baadc9d1f..591be5743cee90c454b2cc76d5dd716afb661ba7 100644 (file)
 
 #include <folly/executors/ThreadedExecutor.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/Conv.h>
 #include <folly/futures/Future.h>
 #include <folly/gen/Base.h>
+#include <folly/portability/GTest.h>
 
 namespace {