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 06de12a..a7b1efd 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 60f913f..0622a8a 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 7145001..046feee 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 06484cf..a111ee3 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 1a132ef..285fd74 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 fd96b9f..faf9217 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 7bdf4c0..591be57 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 {