Use the GTest portability headers v2016.09.12.00 v2016.09.12.01
authorChristopher Dykes <cdykes@fb.com>
Sat, 10 Sep 2016 00:44:01 +0000 (17:44 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 10 Sep 2016 00:56:06 +0000 (17:56 -0700)
Summary:
Switch all of the uses of `<gtest/gtest.h>` to `<folly/portability/GTest.h>`.

This is painful but necessary to get the tests to compile nicely under MSVC.

Reviewed By: yfeldblum

Differential Revision: D3837300

fbshipit-source-id: 7ae43a5d5ba94c8c24fa23a485f18546416e7191

221 files changed:
folly/experimental/bser/test/BserTest.cpp
folly/experimental/exception_tracer/test/ExceptionCounterTest.cpp
folly/experimental/io/test/AsyncIOTest.cpp
folly/experimental/io/test/FsUtilTest.cpp
folly/experimental/observer/test/ObserverTest.cpp
folly/experimental/symbolizer/test/DwarfTests.cpp
folly/experimental/symbolizer/test/ElfTests.cpp
folly/experimental/symbolizer/test/LineReaderTest.cpp
folly/experimental/symbolizer/test/SignalHandlerTest.cpp
folly/experimental/symbolizer/test/StackTraceTest.cpp
folly/experimental/symbolizer/test/SymbolizerTest.cpp
folly/experimental/test/AutoTimerTest.cpp
folly/experimental/test/BitsTest.cpp
folly/experimental/test/CodingTestUtils.h
folly/experimental/test/DynamicParserTest.cpp
folly/experimental/test/EventCountTest.cpp
folly/experimental/test/FunctionSchedulerTest.cpp
folly/experimental/test/FutureDAGTest.cpp
folly/experimental/test/JSONSchemaTest.cpp
folly/experimental/test/LockFreeRingBufferTest.cpp
folly/experimental/test/NestedCommandLineAppTest.cpp
folly/experimental/test/ProgramOptionsTest.cpp
folly/experimental/test/ReadMostlySharedPtrTest.cpp
folly/experimental/test/RefCountTest.cpp
folly/experimental/test/StringKeyedTest.cpp
folly/experimental/test/TestUtilTest.cpp
folly/experimental/test/TupleOpsTest.cpp
folly/fibers/test/FibersTest.cpp
folly/futures/test/BarrierTest.cpp
folly/futures/test/CollectTest.cpp
folly/futures/test/ContextTest.cpp
folly/futures/test/ConversionTest.cpp
folly/futures/test/CoreTest.cpp
folly/futures/test/EnsureTest.cpp
folly/futures/test/ExecutorTest.cpp
folly/futures/test/FSMTest.cpp
folly/futures/test/FilterTest.cpp
folly/futures/test/FutureTest.cpp
folly/futures/test/HeaderCompileTest.cpp
folly/futures/test/InterruptTest.cpp
folly/futures/test/MapTest.cpp
folly/futures/test/NonCopyableLambdaTest.cpp
folly/futures/test/PollTest.cpp
folly/futures/test/PromiseTest.cpp
folly/futures/test/ReduceTest.cpp
folly/futures/test/RetryingTest.cpp
folly/futures/test/SelfDestructTest.cpp
folly/futures/test/SharedPromiseTest.cpp
folly/futures/test/ThenCompileTest.h
folly/futures/test/ThenTest.cpp
folly/futures/test/TimekeeperTest.cpp
folly/futures/test/TimesTest.cpp
folly/futures/test/UnwrapTest.cpp
folly/futures/test/ViaTest.cpp
folly/futures/test/WaitTest.cpp
folly/futures/test/WhenTest.cpp
folly/futures/test/WhileDoTest.cpp
folly/futures/test/WillEqualTest.cpp
folly/futures/test/WindowTest.cpp
folly/gen/test/BaseTest.cpp
folly/gen/test/CombineTest.cpp
folly/gen/test/FileTest.cpp
folly/gen/test/ParallelMapTest.cpp
folly/gen/test/ParallelTest.cpp
folly/gen/test/StringTest.cpp
folly/io/async/ssl/test/SSLErrorsTest.cpp
folly/io/async/test/AsyncPipeTest.cpp
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/io/async/test/AsyncSSLSocketTest.h
folly/io/async/test/AsyncSSLSocketTest2.cpp
folly/io/async/test/AsyncSSLSocketWriteTest.cpp
folly/io/async/test/AsyncSocketExceptionTest.cpp
folly/io/async/test/AsyncSocketTest.cpp
folly/io/async/test/AsyncSocketTest2.cpp
folly/io/async/test/AsyncTimeoutTest.cpp
folly/io/async/test/AsyncTransportTest.cpp
folly/io/async/test/AsyncUDPSocketTest.cpp
folly/io/async/test/DelayedDestructionBaseTest.cpp
folly/io/async/test/DelayedDestructionTest.cpp
folly/io/async/test/EventBaseLocalTest.cpp
folly/io/async/test/EventHandlerTest.cpp
folly/io/async/test/HHWheelTimerSlowTests.cpp
folly/io/async/test/HHWheelTimerTest.cpp
folly/io/async/test/NotificationQueueTest.cpp
folly/io/async/test/RequestContextTest.cpp
folly/io/async/test/ScopedEventBaseThreadTest.cpp
folly/io/async/test/Util.h
folly/io/async/test/WriteChainAsyncTransportWrapperTest.cpp
folly/io/test/CompressionTest.cpp
folly/io/test/IOBufCursorTest.cpp
folly/io/test/IOBufQueueTest.cpp
folly/io/test/IOBufTest.cpp
folly/io/test/RecordIOTest.cpp
folly/io/test/ShutdownSocketSetTest.cpp
folly/portability/test/ConstexprTest.cpp
folly/portability/test/LibgenTest.cpp
folly/portability/test/TimeTest.cpp
folly/ssl/test/OpenSSLHashTest.cpp
folly/test/AHMIntStressTest.cpp
folly/test/ApplyTupleTest.cpp
folly/test/ArenaSmartPtrTest.cpp
folly/test/ArenaTest.cpp
folly/test/ArrayTest.cpp
folly/test/AsciiCaseInsensitiveTest.cpp
folly/test/AtomicBitSetTest.cpp
folly/test/AtomicHashArrayTest.cpp
folly/test/AtomicHashMapTest.cpp
folly/test/AtomicLinkedListTest.cpp
folly/test/AtomicStructTest.cpp
folly/test/AtomicUnorderedMapTest.cpp
folly/test/BatonBenchmark.cpp
folly/test/BatonTest.cpp
folly/test/BatonTestHelpers.h
folly/test/BitIteratorTest.cpp
folly/test/BitsTest.cpp
folly/test/CacheLocalityTest.cpp
folly/test/CachelinePaddedTest.cpp
folly/test/CallOnceTest.cpp
folly/test/ChecksumTest.cpp
folly/test/ClockGettimeWrappersTest.cpp
folly/test/ConcurrentSkipListTest.cpp
folly/test/ContainerTraitsTest.cpp
folly/test/ConvTest.cpp
folly/test/CpuIdTest.cpp
folly/test/DemangleTest.cpp
folly/test/DeterministicScheduleTest.cpp
folly/test/DiscriminatedPtrTest.cpp
folly/test/DynamicConverterTest.cpp
folly/test/DynamicOtherTest.cpp
folly/test/DynamicTest.cpp
folly/test/EndianTest.cpp
folly/test/EnumerateTest.cpp
folly/test/EvictingCacheMapTest.cpp
folly/test/ExceptionTest.cpp
folly/test/ExceptionWrapperTest.cpp
folly/test/ExpectedTest.cpp
folly/test/FBStringTest.cpp
folly/test/FBVectorBenchmark.cpp
folly/test/FBVectorTest.cpp
folly/test/FileLockTest.cpp
folly/test/FileTest.cpp
folly/test/FileUtilTest.cpp
folly/test/FingerprintTest.cpp
folly/test/ForeachBenchmark.cpp
folly/test/ForeachTest.cpp
folly/test/FormatOtherTest.cpp
folly/test/FormatTest.cpp
folly/test/FunctionSchedulerTest.cpp
folly/test/FunctionTest.cpp
folly/test/FutexTest.cpp
folly/test/GroupVarintTest.cpp
folly/test/HasMemberFnTraitsTest.cpp
folly/test/HashTest.cpp
folly/test/HistogramTest.cpp
folly/test/IPAddressTest.cpp
folly/test/IPAddressTest.h
folly/test/IndestructibleTest.cpp
folly/test/IndexedMemPoolTest.cpp
folly/test/JsonOtherTest.cpp
folly/test/JsonTest.cpp
folly/test/LazyTest.cpp
folly/test/LifoSemTests.cpp
folly/test/LockTraitsTest.cpp
folly/test/LoggingTest.cpp
folly/test/MPMCPipelineTest.cpp
folly/test/MPMCQueueTest.cpp
folly/test/MacAddressTest.cpp
folly/test/MallctlHelperTest.cpp
folly/test/MapUtilTest.cpp
folly/test/MathTest.cpp
folly/test/MemcpyTest.cpp
folly/test/MemoryIdlerTest.cpp
folly/test/MemoryMappingTest.cpp
folly/test/MemoryTest.cpp
folly/test/MergeTest.cpp
folly/test/MoveWrapperTest.cpp
folly/test/OptionalTest.cpp
folly/test/PackedSyncPtrTest.cpp
folly/test/PaddedTest.cpp
folly/test/PartialTest.cpp
folly/test/PortabilityTest.cpp
folly/test/ProducerConsumerQueueTest.cpp
folly/test/RWSpinLockTest.cpp
folly/test/RandomTest.cpp
folly/test/RangeTest.cpp
folly/test/SafeAssertTest.cpp
folly/test/ScopeGuardTest.cpp
folly/test/SharedMutexTest.cpp
folly/test/SingletonTest.cpp
folly/test/SingletonTestGlobal.cpp
folly/test/SingletonTestStructs.h
folly/test/SingletonVaultCTest.cpp
folly/test/SmallLocksTest.cpp
folly/test/SocketAddressTest.cpp
folly/test/SparseByteSetTest.cpp
folly/test/SpinLockTest.cpp
folly/test/SpookyHashV1Test.cpp
folly/test/SpookyHashV2Test.cpp
folly/test/StringTest.cpp
folly/test/SubprocessTest.cpp
folly/test/SynchronizedTest.cpp
folly/test/SynchronizedTestLib-inl.h
folly/test/TestUtils.h
folly/test/ThreadCachedArenaTest.cpp
folly/test/ThreadCachedIntTest.cpp
folly/test/ThreadLocalTest.cpp
folly/test/ThreadNameTest.cpp
folly/test/TimeoutQueueTest.cpp
folly/test/TimeseriesHistogramTest.cpp
folly/test/TimeseriesTest.cpp
folly/test/TokenBucketTest.cpp
folly/test/TokenBucketTest.h
folly/test/TraitsTest.cpp
folly/test/TryTest.cpp
folly/test/UnitTest.cpp
folly/test/UriTest.cpp
folly/test/VarintTest.cpp
folly/test/common/TestMain.cpp
folly/test/small_vector_test.cpp
folly/test/sorted_vector_test.cpp
folly/test/stl_tests/StlVectorTest.cpp

index e2672cbefdc92e243b61c496ed445ccd62a7d1cb..8534d5368afd4431dd9faea1f2e524333c00b0a0 100644 (file)
@@ -15,7 +15,7 @@
  */
 #include <folly/experimental/bser/Bser.h>
 #include <folly/String.h>
  */
 #include <folly/experimental/bser/Bser.h>
 #include <folly/String.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::dynamic;
 
 
 using folly::dynamic;
 
index 37d63921f592964dc904c274569685422f994a48..24b413e95d6449ab4e1912752b9cea4fb9a2da89 100644 (file)
@@ -21,9 +21,8 @@
 #include <condition_variable>
 #include <sstream>
 
 #include <condition_variable>
 #include <sstream>
 
-#include <gtest/gtest.h>
-
 #include <folly/experimental/exception_tracer/ExceptionCounterLib.h>
 #include <folly/experimental/exception_tracer/ExceptionCounterLib.h>
+#include <folly/portability/GTest.h>
 
 struct MyException {};
 
 
 struct MyException {};
 
index eae19c1d9d2ae59bdf48d57d592ab41d3d9da761..f7272d479d225c3d7ce580a16998938f456fbd0f 100644 (file)
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/ScopeGuard.h>
 #include <folly/String.h>
 
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/ScopeGuard.h>
 #include <folly/String.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 
 namespace fs = folly::fs;
 #include <folly/portability/Sockets.h>
 
 namespace fs = folly::fs;
index 227898734d7e8dd8e0608061b91da5aff15f2a54..fd23b90d422c6c9c49122d3fc284bcb0e7703729 100644 (file)
@@ -17,7 +17,8 @@
 #include <folly/experimental/io/FsUtil.h>
 
 #include <glog/logging.h>
 #include <folly/experimental/io/FsUtil.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::fs;
 
 using namespace folly;
 using namespace folly::fs;
index 6ace4203ae03973860ab2a46ab02078344e2bded..c2be17b9e0529fe9abb9d059e3c78a7adc119fc8 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <gtest/gtest.h>
 
 #include <thread>
 
 #include <folly/Baton.h>
 #include <folly/experimental/observer/SimpleObservable.h>
 
 #include <thread>
 
 #include <folly/Baton.h>
 #include <folly/experimental/observer/SimpleObservable.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::observer;
 
 
 using namespace folly::observer;
 
index 676bedd09b1b94719772b6512ceb2446249fa196..00834ee59d2a045af666d0dd0c3ffc42e53eb4f1 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/experimental/symbolizer/Dwarf.h>
 
 
 #include <folly/experimental/symbolizer/Dwarf.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::symbolizer::Dwarf;
 
 
 using folly::symbolizer::Dwarf;
 
index 84d526c5679d00d548e1acbdcfbb24ca7e4bdd36..32ef4e0749df55da22d12294a82526278e7dcf13 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/experimental/symbolizer/Elf.h>
 #include <folly/experimental/symbolizer/Elf.h>
+#include <folly/portability/GTest.h>
 
 using folly::symbolizer::ElfFile;
 
 
 using folly::symbolizer::ElfFile;
 
index 61a748b51e1769bec4efb7498334e11c7483cdcc..3e825722f18e673aa340227c0583def6395ea368 100644 (file)
 #include <folly/experimental/symbolizer/LineReader.h>
 
 #include <glog/logging.h>
 #include <folly/experimental/symbolizer/LineReader.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/FileUtil.h>
 #include <folly/experimental/TestUtil.h>
 
 #include <folly/FileUtil.h>
 #include <folly/experimental/TestUtil.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace symbolizer { namespace test {
 
 
 namespace folly { namespace symbolizer { namespace test {
 
index 77b642ca2152ea030e0dd762a901b066971340b9..fa0e4721afa8408a1ff03e6002bae48eae03633f 100644 (file)
 #include <folly/experimental/symbolizer/test/SignalHandlerTest.h>
 #include <folly/experimental/symbolizer/SignalHandler.h>
 
 #include <folly/experimental/symbolizer/test/SignalHandlerTest.h>
 #include <folly/experimental/symbolizer/SignalHandler.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/FileUtil.h>
 #include <folly/Range.h>
 #include <folly/CPortability.h>
 #include <folly/FileUtil.h>
 #include <folly/Range.h>
 #include <folly/CPortability.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace symbolizer { namespace test {
 
 
 namespace folly { namespace symbolizer { namespace test {
 
index 9a58c61b996d901bd8a00e0f31bf1c1d031d6074..c4fe7f754e78c8348063440c79b7385faffe2407 100644 (file)
@@ -18,7 +18,8 @@
 #include <folly/experimental/symbolizer/Symbolizer.h>
 
 #include <glog/logging.h>
 #include <folly/experimental/symbolizer/Symbolizer.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::symbolizer;
 
 using namespace folly;
 using namespace folly::symbolizer;
index efcb4047a28a08e0e7d9436fffc7df9e9217375b..66435cbcd3b5818311b496d89a0a29b085cd0291 100644 (file)
 
 #include <cstdlib>
 
 
 #include <cstdlib>
 
-#include <gtest/gtest.h>
-
 #include <folly/Range.h>
 #include <folly/String.h>
 #include <folly/Range.h>
 #include <folly/String.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace symbolizer { namespace test {
 
 
 namespace folly { namespace symbolizer { namespace test {
 
index de8e3134443e55efefa4ae3368eb2efcabce100b..f4c71c5189294fe2cd87397f18022a02125a0222 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
 #include <folly/experimental/AutoTimer.h>
 
 #include <folly/experimental/AutoTimer.h>
 
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 using namespace std;
 
 using namespace folly;
 using namespace std;
 
index b09a768f5294ac3bccd0b1a492e0a33ee78b3017..58a5a5a7e63f573be834ce6c0c5fc64bb4f0249d 100644 (file)
@@ -17,7 +17,8 @@
 #include <folly/experimental/Bits.h>
 
 #include <glog/logging.h>
 #include <folly/experimental/Bits.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index d16f31e72a60b0b1c81fcaa199c7d5f9beb57065..7789df1414a05c33b1db9dd8ed8216e7e22af56c 100644 (file)
@@ -24,7 +24,8 @@
 #include <vector>
 #include <unordered_set>
 #include <glog/logging.h>
 #include <vector>
 #include <unordered_set>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace compression {
 
 
 namespace folly { namespace compression {
 
index 39bc5752b91757df35c36c4983a0e8fe1b091b7d..38db3030357f9571ea88333eb4b83fc08b78a9c1 100644 (file)
@@ -25,7 +25,7 @@
 #include <folly/Optional.h>
 #include <folly/experimental/DynamicParser.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/Optional.h>
 #include <folly/experimental/DynamicParser.h>
 #include <folly/experimental/TestUtil.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using dynamic = folly::dynamic;
 
 using namespace folly;
 using dynamic = folly::dynamic;
index b5257608c50a8eda3c4c50eece28c3db091d601e..e01fa1f157fe5384b8475b7ab8c985097d9f7d5b 100644 (file)
@@ -22,9 +22,9 @@
 #include <thread>
 #include <vector>
 #include <glog/logging.h>
 #include <thread>
 #include <vector>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Random.h>
 
 #include <folly/Random.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 8e0ea8e1b6fddb3186254155c3f46012bec913c4..e54d1b4abfb9a0a851026c7a6f5eb467304c2920 100644 (file)
@@ -20,7 +20,8 @@
 #include <cassert>
 #include <random>
 #include <folly/Random.h>
 #include <cassert>
 #include <random>
 #include <folly/Random.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using std::chrono::milliseconds;
 
 using namespace folly;
 using std::chrono::milliseconds;
index 1fb947aa86aee35d8da217f1adf478c6d4cc1f6e..c15a8a21e2b502bb82cdd25f26612be2b3cd72f9 100644 (file)
@@ -15,7 +15,7 @@
  */
 #include <boost/thread/barrier.hpp>
 #include <folly/experimental/FutureDAG.h>
  */
 #include <boost/thread/barrier.hpp>
 #include <folly/experimental/FutureDAG.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 84f3fa923562c13da84e05dbf90d335565f8c177..04a7a0955863d47e8dfaf177cb95aca4f199f999 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <folly/experimental/JSONSchema.h>
 #include <folly/json.h>
 
 #include <folly/experimental/JSONSchema.h>
 #include <folly/json.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::dynamic;
 using folly::parseJson;
 
 using folly::dynamic;
 using folly::parseJson;
index 14b373d28f54d390b2f58255705243ab4ee0b0eb..edd666b53f4f5986ae6042ee8e9efc89fd867fe3 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
 #include <iostream>
 #include <thread>
 
 #include <folly/detail/Futex.h>
 #include <folly/experimental/LockFreeRingBuffer.h>
 #include <folly/test/DeterministicSchedule.h>
 #include <iostream>
 #include <thread>
 
 #include <folly/detail/Futex.h>
 #include <folly/experimental/LockFreeRingBuffer.h>
 #include <folly/test/DeterministicSchedule.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index b52ab804a56971c069521ab5a96274a7e9315824..d4b749c0f50972a587cad9499ef906c5f04529ac 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <folly/Subprocess.h>
 #include <folly/experimental/io/FsUtil.h>
 
 #include <folly/Subprocess.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GTest.h>
 #include <glog/logging.h>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index 9dd175c13e75beb9aa7921c563bfb4fef69ead26..c54dd54b0a8bb9630009db80820778b7aa193e0a 100644 (file)
@@ -19,8 +19,8 @@
 #include <folly/FileUtil.h>
 #include <folly/Subprocess.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/FileUtil.h>
 #include <folly/Subprocess.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GTest.h>
 #include <glog/logging.h>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index 4f683586d5acb1a290baf652bf1ee848e0acf85f..ffbe0d45c94218329052df7b05c20aa52597d8b8 100644 (file)
 #include <mutex>
 #include <folly/Memory.h>
 #include <condition_variable>
 #include <mutex>
 #include <folly/Memory.h>
 #include <condition_variable>
-#include <gtest/gtest.h>
 
 #include <folly/Baton.h>
 #include <folly/experimental/RCURefCount.h>
 #include <folly/experimental/ReadMostlySharedPtr.h>
 
 #include <folly/Baton.h>
 #include <folly/experimental/RCURefCount.h>
 #include <folly/experimental/ReadMostlySharedPtr.h>
+#include <folly/portability/GTest.h>
 
 using folly::ReadMostlyMainPtr;
 using folly::ReadMostlyWeakPtr;
 
 using folly::ReadMostlyMainPtr;
 using folly::ReadMostlyWeakPtr;
index a9b08143a9866a72ddb376f8e50eed836c18aa08..440f25ea48d6687a65bb76d62d0a666d5a0bc0c1 100644 (file)
@@ -18,8 +18,7 @@
 #include <folly/Baton.h>
 #include <folly/experimental/RCURefCount.h>
 #include <folly/experimental/TLRefCount.h>
 #include <folly/Baton.h>
 #include <folly/experimental/RCURefCount.h>
 #include <folly/experimental/TLRefCount.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index dd05d0a3e6a89a3a3989e68a41a566181e880417..446e74a392dfe82352fa47f896c70364701294c3 100644 (file)
 #include <string>
 
 #include <glog/logging.h>
 #include <string>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Range.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/Range.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using folly::StringKeyedMap;
 using folly::StringKeyedSetBase;
 
 using folly::StringKeyedMap;
 using folly::StringKeyedSetBase;
index 3110f6fa4bb7ceecd9eae3103129b9da3bbe5199..79046e0736ea126f8b91f4339a4a45ee192ea61e 100644 (file)
 
 #include <boost/algorithm/string.hpp>
 #include <glog/logging.h>
 
 #include <boost/algorithm/string.hpp>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Memory.h>
 #include <folly/portability/Environment.h>
 #include <folly/portability/Fcntl.h>
 
 #include <folly/Memory.h>
 #include <folly/portability/Environment.h>
 #include <folly/portability/Fcntl.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::test;
 
 using namespace folly;
 using namespace folly::test;
index 24df7b21de7853109205fe28091d9aa0f0888ce1..80071eaaa5cc21ba3ef4996412147c0891d11858 100644 (file)
@@ -17,8 +17,9 @@
 #include <folly/experimental/TupleOps.h>
 
 #include <folly/Conv.h>
 #include <folly/experimental/TupleOps.h>
 
 #include <folly/Conv.h>
+#include <folly/portability/GTest.h>
+
 #include <glog/logging.h>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index bbb5ddcfdaec149426ec1658dd4370f72faa25c3..2a05fd4b8b5fb28677afbdcd75cb8952ef7dc495 100644 (file)
@@ -17,8 +17,6 @@
 #include <thread>
 #include <vector>
 
 #include <thread>
 #include <vector>
 
-#include <gtest/gtest.h>
-
 #include <folly/Memory.h>
 #include <folly/futures/Future.h>
 
 #include <folly/Memory.h>
 #include <folly/futures/Future.h>
 
@@ -30,6 +28,7 @@
 #include <folly/fibers/Semaphore.h>
 #include <folly/fibers/SimpleLoopController.h>
 #include <folly/fibers/WhenN.h>
 #include <folly/fibers/Semaphore.h>
 #include <folly/fibers/SimpleLoopController.h>
 #include <folly/fibers/WhenN.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::fibers;
 
 
 using namespace folly::fibers;
 
index 47a3e3d9e0901c3b23bf6c4306a9816defcfc450..8e4f7896acb6330c9f5987539d03960d3b1f759a 100644 (file)
@@ -21,8 +21,9 @@
 #include <mutex>
 
 #include <folly/Random.h>
 #include <mutex>
 
 #include <folly/Random.h>
+#include <folly/portability/GTest.h>
+
 #include <glog/logging.h>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace futures { namespace test {
 
 
 namespace folly { namespace futures { namespace test {
 
index 673161aa5c8a2dcd09812f0524ee0c498ca575b2..f7cb1b921b698caa90b32b6cd9d277502136c463 100644 (file)
@@ -14,8 +14,6 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <numeric>
 
 #include <boost/thread/barrier.hpp>
 #include <numeric>
 
 #include <boost/thread/barrier.hpp>
@@ -23,6 +21,7 @@
 #include <folly/futures/Future.h>
 #include <folly/Random.h>
 #include <folly/small_vector.h>
 #include <folly/futures/Future.h>
 #include <folly/Random.h>
 #include <folly/small_vector.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index e5946b2657218ace5e8dffd880ec73510c2b6498..0451a80d69e394725a7a31374e0d40dd59c0dab4 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 53b15b1b899877e5b166bb8bc7073c8b268d12aa..e300c4e87a71ddcb4cd299cf6a99a0ab99b7fe39 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
+
 #include <type_traits>
 
 using namespace folly;
 #include <type_traits>
 
 using namespace folly;
index c65a76d0564280020a4838212c0f0a71831319dc..7d2dc1b3f2aba89651c861139060f301db04b01b 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/detail/Core.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/detail/Core.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 62122027d93a78945de03a1d52334c458704c022..925f96f4fe0e9a49f6aa0c7bf753fc61f2e2d7c5 100644 (file)
@@ -17,9 +17,8 @@
 #include <memory>
 #include <unordered_set>
 
 #include <memory>
 #include <unordered_set>
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index b11a8a6c6dfa624b0442b603d03307839e392ffd..9730ef4326c41760c8fcac91096d709da083ae1e 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
 #include <folly/futures/QueuedImmediateExecutor.h>
 #include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
 #include <folly/futures/QueuedImmediateExecutor.h>
 #include <folly/Baton.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 1dd4f6bbfce83af08265816af85b64232139c9be..6f315dd07afb418e43dce9dba0396776a81c0eda 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/detail/FSM.h>
 #include <folly/futures/detail/FSM.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::detail;
 
 
 using namespace folly::detail;
 
index 9159587d837173361f41238b61d5a53ffe225500..a8baf5656ce844889a2526267e3e57d335577c36 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index a025dba9771b70c2609bc37143b94f4f60fa90c3..8a66184af8e5dceec1417c8eac57244ab9104f31 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/Unit.h>
 #include <folly/Memory.h>
 #include <folly/Executor.h>
 #include <folly/dynamic.h>
 #include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/Unit.h>
 #include <folly/Memory.h>
 #include <folly/Executor.h>
 #include <folly/dynamic.h>
 #include <folly/Baton.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 #include <algorithm>
 #include <folly/portability/Unistd.h>
 
 #include <algorithm>
index ae2e5dedc02b7f52086d122928c81075e6325633..f2fe83640ab5264d4625a7338a1f2bb295cdd97a 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 // amazing what things can go wrong if you include things in an unexpected
 // order.
 #include <folly/Try.h>
 #include <folly/futures/Promise.h>
 #include <folly/futures/Future.h>
 // amazing what things can go wrong if you include things in an unexpected
 // order.
 #include <folly/Try.h>
 #include <folly/futures/Promise.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 TEST(Basic, compiles) {
   EXPECT_TRUE(true);
 
 TEST(Basic, compiles) {
   EXPECT_TRUE(true);
index 16a8e082dacb044a58c7029c98cf67561a554856..5c599b0ad9b56482fe5a72e1d919913cdaf4fc56 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
 #include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
 #include <folly/Baton.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 743a082a2b752a7153d82961070c8263abb6399e..e972deda507471210c84afa8204cdd797480a21a 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 73bc6dc776d64eb53cb8014d9913ecce25af0cfb..b499400ac50268b8d7503e697000bfbb22c4d648 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index ae82fed96fdb963affbc50ae93c5db1cd62fae08..c518d4534b5d32d12ad7b7d254c41ae8c11e8566 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 126518c0fc54082f3c7b3bab73be931df637b4b8..89431a282b4f80de7da9e2633821cd0f6acc2571 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using std::unique_ptr;
 
 using namespace folly;
 using std::unique_ptr;
index bf613ef6123db8e4d01bac0162c02600ad1d56ca..c5462dda4aaf16b346202aa379954c5865571d20 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index a57507cd5519d459d473521cfe0aa4dc91fbbf9d..6988e5dff1bb7c40973f5279a302eceba12576c7 100644 (file)
 #include <atomic>
 #include <exception>
 #include <vector>
 #include <atomic>
 #include <exception>
 #include <vector>
+
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 
 using namespace std;
 using namespace std::chrono;
 
 using namespace std;
 using namespace std::chrono;
index 68a75d09967bca243904620c71caa694844a01f6..4638eaee941c7e6d881e4ec52c34488b11cef7e0 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index b75e9f08f3f0745b606a3383b3202fdf8cda2711..36b5169b5bbd3b1ed66de6fb36ac02af60e7496b 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/SharedPromise.h>
 #include <folly/futures/SharedPromise.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 75eb26bd4a940239d2fc85db01e35eaa35abdd5f..2769ced63507de6c8898c3de8fa100472eeb7709 100644 (file)
@@ -16,9 +16,8 @@
 
 #pragma once
 
 
 #pragma once
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 #include <memory>
 
 
 #include <memory>
 
index 4ba5398886d0b2d08249ae8e079dddaf432cfa2a..11f59b01fb79771e0a2e1a018e601bc4aa364956 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 #include <thread>
 
 
 #include <thread>
 
index c20668c08a5ea444bc287622141f54c5c75b13ef..676d635124b73920fb16d9693b7e1b07e5a72d3b 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Timekeeper.h>
 #include <folly/futures/Timekeeper.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
index 84549c1e21056b64d2c282fe00a924d99d0a3ea2..8354ef9ab3b83563c8b91be1fab7de03c17a1c42 100644 (file)
 #include <mutex>
 #include <queue>
 
 #include <mutex>
 #include <queue>
 
-#include <gtest/gtest.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index be259f81692f9b440c93926d8483739afa0a8b7b..521b29645f45c72bdcd06f196fa976fa566382b0 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index c864b9027c2bd9944fc3090f84856dba2c22214e..765fdf6c74010f9b62127ab8bd5505f3b57c0a2e 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
 #include <folly/futures/DrivableExecutor.h>
 #include <folly/Baton.h>
 #include <folly/MPMCQueue.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
 #include <folly/futures/DrivableExecutor.h>
 #include <folly/Baton.h>
 #include <folly/MPMCQueue.h>
+#include <folly/portability/GTest.h>
 
 #include <thread>
 
 
 #include <thread>
 
index 816f48fecfee2927b4389258a556c03affaabf8a..380c13010b58d307c23bff5bf660a4e43e7a4feb 100644 (file)
 
 #include <queue>
 
 
 #include <queue>
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/Baton.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using std::vector;
 
 using namespace folly;
 using std::vector;
index bd8e076aa392d492fb103309f98ac15c038d3388..3563c428eb3c762882b66504678ae2511292d4af 100644 (file)
 #include <memory>
 #include <mutex>
 
 #include <memory>
 #include <mutex>
 
-#include <gtest/gtest.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 3c3fcc29475956e41f58924aa646c38fbb8d1054..15fdfbf3371f0099174b71c04ca873178f7e4523 100644 (file)
 #include <mutex>
 #include <queue>
 
 #include <mutex>
 #include <queue>
 
-#include <gtest/gtest.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
 #include <glog/logging.h>
 
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index a560ab56961f0aa32a536d872cf4e1f8724b5ef8..315210e50fdd46e37d70bcd1faf9eeb936675bcf 100644 (file)
@@ -14,9 +14,8 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/futures/Future.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 6eecedc199ef544d90155c475b04f447acb91ecf..f614c5fbe651e631e4acff01bf1fd4b9bf36475c 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <boost/thread/barrier.hpp>
 
 #include <folly/Conv.h>
 #include <folly/futures/Future.h>
 #include <boost/thread/barrier.hpp>
 
 #include <folly/Conv.h>
 #include <folly/futures/Future.h>
+#include <folly/portability/GTest.h>
 
 #include <vector>
 
 
 #include <vector>
 
index 66b987e445d0c9fb65960db9037f10996121181d..f779c4acb479e54c9d5cc483d07dedf23b5bd897 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <glog/logging.h>
  */
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
 #include <iosfwd>
 #include <random>
 #include <set>
 #include <iosfwd>
 #include <random>
 #include <set>
@@ -28,6 +28,7 @@
 #include <folly/dynamic.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
 #include <folly/dynamic.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::gen;
 using namespace folly;
 
 using namespace folly::gen;
 using namespace folly;
index b98bdf0cc7dd8c751d9246f17200ac2edbc4113a..3b89946e13274dc16f65f146d91b51c6a7e8770a 100644 (file)
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <gtest/gtest.h>
 #include <string>
 #include <vector>
 #include <tuple>
 #include <string>
 #include <vector>
 #include <tuple>
@@ -23,6 +22,7 @@
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/Combine.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/Combine.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::gen;
 using namespace folly;
 
 using namespace folly::gen;
 using namespace folly;
index a62f2edfdbc10e59818b4ed4c757e160ac612775..00c5635dc9e93da9e03e189a759346a41fb01b17 100644 (file)
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <gtest/gtest.h>
 #include <string>
 #include <vector>
 
 #include <string>
 #include <vector>
 
@@ -22,6 +21,7 @@
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/File.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/File.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::gen;
 using namespace folly;
 
 using namespace folly::gen;
 using namespace folly;
index 954a9f327248570878ba0dde3f7c38e623d014c7..503b027f0d153fce3c80f9765388d57539772625 100644 (file)
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Memory.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/ParallelMap.h>
 
 #include <folly/Memory.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/ParallelMap.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::gen;
 
 using namespace folly;
 using namespace folly::gen;
index ad4f60850cbccc9c4916ef5ff423d8314787b4a5..995eab0fef02c21049b514ee38460ccc19f4b1ea 100644 (file)
  */
 
 #include <glog/logging.h>
  */
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
 #include <iostream>
 #include <array>
 #include <vector>
 #include <iostream>
 #include <array>
 #include <vector>
+
 #include <folly/gen/Base.h>
 #include <folly/gen/Parallel.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/Parallel.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::gen;
 
 using namespace folly;
 using namespace folly::gen;
index 65c79462013ec9053bbe8381f118bc1e5dc1221b..11f34b05f07d833eb377ce2e79a8e5e1e76117eb 100644 (file)
  */
 
 #include <glog/logging.h>
  */
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
 #include <iosfwd>
 #include <map>
 #include <vector>
 
 #include <folly/gen/String.h>
 #include <iosfwd>
 #include <map>
 #include <vector>
 
 #include <folly/gen/String.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::gen;
 using namespace folly;
 
 using namespace folly::gen;
 using namespace folly;
index f651aceaaaf50bf6f521e5e51c40efeb512074ba..6643cf2e6883859e6634432f0aab5281f8c28465 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <folly/io/async/ssl/SSLErrors.h>
 
 
 #include <folly/io/async/ssl/SSLErrors.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
+
 #include <openssl/err.h>
 #include <openssl/x509.h>
 
 #include <openssl/err.h>
 #include <openssl/x509.h>
 
index 2a9c426f7cbb5eaf964c49a654fa21663c9d5d7e..81569dc5a137cfe1529a702d9e6c477e31dafcae 100644 (file)
@@ -17,7 +17,7 @@
 #include <folly/io/async/AsyncPipe.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/Memory.h>
 #include <folly/io/async/AsyncPipe.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/Memory.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 #include <fcntl.h>
 
 
 #include <fcntl.h>
 
index e5dbed11e1ff90bc2c49e710c07a9c9dbd76c2da..0920122930bbf15557ac6850bef01a41a95419fb 100644 (file)
@@ -22,6 +22,7 @@
 #include <folly/io/async/AsyncSSLSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
 #include <folly/io/async/AsyncSSLSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 
@@ -29,7 +30,6 @@
 
 #include <fcntl.h>
 #include <folly/io/Cursor.h>
 
 #include <fcntl.h>
 #include <folly/io/Cursor.h>
-#include <gtest/gtest.h>
 #include <openssl/bio.h>
 #include <sys/types.h>
 #include <fstream>
 #include <openssl/bio.h>
 #include <sys/types.h>
 #include <fstream>
index d9618098f3c4c54d417360809908cad76634505f..7ae4aeb5b0449b06a1e26ad64591904297a7fe76 100644 (file)
 #include <folly/io/async/AsyncTransport.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/ssl/SSLErrors.h>
 #include <folly/io/async/AsyncTransport.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/ssl/SSLErrors.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 
 #include <fcntl.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 
 #include <fcntl.h>
-#include <gtest/gtest.h>
 #include <sys/types.h>
 #include <condition_variable>
 #include <iostream>
 #include <sys/types.h>
 #include <condition_variable>
 #include <iostream>
index e39f3b73585cd588eeea1b9b510ef77356349ab6..e33df0a127550dae7a6a91c7ab52faaf415d717e 100644 (file)
  */
 #include <folly/io/async/test/AsyncSSLSocketTest.h>
 
  */
 #include <folly/io/async/test/AsyncSSLSocketTest.h>
 
-#include <gtest/gtest.h>
 #include <pthread.h>
 
 #include <folly/io/async/AsyncSSLSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/SSLContext.h>
 #include <pthread.h>
 
 #include <folly/io/async/AsyncSSLSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/SSLContext.h>
+#include <folly/portability/GTest.h>
 
 using std::string;
 using std::vector;
 
 using std::string;
 using std::vector;
index 13270a69ab44533b81ed4eec749f912613c3bd5b..9b67ba3ce8fd98b54921e12be7e2090dffc26f2f 100644 (file)
@@ -19,8 +19,8 @@
 #include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
 #include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <string>
 #include <vector>
 
 #include <string>
 #include <vector>
 
index 50c665990ec889fd9248e0f31c3268ddbeb51555..d3c25d1af96fba7ee50b1053080bddfe9c075af0 100644 (file)
@@ -17,7 +17,8 @@
 
 #include <folly/io/async/AsyncSocketException.h>
 #include <folly/io/async/ssl/SSLErrors.h>
 
 #include <folly/io/async/AsyncSocketException.h>
 #include <folly/io/async/ssl/SSLErrors.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
+
 #include <openssl/ssl.h>
 
 using namespace testing;
 #include <openssl/ssl.h>
 
 using namespace testing;
index bd348bd9c446a28b7f6829d7da0b0e74b862c662..261f6f2e549e9bfc4690824a4d5bb23a85567fda 100644 (file)
@@ -18,8 +18,7 @@
 #include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/AsyncServerSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/AsyncServerSocket.h>
 #include <folly/io/async/EventBase.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index bc27b24141f9f9716032c97830f53426014bf80e..afd4f9e0b3628119f6d228483a184ae7d2a0797e 100644 (file)
 #include <folly/io/async/test/AsyncSocketTest.h>
 #include <folly/io/async/test/Util.h>
 #include <folly/portability/GMock.h>
 #include <folly/io/async/test/AsyncSocketTest.h>
 #include <folly/io/async/test/Util.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 #include <folly/test/SocketAddressTestHelper.h>
 
 #include <boost/scoped_array.hpp>
 #include <fcntl.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
 #include <folly/test/SocketAddressTestHelper.h>
 
 #include <boost/scoped_array.hpp>
 #include <fcntl.h>
-#include <gtest/gtest.h>
 #include <sys/types.h>
 #include <iostream>
 #include <thread>
 #include <sys/types.h>
 #include <iostream>
 #include <thread>
index 18592b788e94913981f062e24a7861d280476360..463fb3ab018245e5de1b9e87556b96807e9d6e57 100644 (file)
@@ -16,8 +16,7 @@
 
 #include <folly/io/async/AsyncTimeout.h>
 #include <folly/io/async/EventBase.h>
 
 #include <folly/io/async/AsyncTimeout.h>
 #include <folly/io/async/EventBase.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index 8a7f525ba6d528a8616bb445545612d5fc8f95b2..815ba7f2f13041717825dc0694b1e90ddf962b8a 100644 (file)
@@ -17,8 +17,7 @@
 #include <folly/io/async/AsyncSocket.h>
 
 #include <folly/io/async/test/MockAsyncTransport.h>
 #include <folly/io/async/AsyncSocket.h>
 
 #include <folly/io/async/test/MockAsyncTransport.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace testing;
 
 
 using namespace testing;
 
index 27ac844b047c655ef719e16dd6bace02e5da2b8e..acaf76b47cb2bb97e69a69d55a0decb58b05659b 100644 (file)
 #include <boost/thread/barrier.hpp>
 
 #include <folly/io/IOBuf.h>
 #include <boost/thread/barrier.hpp>
 
 #include <folly/io/IOBuf.h>
+#include <folly/portability/GTest.h>
 
 #include <thread>
 
 
 #include <thread>
 
-#include <gtest/gtest.h>
-
 using folly::AsyncUDPSocket;
 using folly::AsyncUDPServerSocket;
 using folly::AsyncTimeout;
 using folly::AsyncUDPSocket;
 using folly::AsyncUDPServerSocket;
 using folly::AsyncTimeout;
index 1d7ab3fc20129d14108df8192fd50da225f386b2..580b2e52571ece1576b0591665f34daf22177bc7 100644 (file)
 #include <folly/io/async/DelayedDestructionBase.h>
 
 #include <functional>
 #include <folly/io/async/DelayedDestructionBase.h>
 
 #include <functional>
-#include <gtest/gtest.h>
 #include <list>
 #include <vector>
 
 #include <list>
 #include <vector>
 
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 
 class DestructionOnCallback : public DelayedDestructionBase {
 using namespace folly;
 
 class DestructionOnCallback : public DelayedDestructionBase {
index e4a3e1bb073259de0ceda6fb4e99f9d2d0ba622e..d7836b9e781e6f57e1c9d0e1b0bb5b33f1eee0dd 100644 (file)
@@ -15,7 +15,7 @@
  */
 #include <folly/io/async/DelayedDestruction.h>
 
  */
 #include <folly/io/async/DelayedDestruction.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 4d570ad0dd3767011d3dc71f2b6c20967f428b2f..50b5ecd83f1b11f00131be7e53436bee5308369c 100644 (file)
@@ -34,7 +34,7 @@
 
 #include <folly/io/async/EventBaseLocal.h>
 #include <folly/io/async/test/Util.h>
 
 #include <folly/io/async/EventBaseLocal.h>
 #include <folly/io/async/test/Util.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 struct Foo {
   Foo(int n, std::function<void()> dtorFn):
 
 struct Foo {
   Foo(int n, std::function<void()> dtorFn):
index 255f2140183845862972d1b9eae2e8d1cfd2af91..0c3e80c8926f06a5264fcfdcefdce34b0ba45400 100644 (file)
@@ -23,8 +23,8 @@
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/EventHandler.h>
 #include <folly/portability/GMock.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/EventHandler.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Sockets.h>
-#include <gtest/gtest.h>
 #include <sys/eventfd.h>
 
 using namespace std;
 #include <sys/eventfd.h>
 
 using namespace std;
index 20a40cf65a6093e649cb78e23b9e732e3b03b4da..3c412fb092f5b1798e0a24b59a5419f340448800 100644 (file)
@@ -18,8 +18,8 @@
 #include <folly/io/async/HHWheelTimer.h>
 #include <folly/io/async/test/UndelayedDestruction.h>
 #include <folly/io/async/test/Util.h>
 #include <folly/io/async/HHWheelTimer.h>
 #include <folly/io/async/test/UndelayedDestruction.h>
 #include <folly/io/async/test/Util.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <thread>
 #include <vector>
 
 #include <thread>
 #include <vector>
 
index 0ee82125e22fe7d1cbc18a7ea7fa330a4441d993..d265f34ff582638dbae991658aa9b299c60025aa 100644 (file)
@@ -20,8 +20,8 @@
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/test/UndelayedDestruction.h>
 #include <folly/io/async/test/Util.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/test/UndelayedDestruction.h>
 #include <folly/io/async/test/Util.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <vector>
 
 using namespace folly;
 #include <vector>
 
 using namespace folly;
index c24e6842d2debf3f389b4a76cd44731a3d796718..bd7a54a45cc8f199317aff723885b8a165316260 100644 (file)
@@ -18,6 +18,8 @@
 #include <folly/io/async/ScopedEventBaseThread.h>
 
 #include <folly/Baton.h>
 #include <folly/io/async/ScopedEventBaseThread.h>
 
 #include <folly/Baton.h>
+#include <folly/portability/GTest.h>
+
 #include <list>
 #include <iostream>
 #include <thread>
 #include <list>
 #include <iostream>
 #include <thread>
@@ -27,8 +29,6 @@
 #include <sys/wait.h>
 #endif
 
 #include <sys/wait.h>
 #endif
 
-#include <gtest/gtest.h>
-
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
 
index 1f5c5e61f671c76035e34e2bfa5bbdbbb060464d..0ca773c3caeb33126e779aaff5577dfdea05196f 100644 (file)
  * specific language governing permissions and limitations
  * under the License.
  */
  * specific language governing permissions and limitations
  * under the License.
  */
-#include <gtest/gtest.h>
 #include <thread>
 
 #include <folly/Memory.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/Request.h>
 #include <thread>
 
 #include <folly/Memory.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/io/async/Request.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 81589cb7e442bdb199c9293f84c615bb27c407bb..9d92ea838a25443f4314c030a1f484be85b28a30 100644 (file)
@@ -18,8 +18,7 @@
 
 #include <chrono>
 #include <folly/Baton.h>
 
 #include <chrono>
 #include <folly/Baton.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace std::chrono;
 
 using namespace std;
 using namespace std::chrono;
index 8f54274de4e4007ae7e9602211bf4f227b661519..02d0670f5eb79f436c4977cd62d10a0c07391dd9 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <folly/io/async/test/TimeUtil.h>
 #include <folly/test/TestUtils.h>
 
 #include <folly/io/async/test/TimeUtil.h>
 #include <folly/test/TestUtils.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 /**
  * Check how long a timeout took to fire.
 
 /**
  * Check how long a timeout took to fire.
index 0baac5186781611b2346ff3c67f17b0f9da5cc00..e75a9318308afc9a58d1789f8f37637246e0a311 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include <gtest/gtest.h>
 
 #include <folly/io/async/AsyncTransport.h>
 #include <folly/io/async/WriteChainAsyncTransportWrapper.h>
 #include <folly/portability/GMock.h>
 
 #include <folly/io/async/AsyncTransport.h>
 #include <folly/io/async/WriteChainAsyncTransportWrapper.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 
 using namespace testing;
 using testing::_;
 
 using namespace testing;
 using testing::_;
index d0d35af28a2de03ff9457cbf684baca29aef07e5..7de76177e9f4fe95218ecbd86d42300fef6c547f 100644 (file)
 
 #include <boost/noncopyable.hpp>
 #include <glog/logging.h>
 
 #include <boost/noncopyable.hpp>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/Random.h>
 #include <folly/Varint.h>
 #include <folly/io/IOBufQueue.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/Random.h>
 #include <folly/Varint.h>
 #include <folly/io/IOBufQueue.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace io { namespace test {
 
 
 namespace folly { namespace io { namespace test {
 
index 08cb23d44eba9fabe18a31ec90dcdccc09f486a9..5c607ad20a93497ba9f453b09ecdd91260c07e3d 100644 (file)
@@ -19,8 +19,7 @@
 #include <folly/Format.h>
 #include <folly/Range.h>
 #include <folly/io/Cursor.h>
 #include <folly/Format.h>
 #include <folly/Range.h>
 #include <folly/io/Cursor.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::ByteRange;
 using folly::format;
 
 using folly::ByteRange;
 using folly::format;
index 26062185da1f8a3e71445e415f5583ee9817bf7e..737c4bf4109d1913571bd0c39093b3c63947924f 100644 (file)
@@ -20,9 +20,8 @@
 #include <stdexcept>
 #include <string.h>
 
 #include <stdexcept>
 #include <string.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/Range.h>
 #include <folly/Range.h>
+#include <folly/portability/GTest.h>
 
 using folly::IOBuf;
 using folly::IOBufQueue;
 
 using folly::IOBuf;
 using folly::IOBufQueue;
index c012debdf16037416806b0cd2fb69c67fe614386..a615496c1d8e9a9abaedb5fde82d3a2cba23d374 100644 (file)
 #include <cstddef>
 
 #include <boost/random.hpp>
 #include <cstddef>
 
 #include <boost/random.hpp>
-#include <gtest/gtest.h>
 
 #include <folly/Malloc.h>
 #include <folly/Range.h>
 
 #include <folly/Malloc.h>
 #include <folly/Range.h>
+#include <folly/portability/GTest.h>
 
 using folly::fbstring;
 using folly::fbvector;
 
 using folly::fbstring;
 using folly::fbvector;
index 9154b8ac9111880d7d323a4d0b646199ea34b631..79985b5b92ee3b9f34ae6c97559f09783e90334b 100644 (file)
@@ -21,7 +21,6 @@
 #include <random>
 
 #include <glog/logging.h>
 #include <random>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Conv.h>
 #include <folly/FBString.h>
 
 #include <folly/Conv.h>
 #include <folly/FBString.h>
@@ -29,6 +28,7 @@
 #include <folly/experimental/TestUtil.h>
 #include <folly/io/IOBufQueue.h>
 #include <folly/portability/GFlags.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/io/IOBufQueue.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 DEFINE_int32(random_seed, folly::randomNumberSeed(), "random seed");
 #include <folly/portability/Unistd.h>
 
 DEFINE_int32(random_seed, folly::randomNumberSeed(), "random seed");
index 0b1e1443e253c7d999f154f1a2efce3382106c4b..1ddebdb8c3b72ccb7f0064663633d005f124f68d 100644 (file)
@@ -20,8 +20,8 @@
 #include <thread>
 
 #include <glog/logging.h>
 #include <thread>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 
 using folly::ShutdownSocketSet;
 #include <folly/portability/Sockets.h>
 
 using folly::ShutdownSocketSet;
index 1bf74382cdc1623fcff246495bdfe602a342bf39..37f5132cc68ed4e91dcf3d891f8a47dadd21afe3 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/portability/Constexpr.h>
 
 
 #include <folly/portability/Constexpr.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace {
 
 
 namespace {
 
index 9d258a58e27e88a59083b85e3551d6218b986a62..737f1bf29a681ff7343252a9b2ff0d80cfe1d3ac 100755 (executable)
@@ -16,8 +16,7 @@
 
 #include <string>
 
 
 #include <string>
 
-#include <gtest/gtest.h>
-
+#include <folly/portability/GTest.h>
 #include <folly/portability/Libgen.h>
 
 TEST(Libgen, dirname) {
 #include <folly/portability/Libgen.h>
 
 TEST(Libgen, dirname) {
index 83ecc0c23a6c1db3baeb2e6b62353e1e5662574e..0df8f2b9ce4b55cd1a467b6ea662bfc36c2198d1 100644 (file)
 #include <folly/portability/Time.h>
 
 #include <folly/test/TestUtils.h>
 #include <folly/portability/Time.h>
 
 #include <folly/test/TestUtils.h>
+#include <folly/portability/GTest.h>
 
 #include <chrono>
 
 
 #include <chrono>
 
-#include <gtest/gtest.h>
-
 static constexpr auto kAcceptableDeltaSecs = std::chrono::seconds(120);
 
 using folly::test::AreWithinSecs;
 static constexpr auto kAcceptableDeltaSecs = std::chrono::seconds(120);
 
 using folly::test::AreWithinSecs;
index 129cf406bef149a65a047a09d182fa0a464588f9..1e2c9e6a5299368265913b22cfa241d1ae9e3811 100644 (file)
@@ -16,9 +16,8 @@
 
 #include <folly/ssl/OpenSSLHash.h>
 
 
 #include <folly/ssl/OpenSSLHash.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/io/IOBufQueue.h>
 #include <folly/io/IOBufQueue.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 7fc6251c4129debc84857605726b99c15a0bcbb7..dbe7d953829c745f422c511b73136e866689f9c6 100644 (file)
@@ -14,8 +14,6 @@
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <thread>
 #include <memory>
 #include <mutex>
 #include <thread>
 #include <memory>
 #include <mutex>
@@ -23,6 +21,7 @@
 #include <folly/AtomicHashMap.h>
 #include <folly/ScopeGuard.h>
 #include <folly/Memory.h>
 #include <folly/AtomicHashMap.h>
 #include <folly/ScopeGuard.h>
 #include <folly/Memory.h>
+#include <folly/portability/GTest.h>
 
 namespace {
 
 
 namespace {
 
index e29c9914759c5dbc2d29d25604448e8331e9180b..8aff7d07b11dd7eb056d585e77da17b850cb43f6 100644 (file)
@@ -17,7 +17,7 @@
 #include <iostream>
 
 #include <folly/ApplyTuple.h>
 #include <iostream>
 
 #include <folly/ApplyTuple.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 #include <array>
 #include <memory>
 
 #include <array>
 #include <memory>
index e49d270922e028045c08fbe6e5afac3a90e17008..1ac482de87555d7ca82ba7979899730fc2451835 100644 (file)
@@ -20,8 +20,7 @@
 
 #include <folly/Memory.h>
 #include <folly/Arena.h>
 
 #include <folly/Memory.h>
 #include <folly/Arena.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 93d74e8701f5ff1363176aaf3b9f5049b39e2b85..b754f970eec3183ae7716cd7166f57cdd21f4ee7 100644 (file)
 
 #include <folly/Arena.h>
 #include <folly/Memory.h>
 
 #include <folly/Arena.h>
 #include <folly/Memory.h>
+#include <folly/portability/GTest.h>
 
 #include <set>
 #include <vector>
 
 #include <glog/logging.h>
 
 #include <set>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 2bfc73a8f51a55a4b237e8e413f49c72a344eb14..c50270dff2e1c93b71e00a11ea59ff151a7d07ef 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 #include <folly/Array.h>
  * limitations under the License.
  */
 #include <folly/Array.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 #include <string>
 
 using namespace std;
 #include <string>
 
 using namespace std;
index ec7f078fde40be1ec384b8913c3c7c90316c9a8f..86ebd7bc979b1c31cb6e5ff2b5947a55bb0b6aca 100644 (file)
@@ -17,7 +17,7 @@
 #include <folly/Range.h>
 
 #include <folly/portability/GFlags.h>
 #include <folly/Range.h>
 
 #include <folly/portability/GFlags.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 #include <algorithm>
 
 using namespace std;
 #include <algorithm>
 
 using namespace std;
index 3823ad2bb5bed20dfaaf3da897f5c190daf56d46..57c50beb8023ad18afe39027f782f879e4622347 100644 (file)
@@ -16,8 +16,9 @@
 
 #include <folly/AtomicBitSet.h>
 
 
 #include <folly/AtomicBitSet.h>
 
+#include <folly/portability/GTest.h>
+
 #include <glog/logging.h>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index 9e53635e09d17adc0346b5dbc20809925f2ba78e..b6b9e9a5ebd132e6df66974a22aae07c8d44f693 100644 (file)
@@ -23,7 +23,7 @@
 #include <folly/Hash.h>
 #include <folly/Memory.h>
 #include <folly/portability/SysMman.h>
 #include <folly/Hash.h>
 #include <folly/Memory.h>
 #include <folly/portability/SysMman.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 32ad64d0b2e92425ab08898c75864f61ed77c4cf..c39553952cb27b6cc7bbda1b79ffa07749a267fc 100644 (file)
@@ -17,7 +17,6 @@
 #include <folly/AtomicHashMap.h>
 
 #include <glog/logging.h>
 #include <folly/AtomicHashMap.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 #include <thread>
 #include <atomic>
 #include <memory>
 #include <thread>
 #include <atomic>
 #include <memory>
@@ -26,6 +25,7 @@
 #include <folly/Benchmark.h>
 #include <folly/Conv.h>
 #include <folly/portability/Atomic.h>
 #include <folly/Benchmark.h>
 #include <folly/Conv.h>
 #include <folly/portability/Atomic.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/SysTime.h>
 
 using std::vector;
 #include <folly/portability/SysTime.h>
 
 using std::vector;
index b13c24c9ca28393fa4de6951003ca5f9abc8955a..ad09e12f36acd6d780dc4219f032b9ba0af2dd82 100644 (file)
@@ -17,9 +17,8 @@
 #include <algorithm>
 #include <thread>
 
 #include <algorithm>
 #include <thread>
 
-#include <gtest/gtest.h>
-
 #include <folly/AtomicLinkedList.h>
 #include <folly/AtomicLinkedList.h>
+#include <folly/portability/GTest.h>
 
 class TestIntrusiveObject {
  public:
 
 class TestIntrusiveObject {
  public:
index b6d0a07499a941f2c3fce65c3be7b395608aabf3..554722e0b56597fc000018a3d99918ee61eda54e 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/AtomicStruct.h>
 
 
 #include <folly/AtomicStruct.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index c9c4238433786260838e31d54447d615643aa704..e1a0104c5f3ca643b1f879a6c4bb255608a2bb31 100644 (file)
 #include <thread>
 #include <unordered_map>
 
 #include <thread>
 #include <unordered_map>
 
-#include <gtest/gtest.h>
-
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
index 099226a86a90a046e4c60e727aa69819439886bd..b261ac945b4e022308e38d1123b81b302a2f4960 100644 (file)
 #include <semaphore.h>
 #include <thread>
 
 #include <semaphore.h>
 #include <thread>
 
-#include <gtest/gtest.h>
-
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/test/BatonTestHelpers.h>
 #include <folly/test/DeterministicSchedule.h>
 
 #include <folly/test/BatonTestHelpers.h>
 #include <folly/test/DeterministicSchedule.h>
 
index eaeb5ad69a2c768ab4624fb08cb11d03d05b7547..4fbc6959149527e7030fc21f4a14be10ec8226e6 100644 (file)
 #include <folly/Baton.h>
 #include <folly/test/BatonTestHelpers.h>
 #include <folly/test/DeterministicSchedule.h>
 #include <folly/Baton.h>
 #include <folly/test/BatonTestHelpers.h>
 #include <folly/test/DeterministicSchedule.h>
+#include <folly/portability/GTest.h>
+
 #include <thread>
 #include <semaphore.h>
 #include <thread>
 #include <semaphore.h>
-#include <gtest/gtest.h>
 
 using namespace folly;
 using namespace folly::test;
 
 using namespace folly;
 using namespace folly::test;
index 0d86b361240faf17368d298522a4bc0b4659d0da..7efbd3e9cf89a87f25f151126a5f3585691ba2a9 100644 (file)
@@ -18,8 +18,7 @@
 
 #include <folly/Baton.h>
 #include <folly/test/DeterministicSchedule.h>
 
 #include <folly/Baton.h>
 #include <folly/test/DeterministicSchedule.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 namespace test {
 
 namespace folly {
 namespace test {
index fdf49b219c62f260090f4819565d02be8550fe7e..f9b2b1d8e25a05f9baace3d8e6adba01b6a819bb 100644 (file)
 #include <limits>
 #include <vector>
 
 #include <limits>
 #include <vector>
 
-#include <gtest/gtest.h>
-
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Benchmark.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::bititerator_detail;
 
 using namespace folly;
 using namespace folly::bititerator_detail;
index 2b2a140102374189a24791bca7916b4e81208949..4f6ed6764e5a8ae6f6086a3c2b2407329467e8ab 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <folly/Bits.h>
 
 
 #include <folly/Bits.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 33af739bd626c916702e881310553b596f11c292..dd46e79bc1ff067bef13511c08842125c1b25579 100644 (file)
 
 #include <folly/detail/CacheLocality.h>
 
 
 #include <folly/detail/CacheLocality.h>
 
+#include <folly/portability/GTest.h>
+
 #include <sched.h>
 #include <memory>
 #include <thread>
 #include <type_traits>
 #include <unordered_map>
 #include <glog/logging.h>
 #include <sched.h>
 #include <memory>
 #include <thread>
 #include <type_traits>
 #include <unordered_map>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 using namespace folly::detail;
 
 
 using namespace folly::detail;
 
index 9eca058ab31a9d2d68e9c31eeaf3d85b6e8ebb07..c67c3161d7b635f70a56360f3c1ce9cc0455266c 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <type_traits>
 
 
 #include <type_traits>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::CachelinePadded;
 
 
 using folly::CachelinePadded;
 
index 4a4b291df4150fcdde6c71b10939d778608b168c..843fa481978b332128d2296b1878c375109eab37 100644 (file)
@@ -20,9 +20,9 @@
 
 #include <folly/CallOnce.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/CallOnce.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 #include <glog/logging.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 DEFINE_int32(threads, 16, "benchmark concurrency");
 
 
 DEFINE_int32(threads, 16, "benchmark concurrency");
 
index a82bf75e88757e68c0d23e495db1c4db86d8a739..3e93e9f3b3e4562cc3ef8996030917df52750cc3 100644 (file)
 
 #include <folly/Checksum.h>
 
 
 #include <folly/Checksum.h>
 
-#include <gtest/gtest.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/detail/ChecksumDetail.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/detail/ChecksumDetail.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 namespace {
 const unsigned int BUFFER_SIZE = 512 * 1024 * sizeof(uint64_t);
 
 namespace {
 const unsigned int BUFFER_SIZE = 512 * 1024 * sizeof(uint64_t);
index 8516d6d982ce979f8358f438f209919e00fdeee4..4d1950a739ded422b18eed4fc32b32cfb2f2a15e 100644 (file)
 #include <folly/ClockGettimeWrappers.h>
 
 #include <folly/test/TestUtils.h>
 #include <folly/ClockGettimeWrappers.h>
 
 #include <folly/test/TestUtils.h>
+#include <folly/portability/GTest.h>
 
 #include <chrono>
 
 
 #include <chrono>
 
-#include <gtest/gtest.h>
-
 static constexpr auto kAcceptableDeltaSecs = std::chrono::seconds(120);
 
 using folly::test::AreWithinSecs;
 static constexpr auto kAcceptableDeltaSecs = std::chrono::seconds(120);
 
 using folly::test::AreWithinSecs;
index b63be004181fdb560ea458f2a578755ba1d2508c..cdd72ac02d9e18e09d8ace1dcd0eaf8584686442 100644 (file)
 #include <system_error>
 
 #include <glog/logging.h>
 #include <system_error>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Arena.h>
 #include <folly/Foreach.h>
 #include <folly/Memory.h>
 #include <folly/String.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/Arena.h>
 #include <folly/Foreach.h>
 #include <folly/Memory.h>
 #include <folly/String.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 DEFINE_int32(num_threads, 12, "num concurrent threads to test");
 
 
 DEFINE_int32(num_threads, 12, "num concurrent threads to test");
 
index d3894e3a4625d97e9d7d0d12f5249f28ca396f6f..4ca5a81836de8285372112f3f0fd60fac39071fb 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/ContainerTraits.h>
 
 
 #include <folly/ContainerTraits.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index fd26293e4965ead7d7abb4c0002b1174d65c1872..878171a28e8ac0e1384c0307d5dd3965e35be418 100644 (file)
 #endif
 
 #include <boost/lexical_cast.hpp>
 #endif
 
 #include <boost/lexical_cast.hpp>
+
 #include <folly/Conv.h>
 #include <folly/Foreach.h>
 #include <folly/Conv.h>
 #include <folly/Foreach.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
+
 #include <algorithm>
 #include <cinttypes>
 #include <limits>
 #include <algorithm>
 #include <cinttypes>
 #include <limits>
index 28c43e79de70717d3592b4653f0359626b60428c..c1465aa40ed05653eb75a35fe4e631ecf0608fad 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/CpuId.h>
 
 
 #include <folly/CpuId.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 1316319f7ec274cd7655da5144b88a137fcdf09f..78c99331cf5d4f370b7588c064b1138a293af09a 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Demangle.h>
 
 
 #include <folly/Demangle.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::demangle;
 
 
 using folly::demangle;
 
index db22703b4a842731ccd4f2c8d0e23cd2308a9d9e..7153f2b526493baff752028dc8aec9c3f0735e84 100644 (file)
@@ -16,9 +16,8 @@
 
 #include <folly/test/DeterministicSchedule.h>
 
 
 #include <folly/test/DeterministicSchedule.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/portability/GFlags.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::test;
 
 
 using namespace folly::test;
 
index 916b7943247f8ad5cc526a55a48e4ba5c2dfbfcf..338621d9d6301f6425791e8a870ed53f5abe87c2 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/DiscriminatedPtr.h>
 
 
 #include <folly/DiscriminatedPtr.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 1d45e67d787ad2ec9a5525c21599e47bb28a62c8..942f6b2727593ebdcd959c7c371490d29be0c295 100644 (file)
@@ -18,8 +18,9 @@
 
 #include <folly/DynamicConverter.h>
 
 
 #include <folly/DynamicConverter.h>
 
+#include <folly/portability/GTest.h>
+
 #include <algorithm>
 #include <algorithm>
-#include <gtest/gtest.h>
 #include <map>
 #include <vector>
 
 #include <map>
 #include <vector>
 
index bf3b462f32ce516ce3ef68d3b973f3f862520519..df755294c912e8f8c54582513d53b2219b5c2317 100644 (file)
@@ -19,8 +19,7 @@
 #include <folly/gen/Base.h>
 #include <folly/json.h>
 #include <folly/portability/GFlags.h>
 #include <folly/gen/Base.h>
 #include <folly/json.h>
 #include <folly/portability/GFlags.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 #include <iostream>
 
 
 #include <iostream>
 
index 0fa5bdc2e16a07835907e8b7947a92b4941adf08..624118e44872b2681f8de4459981aed91493c011 100644 (file)
@@ -16,8 +16,9 @@
 
 #include <folly/dynamic.h>
 
 
 #include <folly/dynamic.h>
 
+#include <folly/portability/GTest.h>
+
 #include <boost/next_prior.hpp>
 #include <boost/next_prior.hpp>
-#include <gtest/gtest.h>
 
 using folly::dynamic;
 
 
 using folly::dynamic;
 
index f57bea9f47e9ebc558f0689c67b6c91b7916685c..93b0390e7db46298f5d5fa05215456f1eac157b3 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Bits.h>
 
 
 #include <folly/Bits.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 47ae5cd94df8d36077701029cbffc2bb227857ae..b3ed18d7a5b17b23ef5ad227282c22f4d05ff640 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <folly/Enumerate.h>
 #include <folly/Range.h>
 
 #include <folly/Enumerate.h>
 #include <folly/Range.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 TEST(Enumerate, Basic) {
   std::vector<std::string> v = {"abc", "a", "ab"};
 
 TEST(Enumerate, Basic) {
   std::vector<std::string> v = {"abc", "a", "ab"};
index 7991a4c39bdde5c8b25e32f61147f83e39c4336d..0c3059076886b8bf8d040138e741337a879d60fd 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <set>
 
 #include <folly/EvictingCacheMap.h>
 #include <set>
 
 #include <folly/EvictingCacheMap.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index a77725d9729095ec87470d763066cba918a56888..cc0378c9199d164ff1f6beb49bff1e33799daf17 100644 (file)
 #include <folly/Exception.h>
 
 #include <folly/experimental/TestUtil.h>
 #include <folly/Exception.h>
 
 #include <folly/experimental/TestUtil.h>
+#include <folly/portability/GTest.h>
 
 #include <cstdio>
 #include <memory>
 
 #include <glog/logging.h>
 
 #include <cstdio>
 #include <memory>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index a3b17e04bb1aa2c1cbb6a523db9d626ddf96d079..dc3a0ac69eabe9d5397a0e1efa450bcdb2783b12 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
 #include <stdexcept>
 #include <stdexcept>
+
 #include <folly/ExceptionWrapper.h>
 #include <folly/Conv.h>
 #include <folly/Portability.h>
 #include <folly/ExceptionWrapper.h>
 #include <folly/Conv.h>
 #include <folly/Portability.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 52c090394773a6aed891f84d59120ee8783ef02e..a10c9e865ff12545ba4c79fcea9c6ab2fbf787c5 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <folly/Expected.h>
 #include <folly/Portability.h>
 
 #include <folly/Expected.h>
 #include <folly/Portability.h>
+#include <folly/portability/GTest.h>
 
 #include <algorithm>
 #include <iomanip>
 
 #include <algorithm>
 #include <iomanip>
@@ -25,7 +26,6 @@
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 using std::unique_ptr;
 using std::shared_ptr;
 
 using std::unique_ptr;
 using std::shared_ptr;
index c6945a1f2ee0656636bca1e10c9b96584b17df10..a31038f7c5d3710735d584ca788a3cba70568b46 100644 (file)
 #include <sstream>
 #include <boost/algorithm/string.hpp>
 #include <boost/random.hpp>
 #include <sstream>
 #include <boost/algorithm/string.hpp>
 #include <boost/random.hpp>
-#include <gtest/gtest.h>
 
 #include <folly/Foreach.h>
 #include <folly/Portability.h>
 #include <folly/Random.h>
 #include <folly/Conv.h>
 
 #include <folly/Foreach.h>
 #include <folly/Portability.h>
 #include <folly/Random.h>
 #include <folly/Conv.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 0b676912be3b4304d33bac6e4610bf273fdcd541..cd95037067c2b273624237fc96683701a7030d72 100644 (file)
@@ -24,8 +24,8 @@
 #include <folly/Random.h>
 #include <folly/Traits.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Random.h>
 #include <folly/Traits.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <list>
 #include <memory>
 #include <boost/random.hpp>
 #include <list>
 #include <memory>
 #include <boost/random.hpp>
index 33a164a004efe0379dd05ef1c78f570c7556c8c4..54f64efedeeed9996d39fdb3245d1b0734a8167a 100644 (file)
@@ -22,8 +22,8 @@
 #include <folly/Random.h>
 #include <folly/FBString.h>
 #include <folly/FBVector.h>
 #include <folly/Random.h>
 #include <folly/FBString.h>
 #include <folly/FBVector.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <list>
 #include <map>
 #include <memory>
 #include <list>
 #include <map>
 #include <memory>
index eaf302eadfd313cb4418b7e0ad504b52ea45d530..eb25bfb040ef3eb0bf1d947d43b43cca3ecd1604 100644 (file)
@@ -19,7 +19,6 @@
 #include <mutex>
 
 #include <glog/logging.h>
 #include <mutex>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 #include <boost/thread/locks.hpp>
 
 #include <folly/String.h>
 #include <boost/thread/locks.hpp>
 
 #include <folly/String.h>
@@ -27,6 +26,7 @@
 #include <folly/experimental/TestUtil.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/portability/GFlags.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::test;
 
 using namespace folly;
 using namespace folly::test;
index 290c53da55e62ad0ff3c7b21926dd42db62ae09f..4651f7b0d437d23f47a96cfe71ab119de392134b 100644 (file)
@@ -18,8 +18,7 @@
 
 #include <folly/String.h>
 #include <folly/portability/Fcntl.h>
 
 #include <folly/String.h>
 #include <folly/portability/Fcntl.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 6526efa2facb5e81b3a6540e8b037f3e6ba3d9a4..26cfde95b2495049608a6852809ad8cb343cfc20 100644 (file)
 #include <deque>
 
 #include <glog/logging.h>
 #include <deque>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/File.h>
 #include <folly/Range.h>
 #include <folly/String.h>
 
 #include <folly/File.h>
 #include <folly/Range.h>
 #include <folly/String.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index 94a574075251650f701e7873e78bc5f037686ef7..62de0481c45ea05d2fc1a3c84c8f9ed4dfb2312c 100644 (file)
 #include <folly/Fingerprint.h>
 
 #include <glog/logging.h>
 #include <folly/Fingerprint.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/detail/SlowFingerprint.h>
 #include <folly/Benchmark.h>
 
 #include <folly/detail/SlowFingerprint.h>
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::detail;
 
 using namespace folly;
 using namespace folly::detail;
index dfb24445b630a7209058b1ab2ec3d19d7cc9377c..e3a96f0792c20b906ee2a0be078bb1c94e466f63 100644 (file)
@@ -17,8 +17,8 @@
 #include <folly/Foreach.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Foreach.h>
 
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 
-#include <gtest/gtest.h>
 #include <map>
 
 using namespace folly;
 #include <map>
 
 using namespace folly;
index bba0413d977ea6b45cfded82d94e976f78e2196b..9904084d631ce816280e265559c0903a85179789 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <folly/Foreach.h>
 
 
 #include <folly/Foreach.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
+
 #include <map>
 #include <string>
 #include <vector>
 #include <map>
 #include <string>
 #include <vector>
index 951321665dd2f213695f341d16bbc249d7cce022..466d3c6594b0175f69e08d40c9c468d5b547853e 100644 (file)
 #include <folly/Format.h>
 
 #include <glog/logging.h>
 #include <folly/Format.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/FBVector.h>
 #include <folly/FileUtil.h>
 #include <folly/dynamic.h>
 #include <folly/json.h>
 #include <folly/small_vector.h>
 
 #include <folly/FBVector.h>
 #include <folly/FileUtil.h>
 #include <folly/dynamic.h>
 #include <folly/json.h>
 #include <folly/small_vector.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index d1d8c96aea34877ae54ee3518eb25b600c907414..f8e27e317ed8ae6a6a772414417a2c601e1626bb 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Format.h>
 
 
 #include <folly/Format.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 #include <string>
 
 
 #include <string>
 
index 4fed1e9004d27cd409aae463c87546bc6fd4e438..bfe2afb1a8ac2e39c843f15770208548e08fb4b3 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 #include <atomic>
  * limitations under the License.
  */
 #include <atomic>
-#include <gtest/gtest.h>
 
 #include <folly/experimental/FunctionScheduler.h>
 
 #include <folly/experimental/FunctionScheduler.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index 1c18e481d6a9c3e0f9ba11544e0fb663ad04ab6b..b23eb3e941e47084070aadaf4c3c72fa82aec6f0 100644 (file)
@@ -20,7 +20,7 @@
 #include <folly/Function.h>
 
 #include <folly/Memory.h>
 #include <folly/Function.h>
 
 #include <folly/Memory.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::Function;
 
 
 using folly::Function;
 
index 36d11f8e28fe9841320ea01a3325f412b1d9d1c5..da7dca3c64615a8640342d0058c2a2c46a76804b 100644 (file)
@@ -23,9 +23,9 @@
 #include <thread>
 
 #include <glog/logging.h>
 #include <thread>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/portability/Time.h>
 
 #include <folly/portability/Time.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::detail;
 using namespace folly::test;
 
 using namespace folly::detail;
 using namespace folly::test;
index 8b05713ce2655ee9ca315d06aa2c54b0f27282d7..2f2dcf82574c0bcb560ae57fe3ef5a539d618f45 100644 (file)
@@ -21,7 +21,7 @@
 // On platforms where it's not supported, GroupVarint will be compiled out.
 #if HAVE_GROUP_VARINT
 
 // On platforms where it's not supported, GroupVarint will be compiled out.
 #if HAVE_GROUP_VARINT
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index dc8c0f98cbf3750e6db2350d73b0c3f18a34007b..2414eeefa3b991e46540da8df5cd63e2702e8b0c 100644 (file)
@@ -20,7 +20,8 @@
 
 #include <folly/Traits.h>
 
 
 #include <folly/Traits.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
+
 #include <glog/logging.h>
 
 #include <string>
 #include <glog/logging.h>
 
 #include <string>
index 62618d3172a4093696e1e177ce1a4c9b69de9195..e2c8e38adfc86fe0cdb5768e41627bdc1735c836 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Hash.h>
 #include <folly/MapUtil.h>
 
 #include <folly/Hash.h>
 #include <folly/MapUtil.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 #include <stdint.h>
 #include <unordered_map>
 #include <utility>
 #include <stdint.h>
 #include <unordered_map>
 #include <utility>
index 680d8c0cb4e537b05b6707ab2c0cda4104a1d34f..c7b233c691fae8065abcd85b6a6b3cc50ed87fad 100644 (file)
@@ -17,7 +17,7 @@
 #include <folly/stats/Histogram.h>
 #include <folly/stats/Histogram-defs.h>
 
 #include <folly/stats/Histogram.h>
 #include <folly/stats/Histogram-defs.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::Histogram;
 
 
 using folly::Histogram;
 
index 5097eafa646e04bfa7754ccc6eb92c90cda0561c..9fc746d7aedffe63f90b3dba9b1d7627935c45a5 100644 (file)
 
 #include <folly/test/IPAddressTest.h>
 
 
 #include <folly/test/IPAddressTest.h>
 
-#include <gtest/gtest.h>
-
 #include <folly/Bits.h>
 #include <folly/Format.h>
 #include <folly/MacAddress.h>
 #include <folly/String.h>
 #include <folly/detail/IPAddressSource.h>
 #include <folly/Bits.h>
 #include <folly/Format.h>
 #include <folly/MacAddress.h>
 #include <folly/String.h>
 #include <folly/detail/IPAddressSource.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace std;
 
 using namespace folly;
 using namespace std;
index 01aa3c49021485caf61b464ba020e03b4c569367..20633b167954a1dd384a043bea823a832ab049f0 100644 (file)
 
 #include <string>
 
 
 #include <string>
 
-#include <gtest/gtest.h>
-
 #include <sys/types.h>
 
 #include <folly/IPAddress.h>
 #include <sys/types.h>
 
 #include <folly/IPAddress.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 
 namespace folly {
 #include <folly/portability/Sockets.h>
 
 namespace folly {
index 6ee8005d21033c10f3e1b1cf1ebda8bcdc6b6e31..4e144eec4b3160201a95a8bc37b79bcf2604dce1 100644 (file)
@@ -20,8 +20,9 @@
 #include <map>
 #include <memory>
 #include <string>
 #include <map>
 #include <memory>
 #include <string>
-#include <gtest/gtest.h>
+
 #include <folly/Memory.h>
 #include <folly/Memory.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 03e24ee2aac5576c752acea07255f13300340a93..1cfa69071b71b6d0aaac6f0b7276e28715494ed1 100644 (file)
 
 #include <folly/IndexedMemPool.h>
 #include <folly/test/DeterministicSchedule.h>
 
 #include <folly/IndexedMemPool.h>
 #include <folly/test/DeterministicSchedule.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 #include <folly/portability/Unistd.h>
+
 #include <string>
 #include <thread>
 #include <semaphore.h>
 #include <string>
 #include <thread>
 #include <semaphore.h>
-#include <gtest/gtest.h>
 
 using namespace folly;
 using namespace folly::test;
 
 using namespace folly;
 using namespace folly::test;
index 01fd4cff1aae5bb028c2a8ed1b4b3b5043a0d9db..dd1a5b83de109a37ff410ebdf848cb277bb5444d 100644 (file)
@@ -19,8 +19,7 @@
 #include <folly/Benchmark.h>
 #include <folly/FileUtil.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Benchmark.h>
 #include <folly/FileUtil.h>
 #include <folly/portability/GFlags.h>
-
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::dynamic;
 using folly::parseJson;
 
 using folly::dynamic;
 using folly::parseJson;
index a57b493c127775b49d1722f98538aae2b6d61923..805cb3004ffa56a4855f20a38fb181658ffbe4bd 100644 (file)
@@ -16,8 +16,9 @@
 #include <limits>
 
 #include <boost/next_prior.hpp>
 #include <limits>
 
 #include <boost/next_prior.hpp>
+
 #include <folly/json.h>
 #include <folly/json.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using folly::dynamic;
 using folly::parseJson;
 
 using folly::dynamic;
 using folly::parseJson;
index 373d2245646aa491f7652295cdfe23ae45c87d49..5a11ff9815cfe5347ea9ab8c34c8a6187c9ff1c0 100644 (file)
@@ -19,7 +19,7 @@
 #include <functional>
 #include <iostream>
 
 #include <functional>
 #include <iostream>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index 09234c9eaeeb2fb5cf7570ddf59252fe507c4980..c16fe4a0feb28c5cb804a7546aeb45e961885906 100644 (file)
 #include <semaphore.h>
 #include <thread>
 
 #include <semaphore.h>
 #include <thread>
 
-#include <gtest/gtest.h>
-
 #include <folly/Benchmark.h>
 #include <folly/Random.h>
 #include <folly/portability/Asm.h>
 #include <folly/portability/GFlags.h>
 #include <folly/Benchmark.h>
 #include <folly/Random.h>
 #include <folly/portability/Asm.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
index d77d8206d39504ed9efe87c3530164b8617a3eb8..677a6516a9b8c880f0d0d41950be7d8bc4161960 100644 (file)
 #include <folly/LockTraits.h>
 #include <folly/LockTraitsBoost.h>
 
 #include <folly/LockTraits.h>
 #include <folly/LockTraitsBoost.h>
 
-#include <gtest/gtest.h>
 #include <mutex>
 
 #include <folly/RWSpinLock.h>
 #include <folly/SharedMutex.h>
 #include <folly/SpinLock.h>
 #include <mutex>
 
 #include <folly/RWSpinLock.h>
 #include <folly/SharedMutex.h>
 #include <folly/SpinLock.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 734640decfb5e94e5451b0683e0b2f2309678018..9b752c5439ba86ee38678c3ef8c648cb00e53416 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Logging.h>
 
 
 #include <folly/Logging.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 #include <vector>
 
 
 #include <vector>
 
index 1914b6737558b2dff9fd99e8279775399518af40..aed9f96920880987822abaf97b3b9ed9afafb0e3 100644 (file)
@@ -20,9 +20,9 @@
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Conv.h>
 
 #include <folly/Conv.h>
+#include <folly/portability/GTest.h>
 
 namespace folly { namespace test {
 
 
 namespace folly { namespace test {
 
index f4a195a492b998ce9d88f854e5d5a62bf50a191d..cc9e8c123460ddc09109f0d2c2cd579eb2edfa39 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/MPMCQueue.h>
 #include <folly/Format.h>
 #include <folly/Memory.h>
 #include <folly/MPMCQueue.h>
 #include <folly/Format.h>
 #include <folly/Memory.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/SysResource.h>
 #include <folly/portability/SysTime.h>
 #include <folly/portability/Unistd.h>
 #include <folly/portability/SysResource.h>
 #include <folly/portability/SysTime.h>
 #include <folly/portability/Unistd.h>
@@ -28,8 +29,6 @@
 #include <thread>
 #include <utility>
 
 #include <thread>
 #include <utility>
 
-#include <gtest/gtest.h>
-
 FOLLY_ASSUME_FBVECTOR_COMPATIBLE_1(boost::intrusive_ptr);
 
 using namespace folly;
 FOLLY_ASSUME_FBVECTOR_COMPATIBLE_1(boost::intrusive_ptr);
 
 using namespace folly;
index b97ea211484987f5c00d70dbf07db73d9e6c26b4..ae70a9c0994c736c63b6aa15321ca365950be42a 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/Conv.h>
 #include <folly/IPAddressV6.h>
 #include <folly/MacAddress.h>
 #include <folly/Conv.h>
 #include <folly/IPAddressV6.h>
 #include <folly/MacAddress.h>
+#include <folly/portability/GTest.h>
 
 using folly::MacAddress;
 using folly::IPAddressV6;
 
 using folly::MacAddress;
 using folly::IPAddressV6;
index ad6659986f19ec13f478095d46ef47ffc2fcec9a..04236c8e59a974033231d51759d83d979f5e40e5 100644 (file)
@@ -17,7 +17,7 @@
 #include <folly/MallctlHelper.h>
 #include <folly/Malloc.h>
 #include <folly/init/Init.h>
 #include <folly/MallctlHelper.h>
 #include <folly/Malloc.h>
 #include <folly/init/Init.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 7ba12a984d02be21f4dfd7fc2592bac5a1c58f3b..4584faf12c8f4cc8f05214d29ffa03fd638c5e22 100644 (file)
@@ -17,7 +17,8 @@
 #include <folly/MapUtil.h>
 
 #include <map>
 #include <folly/MapUtil.h>
 
 #include <map>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 166d2a748e3b785b796383614d4fec9c4b5f7239..60c6b2bf6be7747e25bc4e7ea16406133b5e260b 100644 (file)
@@ -22,9 +22,9 @@
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Portability.h>
 
 #include <folly/Portability.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::detail;
 
 using namespace folly;
 using namespace folly::detail;
index f6635f4eacffc353f82acd3b6dfca6a505eaffcf..9c4a141f568db096405e0342dc188b333090bd0b 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/Portability.h>
 
 
 #include <folly/Portability.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 namespace {
 
 
 namespace {
 
index d1536d0bebd69151c4359fff9155d8f096ae4864..74e377a8578b0ee81186a1c9276c03ce2aae1b9f 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <folly/Baton.h>
 #include <folly/portability/GMock.h>
 
 #include <folly/Baton.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Windows.h>
 
 #include <memory>
 #include <folly/portability/Windows.h>
 
 #include <memory>
@@ -25,8 +26,6 @@
 #include <assert.h>
 #include <semaphore.h>
 
 #include <assert.h>
 #include <semaphore.h>
 
-#include <gtest/gtest.h>
-
 using namespace folly;
 using namespace folly::detail;
 using namespace testing;
 using namespace folly;
 using namespace folly::detail;
 using namespace testing;
index 1d80cd2e7d90f558c6c31886b5c55f711379acd1..f438c66c639093679c03c384ff49d9b9ef7834c7 100644 (file)
 #include <folly/FileUtil.h>
 #include <folly/MemoryMapping.h>
 #include <folly/Random.h>
 #include <folly/FileUtil.h>
 #include <folly/MemoryMapping.h>
 #include <folly/Random.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/SysMman.h>
 
 #include <folly/portability/SysMman.h>
 
-#include <gtest/gtest.h>
-
 static constexpr double kSomeDouble = 3.14;
 
 namespace folly {
 static constexpr double kSomeDouble = 3.14;
 
 namespace folly {
index c35e40b9d95bbd4b7f4f5991340a82cdf773ebfa..d7660476a085f2be7dbb0525c533b92c21bc6806 100644 (file)
@@ -17,9 +17,9 @@
 #include <folly/Memory.h>
 #include <folly/Arena.h>
 #include <folly/String.h>
 #include <folly/Memory.h>
 #include <folly/Arena.h>
 #include <folly/String.h>
+#include <folly/portability/GTest.h>
 
 #include <glog/logging.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <type_traits>
 
 
 #include <type_traits>
 
index 880c5e981ea61c7b0e60de44dcdf37ff0faacf0b..ae0693b1532ea5b752d0587a948f36ce054386ce 100644 (file)
  */
 
 #include <folly/Merge.h>
  */
 
 #include <folly/Merge.h>
-#include <gtest/gtest.h>
+
 #include <map>
 #include <vector>
 
 #include <map>
 #include <vector>
 
+#include <folly/portability/GTest.h>
+
 TEST(MergeTest, NonOverlapping) {
   std::vector<int> a = {0, 2, 4, 6};
   std::vector<int> b = {1, 3, 5, 7};
 TEST(MergeTest, NonOverlapping) {
   std::vector<int> a = {0, 2, 4, 6};
   std::vector<int> b = {1, 3, 5, 7};
index 74b283e380f5cb93a02f7bd22df4e325c344a951..168af64fbb352e37ecf0d14875ee41ee3759944b 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/MoveWrapper.h>
 #include <folly/MoveWrapper.h>
+
 #include <memory>
 
 #include <memory>
 
+#include <folly/portability/GTest.h>
+
 namespace folly {
 
 TEST(makeMoveWrapper, Empty) {
 namespace folly {
 
 TEST(makeMoveWrapper, Empty) {
index 0fc31e0b95a5d7232b54cdecf119d22392018954..96f6e5caa2d557c927dcee9e962a4e30f74635c6 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <folly/Optional.h>
 #include <folly/Portability.h>
 
 #include <folly/Optional.h>
 #include <folly/Portability.h>
+#include <folly/portability/GTest.h>
 
 #include <memory>
 #include <vector>
 
 #include <memory>
 #include <vector>
@@ -25,7 +26,6 @@
 #include <type_traits>
 
 #include <glog/logging.h>
 #include <type_traits>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 #include <boost/optional.hpp>
 
 using std::unique_ptr;
 #include <boost/optional.hpp>
 
 using std::unique_ptr;
index c5b28b26b15531f739a5ec9670f6b16be56382c7..b83dd679f4b69f2f6d1492b82b827aefff8bd6c8 100644 (file)
 #include <folly/PackedSyncPtr.h>
 
 #include <cinttypes>
 #include <folly/PackedSyncPtr.h>
 
 #include <cinttypes>
-#include <gtest/gtest.h>
 #include <thread>
 #include <unordered_map>
 #include <utility>
 
 #include <thread>
 #include <unordered_map>
 #include <utility>
 
+#include <folly/portability/GTest.h>
+
 using folly::PackedSyncPtr;
 
 namespace {
 using folly::PackedSyncPtr;
 
 namespace {
index b86e2090dc58de68c7de50e255fb3fcdecb6bf2e..017a02d103ad9e3c1e0439c8c2b13b6ee4efb7ad 100644 (file)
@@ -17,7 +17,8 @@
 #include <folly/Padded.h>
 
 #include <glog/logging.h>
 #include <folly/Padded.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 025cd25f51cfd54d9db97ec59d22069a894d51a1..1d19e020d3734b67bd9899d10c2f4419d5089f17 100644 (file)
@@ -17,7 +17,8 @@
 #include <memory>
 
 #include <folly/Partial.h>
 #include <memory>
 
 #include <folly/Partial.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 using folly::partial;
 
 
 using folly::partial;
 
index 8ff47aa096fb4ca3f605c6b8cf8cadbf7f324475..58d104d940c7eeeb150cf2e9c66831fad79e9d61 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <memory>
 
 
 #include <memory>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 class Base {
  public:
 
 class Base {
  public:
index bd1fa0c377d9ad0d2ce161da50217ef4de120700..4fe0a6653bf5fc4dee61713f7093748ca5951393 100644 (file)
@@ -23,7 +23,8 @@
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 //////////////////////////////////////////////////////////////////////
 
 
 //////////////////////////////////////////////////////////////////////
 
index a6a40415b4c00a3e5fdc777980a7068ef7a1a88d..edf037ba9b4aaaf534998a407516b8c091e502c2 100644 (file)
@@ -25,9 +25,9 @@
 #include <thread>
 
 #include <glog/logging.h>
 #include <thread>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/portability/GFlags.h>
 
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 DEFINE_int32(num_threads, 8, "num threads");
 #include <folly/portability/Unistd.h>
 
 DEFINE_int32(num_threads, 8, "num threads");
index d7c4f4a58ab988ac4a64b00bbbad1b069e0a3e17..7d175b6e3bb2fe79ab7deed7ef1438e767009130 100644 (file)
 #include <folly/Random.h>
 
 #include <glog/logging.h>
 #include <folly/Random.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <algorithm>
 #include <thread>
 #include <vector>
 #include <random>
 
 
 #include <algorithm>
 #include <thread>
 #include <vector>
 #include <random>
 
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 
 TEST(Random, StateSize) {
 using namespace folly;
 
 TEST(Random, StateSize) {
index 0a1d03ace08a1b1b8b3270c1f59115c1fdd1b7e3..ef4c1e1e341d0ea07145b4760b3999eec7f02e98 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <folly/Range.h>
 
 
 #include <folly/Range.h>
 
+#include <folly/portability/GTest.h>
 #include <folly/portability/Memory.h>
 #include <folly/portability/SysMman.h>
 
 #include <folly/portability/Memory.h>
 #include <folly/portability/SysMman.h>
 
@@ -31,7 +32,6 @@
 #include <vector>
 #include <boost/range/concepts.hpp>
 #include <boost/algorithm/string/trim.hpp>
 #include <vector>
 #include <boost/range/concepts.hpp>
 #include <boost/algorithm/string/trim.hpp>
-#include <gtest/gtest.h>
 
 using namespace folly;
 using namespace folly::detail;
 
 using namespace folly;
 using namespace folly::detail;
index bfaa3dd6a0da1ee93f421db345a6234acc2158f7..0cb59b96c5ac906f5e64fcbd4ce73201ad1921e4 100644 (file)
@@ -17,9 +17,9 @@
 #include <folly/SafeAssert.h>
 
 #include <glog/logging.h>
 #include <folly/SafeAssert.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Benchmark.h>
 
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 93507da2d55aa5fb9873bbe3853eeacf0699e153..892a4352a20b9b3c0ceec7523fae39dade24f979 100644 (file)
 #include <folly/ScopeGuard.h>
 #include <folly/Portability.h>
 
 #include <folly/ScopeGuard.h>
 #include <folly/Portability.h>
 
-#include <gtest/gtest.h>
 #include <glog/logging.h>
 
 #include <functional>
 #include <stdexcept>
 
 #include <glog/logging.h>
 
 #include <functional>
 #include <stdexcept>
 
+#include <folly/portability/GTest.h>
+
 using folly::ScopeGuard;
 using folly::makeGuard;
 using std::vector;
 using folly::ScopeGuard;
 using folly::makeGuard;
 using std::vector;
index 7ca552395be3cfa083cfad5880ae03aeff3f4581..dc0274c860e5e576f8543bdee9898323396a2ea3 100644 (file)
@@ -20,7 +20,6 @@
 #include <thread>
 #include <vector>
 
 #include <thread>
 #include <vector>
 
-#include <gtest/gtest.h>
 #include <boost/optional.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
 #include <boost/optional.hpp>
 #include <boost/thread/shared_mutex.hpp>
 
@@ -29,6 +28,7 @@
 #include <folly/RWSpinLock.h>
 #include <folly/Random.h>
 #include <folly/portability/GFlags.h>
 #include <folly/RWSpinLock.h>
 #include <folly/Random.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
 #include <folly/test/DeterministicSchedule.h>
 
 using namespace folly;
index 627c954741c92b4ae53984c97cb19c8dd8e8a472..6e8b2323d332b7290f7a104bd0fd6d71f86894df 100644 (file)
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GMock.h>
+#include <folly/portability/GTest.h>
 #include <folly/test/SingletonTestStructs.h>
 
 #include <glog/logging.h>
 #include <folly/test/SingletonTestStructs.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 #include <boost/thread/barrier.hpp>
 
 using namespace folly;
 #include <boost/thread/barrier.hpp>
 
 using namespace folly;
index 7410d5f134e198202c23906045a5d8309fc95163..d62f41d1bea483f1158c82e443242e7c43746edc 100644 (file)
@@ -20,9 +20,9 @@
 #include <folly/Singleton.h>
 #include <folly/Benchmark.h>
 #include <folly/test/SingletonTestStructs.h>
 #include <folly/Singleton.h>
 #include <folly/Benchmark.h>
 #include <folly/test/SingletonTestStructs.h>
+#include <folly/portability/GTest.h>
 
 #include <glog/logging.h>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 /*
  * This test needs to be in its own file, as a standalone program.
 
 /*
  * This test needs to be in its own file, as a standalone program.
index fecf5373cced1a9d0bfdaa4f01a7590ccb11cf50..d8a90c9c72c63ad1b2dd9f0b532420e2801d3a04 100644 (file)
@@ -20,7 +20,8 @@
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
+
+#include <folly/portability/GTest.h>
 
 // A simple class that tracks how often instances of the class and
 // subclasses are created, and the ordering.  Also tracks a global
 
 // A simple class that tracks how often instances of the class and
 // subclasses are created, and the ordering.  Also tracks a global
index 00e9f5b9591afc8e0d428b973de891ff42382250..471cc3571d74de686eda0252cfee842ca4494879 100644 (file)
 #include <folly/Singleton.h>
 #include <folly/SingletonVault_c.h>
 
 #include <folly/Singleton.h>
 #include <folly/SingletonVault_c.h>
 
-#include <gtest/gtest.h>
-
 #include <thread>
 
 #include <thread>
 
+#include <folly/portability/GTest.h>
+
 FOLLY_TLS long instance_counter_instances = 0;
 
 class InstanceCounter {
 FOLLY_TLS long instance_counter_instances = 0;
 
 class InstanceCounter {
index 41c2ce65505617e6aee06196229c125676031beb..020c713623b62b98d1ef7637a1d154305ec5d903 100644 (file)
@@ -28,9 +28,8 @@
 
 #include <thread>
 
 
 #include <thread>
 
-#include <gtest/gtest.h>
-
 #include <folly/portability/Asm.h>
 #include <folly/portability/Asm.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 using folly::MSLGuard;
 #include <folly/portability/Unistd.h>
 
 using folly::MSLGuard;
index 145aa863b2c365696b035e72d0c973848457f20d..200f7258fcb1f0d5fc8e23f77649e41419d36250 100644 (file)
 
 #include <folly/SocketAddress.h>
 
 
 #include <folly/SocketAddress.h>
 
-#include <gtest/gtest.h>
 #include <iostream>
 #include <sstream>
 #include <system_error>
 
 #include <iostream>
 #include <sstream>
 #include <system_error>
 
+#include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Stdlib.h>
 #include <folly/test/SocketAddressTestHelper.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Stdlib.h>
 #include <folly/test/SocketAddressTestHelper.h>
index f5f6f1a1103730dff6f69eef41a0abc88290e4da..418d797da525285f36cf38e619c76bfa1d13658f 100644 (file)
@@ -21,7 +21,7 @@
 #include <random>
 #include <set>
 
 #include <random>
 #include <set>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 6d028af1e0f923a8436f4f247c641f8afe0fad19..0312240202402885c9a8b2029f9f7ca304b9086c 100644 (file)
 
 #include <folly/Random.h>
 
 
 #include <folly/Random.h>
 
-#include <gtest/gtest.h>
 #include <thread>
 
 #include <folly/portability/Asm.h>
 #include <thread>
 
 #include <folly/portability/Asm.h>
+#include <folly/portability/GTest.h>
 
 using folly::SpinLockGuardImpl;
 
 
 using folly::SpinLockGuardImpl;
 
index 9748a759c33ad99e6a05afd7c6f436dd848255de..4b81ce1997ab1bfe1230645cc17c2ae7153b1f03 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <folly/SpookyHashV1.h>
 #include <folly/Benchmark.h>
 
 #include <folly/SpookyHashV1.h>
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 #include <cinttypes>
 #include <cstdio>
 
 #include <cinttypes>
 #include <cstdio>
@@ -30,8 +31,6 @@
 #include <cstdlib>
 #include <ctime>
 
 #include <cstdlib>
 #include <ctime>
 
-#include <gtest/gtest.h>
-
 using namespace ::folly::hash;
 
 static bool failed = false;
 using namespace ::folly::hash;
 
 static bool failed = false;
index 65503baae5cf14aa445e6e4b7b76e4bb9b6249b9..c17031876a9c169dfcf803495d50a439d860fdf9 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <folly/SpookyHashV2.h>
 #include <folly/Benchmark.h>
 
 #include <folly/SpookyHashV2.h>
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 #include <cinttypes>
 #include <cstdio>
 
 #include <cinttypes>
 #include <cstdio>
@@ -30,8 +31,6 @@
 #include <cstdlib>
 #include <ctime>
 
 #include <cstdlib>
 #include <ctime>
 
-#include <gtest/gtest.h>
-
 using namespace ::folly::hash;
 
 static bool failed = false;
 using namespace ::folly::hash;
 
 static bool failed = false;
index a736fbbe65633dd3b46dd9cf62c8cb110ec4f2f5..e1fd686b0d070199717d7e1c4d31e83d46ad231e 100644 (file)
@@ -23,9 +23,9 @@
 #include <cinttypes>
 
 #include <boost/regex.hpp>
 #include <cinttypes>
 
 #include <boost/regex.hpp>
-#include <gtest/gtest.h>
 
 #include <folly/Array.h>
 
 #include <folly/Array.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace std;
 
 using namespace folly;
 using namespace std;
index 912b05b7104bd0cbf17a01c2de66b1d80948cab6..66b1831957420556ca4c514deb3aaa919c65dcf7 100644 (file)
@@ -20,7 +20,6 @@
 
 #include <boost/container/flat_set.hpp>
 #include <glog/logging.h>
 
 #include <boost/container/flat_set.hpp>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Exception.h>
 #include <folly/Format.h>
 
 #include <folly/Exception.h>
 #include <folly/Format.h>
@@ -31,6 +30,7 @@
 #include <folly/gen/String.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/gen/String.h>
 #include <folly/experimental/TestUtil.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
index 4aaeadabd49755aaee38c3e47010fc02916e6922..adbac4194a735f987371cea1e83ed7a072d67edc 100644 (file)
@@ -25,7 +25,7 @@
 #include <folly/SpinLock.h>
 #include <folly/Synchronized.h>
 #include <folly/test/SynchronizedTestLib.h>
 #include <folly/SpinLock.h>
 #include <folly/Synchronized.h>
 #include <folly/test/SynchronizedTestLib.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly::sync_tests;
 
 
 using namespace folly::sync_tests;
 
index faf60f7cb93176197f2b3f9b739d152dcd6c9346..3bb89c4f0e3516c2324a2afafdd57e3c254dba89 100644 (file)
 
 #pragma once
 
 
 #pragma once
 
-#include <gtest/gtest.h>
-
 #include <folly/Foreach.h>
 #include <folly/Random.h>
 #include <folly/Synchronized.h>
 #include <folly/Foreach.h>
 #include <folly/Random.h>
 #include <folly/Synchronized.h>
+#include <folly/portability/GTest.h>
 #include <glog/logging.h>
 #include <algorithm>
 #include <condition_variable>
 #include <glog/logging.h>
 #include <algorithm>
 #include <condition_variable>
index 2750f6d045a2e67beb0a8ce2ffc63ca39711fae1..f40885fdad53c76ebac22e595011060ffdf0ecb4 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <chrono>
 
 
 #include <chrono>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 // We use this to indicate that tests have failed because of timing
 // or dependencies that may be flakey. Internally this is used by
 
 // We use this to indicate that tests have failed because of timing
 // or dependencies that may be flakey. Internally this is used by
index 9332c7397edd5059b4a5d97924e2ca2b0fa7d2c3..8b6a1a7a3539842758b278a50f61b3a48d3f96ff 100644 (file)
 #include <unordered_map>
 
 #include <glog/logging.h>
 #include <unordered_map>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Range.h>
 #include <folly/Benchmark.h>
 #include <folly/Portability.h>
 
 #include <folly/Range.h>
 #include <folly/Benchmark.h>
 #include <folly/Portability.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 4f5c377e097933b34233b888a3a49738917425c5..74f6c4dc8d316d12ee15ae2f2e9548ac4c65c36c 100644 (file)
 #include <thread>
 
 #include <glog/logging.h>
 #include <thread>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/portability/GFlags.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index e2e2fce0ead5a8dced6088e8830eb604f5c86f91..c3a276d255fffe48c31206642df55a90416823f8 100644 (file)
 #include <unordered_map>
 
 #include <glog/logging.h>
 #include <unordered_map>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Baton.h>
 #include <folly/Memory.h>
 #include <folly/experimental/io/FsUtil.h>
 
 #include <folly/Baton.h>
 #include <folly/Memory.h>
 #include <folly/experimental/io/FsUtil.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
 #include <folly/portability/Unistd.h>
 
 using namespace folly;
index b4618c370939f5428172672e47f30f4018db7559..dd6daca3aa6b502ff3b565cd4d8d8c9e7b10fe68 100644 (file)
@@ -18,7 +18,7 @@
 #include <folly/Baton.h>
 #include <folly/ScopeGuard.h>
 #include <folly/ThreadName.h>
 #include <folly/Baton.h>
 #include <folly/ScopeGuard.h>
 #include <folly/ThreadName.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 581bf0d747aa4877b5a7b1f35ff2d4b92ce50c9c..2ac750dfaf8df7fee25e0371da122c8710bb7e23 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
 #include <folly/TimeoutQueue.h>
 
 #include <folly/TimeoutQueue.h>
 
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 
 TEST(TimeoutQueue, Simple) {
 using namespace folly;
 
 TEST(TimeoutQueue, Simple) {
index 3cb5ce8bedb0c71617aaf40c7c3e0c1794d03fb7..b672866f34e167b5a60398188bd7df77b0505867 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <random>
 
 
 #include <random>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;
index 91b2c9eef88fc17b170b45e76f79a3fc2d3ba292..69b238458a2395472b09d55f33f419da422ea518 100644 (file)
@@ -22,9 +22,9 @@
 #include <array>
 
 #include <glog/logging.h>
 #include <array>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Foreach.h>
 
 #include <folly/Foreach.h>
+#include <folly/portability/GTest.h>
 
 using std::chrono::seconds;
 using std::string;
 
 using std::chrono::seconds;
 using std::string;
index 7f0f49533902cff5442a6de2ec699ab35f8e06c2..632337823b9caf79003c8bd48c55bb3ec0adbcc4 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/test/TokenBucketTest.h>
 
 
 #include <folly/test/TokenBucketTest.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 652d532734cb819f6ee99db8fd0d85465004ddb1..8fc0315125903da1c55571009813a2fe78e7f9df 100644 (file)
@@ -16,9 +16,8 @@
 
 #pragma once
 
 
 #pragma once
 
-#include <gtest/gtest.h>
-
 #include <folly/TokenBucket.h>
 #include <folly/TokenBucket.h>
+#include <folly/portability/GTest.h>
 
 namespace folly {
 
 
 namespace folly {
 
index 71b6a17643e63bfeea02df7f610e2a90c5805d1e..a5f1a052822bb259c7996bc9b6d66b97a7fe7837 100644 (file)
@@ -22,7 +22,7 @@
 #include <utility>
 
 #include <folly/ScopeGuard.h>
 #include <utility>
 
 #include <folly/ScopeGuard.h>
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace std;
 
 using namespace folly;
 using namespace std;
index e1f2c4e9c65b4448a7660e850377446ec50d1af7..e9b600a35b3c7fe27a1637e8233e5a91b7a04fc1 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/Memory.h>
 #include <folly/Try.h>
 #include <folly/Memory.h>
 #include <folly/Try.h>
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 
 
 using namespace folly;
 
index 18ff4ab5db6affe4b00e515e6858dad7cdd8f013..4bfbf8263ca78d3f16b6013b6c98eac6f0b45690 100644 (file)
  * limitations under the License.
  */
 
  * limitations under the License.
  */
 
-#include <gtest/gtest.h>
-
 #include <folly/Unit.h>
 
 #include <folly/Unit.h>
 
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 
 TEST(Unit, operatorEq) {
 using namespace folly;
 
 TEST(Unit, operatorEq) {
index 8d80bbb6fec831c64159e80490449c087039ba15..cd1e8e4fdd6ed3e2e942341088dea1e8d371419a 100644 (file)
 
 #include <folly/Uri.h>
 #include <folly/Benchmark.h>
 
 #include <folly/Uri.h>
 #include <folly/Benchmark.h>
+#include <folly/portability/GTest.h>
 
 #include <boost/algorithm/string.hpp>
 #include <glog/logging.h>
 
 #include <boost/algorithm/string.hpp>
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 #include <map>
 
 using namespace folly;
 #include <map>
 
 using namespace folly;
index e5dd0e6a8873ad8d384e38630532ef8fe60c7a07..647ab73ade31f51a5edcfeb1ced313bd60540e3b 100644 (file)
 #include <vector>
 
 #include <glog/logging.h>
 #include <vector>
 
 #include <glog/logging.h>
-#include <gtest/gtest.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Random.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Random.h>
+#include <folly/portability/GTest.h>
 
 DEFINE_int32(random_seed, folly::randomNumberSeed(), "random seed");
 
 
 DEFINE_int32(random_seed, folly::randomNumberSeed(), "random seed");
 
index c8e08d8ade83235cc896c007c6614ecd5b413d46..acb53de3808e3e74826e0610af93ba76806911bf 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <folly/init/Init.h>
 
 
 #include <folly/init/Init.h>
 
-#include <gtest/gtest.h>
+#include <folly/portability/GTest.h>
 
 /*
  * This is the recommended main function for all tests.
 
 /*
  * This is the recommended main function for all tests.
index a7e211662aa2d077ed4ce8c0d85e098ec16f1f2d..6215fd73ea951808840c88b2aad612677fd1d942 100644 (file)
@@ -25,9 +25,9 @@
 #include <vector>
 
 #include <boost/algorithm/string.hpp>
 #include <vector>
 
 #include <boost/algorithm/string.hpp>
-#include <gtest/gtest.h>
 
 #include <folly/Conv.h>
 
 #include <folly/Conv.h>
+#include <folly/portability/GTest.h>
 #include <folly/portability/TypeTraits.h>
 
 using folly::small_vector;
 #include <folly/portability/TypeTraits.h>
 
 using folly::small_vector;
index 19a520347c3aad9597d938db5be1d48be2be5e38..5d0dbb150b115ca50c0a1010fefe83cdd2460437 100644 (file)
  */
 
 #include <folly/sorted_vector_types.h>
  */
 
 #include <folly/sorted_vector_types.h>
-#include <gtest/gtest.h>
+
 #include <list>
 #include <memory>
 
 #include <list>
 #include <memory>
 
+#include <folly/portability/GTest.h>
+
 using folly::sorted_vector_set;
 using folly::sorted_vector_map;
 
 using folly::sorted_vector_set;
 using folly::sorted_vector_map;
 
index 685ad4066b99ee35ebbc3b7a65c0a9d0e56b57bc..022d5fb31213afa803fdc9e007b026b6f58ccc5c 100644 (file)
@@ -181,13 +181,13 @@ THOUGHTS:
 #include <cstddef>
 #include <iomanip>
 
 #include <cstddef>
 #include <iomanip>
 
-#include <gtest/gtest.h>
 #include <boost/iterator/iterator_adaptor.hpp>
 #include <boost/preprocessor.hpp>
 
 #include <folly/Conv.h>
 #include <folly/ScopeGuard.h>
 #include <folly/portability/GFlags.h>
 #include <boost/iterator/iterator_adaptor.hpp>
 #include <boost/preprocessor.hpp>
 
 #include <folly/Conv.h>
 #include <folly/ScopeGuard.h>
 #include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
 
 using namespace std;
 using namespace folly;
 
 using namespace std;
 using namespace folly;