folly: make remaining TARGETS files auto converitble to BUCK files
authorAndrew Gallagher <agallagher@fb.com>
Sat, 10 Jan 2015 03:25:31 +0000 (19:25 -0800)
committerViswanath Sivakumar <viswanath@fb.com>
Tue, 13 Jan 2015 19:01:05 +0000 (11:01 -0800)
Summary: Also add the `@buckify` tag to keep these automatically synced.

Test Plan: built and tested with buck and fbconfig/fbmake

Reviewed By: robbert@fb.com

Subscribers: trunkagent, sdwilsh, fugalh, folly-diffs@, jsedgwick

FB internal diff: D1775555

Signature: t1:1775555:1420840948:e9a2e86379be71b7d953fa53a727e51d2541b011

folly/io/async/test/EventBaseTest.cpp
folly/test/SpookyHashV1Test.cpp
folly/test/SpookyHashV2Test.cpp
folly/wangle/acceptor/Acceptor.h

index a8ff23c7b7e77d39805f85accf44c06b8a10540f..c98871699e7ba1aafce7c9f2d35ff0325ca58d9b 100644 (file)
@@ -1484,6 +1484,7 @@ TEST(EventBaseTest, IdleTime) {
   ASSERT_EQ(7, tos0.getTimeouts());
   ASSERT_GE(5900, eventBase.getAvgLoopTime() - 1200);
   ASSERT_LE(5900, eventBase.getAvgLoopTime() + 1200);
+  ASSERT_TRUE(!!tos);
   ASSERT_EQ(21, tos->getTimeouts());
 }
 
index 804836f60d2da5779e3ddb45dff06de8acecc970..d55a1b9380352788d3bae35f9941b7e13565fdc5 100644 (file)
@@ -30,6 +30,8 @@
 #include <cstdlib>
 #include <ctime>
 
+#include <gtest/gtest.h>
+
 using namespace ::folly::hash;
 
 static bool failed = false;
@@ -532,16 +534,15 @@ void TestPieces()
 }
 #undef BUFSIZE
 
-int main(int argc, const char **argv)
-{
+TEST(SpookyHashV1, Main) {
     TestResults();
     TestAlignment();
     TestPieces();
-    DoTimingBig(argc);
+    DoTimingBig(1);
     // tudorb@fb.com: Commented out slow tests
 #if 0
     DoTimingSmall(argc);
     TestDeltas(argc);
 #endif
-    return failed;
+    CHECK_EQ(failed, 0);
 }
index eaa27ace8c51a2ea437d2d9d5193ef501690ef2f..be6cde1c6f094160e7d7f86d70b2d45734e97602 100644 (file)
@@ -30,6 +30,8 @@
 #include <cstdlib>
 #include <ctime>
 
+#include <gtest/gtest.h>
+
 using namespace ::folly::hash;
 
 static bool failed = false;
@@ -522,16 +524,15 @@ void TestPieces()
 }
 #undef BUFSIZE
 
-int main(int argc, const char **argv)
-{
+TEST(SpookyHashV2, Main) {
     TestResults();
     TestAlignment();
     TestPieces();
-    DoTimingBig(argc);
+    DoTimingBig(1);
     // tudorb@fb.com: Commented out slow tests
 #if 0
     DoTimingSmall(argc);
     TestDeltas(argc);
 #endif
-    return failed;
+    CHECK_EQ(failed, 0);
 }
index 9c4563ba45a7e7a41596de8e1a514ca0e8d0a506..23d8ee022e180aafe99b77fc1fde8567e5c5f37b 100644 (file)
@@ -9,12 +9,12 @@
  */
 #pragma once
 
-#include "folly/wangle/acceptor/ServerSocketConfig.h"
-#include "folly/wangle/acceptor/ConnectionCounter.h"
+#include <folly/wangle/acceptor/ServerSocketConfig.h>
+#include <folly/wangle/acceptor/ConnectionCounter.h>
 #include <folly/wangle/acceptor/ConnectionManager.h>
-#include "folly/wangle/acceptor/LoadShedConfiguration.h"
-#include "folly/wangle/ssl/SSLCacheProvider.h"
-#include "folly/wangle/acceptor/TransportInfo.h"
+#include <folly/wangle/acceptor/LoadShedConfiguration.h>
+#include <folly/wangle/ssl/SSLCacheProvider.h>
+#include <folly/wangle/acceptor/TransportInfo.h>
 
 #include <chrono>
 #include <event.h>