Commit f3ac5cca authored by Andrew Gallagher's avatar Andrew Gallagher Committed by Viswanath Sivakumar

folly: make remaining TARGETS files auto converitble to BUCK files

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
parent 1507fc0b
...@@ -1484,6 +1484,7 @@ TEST(EventBaseTest, IdleTime) { ...@@ -1484,6 +1484,7 @@ TEST(EventBaseTest, IdleTime) {
ASSERT_EQ(7, tos0.getTimeouts()); ASSERT_EQ(7, tos0.getTimeouts());
ASSERT_GE(5900, eventBase.getAvgLoopTime() - 1200); ASSERT_GE(5900, eventBase.getAvgLoopTime() - 1200);
ASSERT_LE(5900, eventBase.getAvgLoopTime() + 1200); ASSERT_LE(5900, eventBase.getAvgLoopTime() + 1200);
ASSERT_TRUE(!!tos);
ASSERT_EQ(21, tos->getTimeouts()); ASSERT_EQ(21, tos->getTimeouts());
} }
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include <cstdlib> #include <cstdlib>
#include <ctime> #include <ctime>
#include <gtest/gtest.h>
using namespace ::folly::hash; using namespace ::folly::hash;
static bool failed = false; static bool failed = false;
...@@ -532,16 +534,15 @@ void TestPieces() ...@@ -532,16 +534,15 @@ void TestPieces()
} }
#undef BUFSIZE #undef BUFSIZE
int main(int argc, const char **argv) TEST(SpookyHashV1, Main) {
{
TestResults(); TestResults();
TestAlignment(); TestAlignment();
TestPieces(); TestPieces();
DoTimingBig(argc); DoTimingBig(1);
// tudorb@fb.com: Commented out slow tests // tudorb@fb.com: Commented out slow tests
#if 0 #if 0
DoTimingSmall(argc); DoTimingSmall(argc);
TestDeltas(argc); TestDeltas(argc);
#endif #endif
return failed; CHECK_EQ(failed, 0);
} }
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include <cstdlib> #include <cstdlib>
#include <ctime> #include <ctime>
#include <gtest/gtest.h>
using namespace ::folly::hash; using namespace ::folly::hash;
static bool failed = false; static bool failed = false;
...@@ -522,16 +524,15 @@ void TestPieces() ...@@ -522,16 +524,15 @@ void TestPieces()
} }
#undef BUFSIZE #undef BUFSIZE
int main(int argc, const char **argv) TEST(SpookyHashV2, Main) {
{
TestResults(); TestResults();
TestAlignment(); TestAlignment();
TestPieces(); TestPieces();
DoTimingBig(argc); DoTimingBig(1);
// tudorb@fb.com: Commented out slow tests // tudorb@fb.com: Commented out slow tests
#if 0 #if 0
DoTimingSmall(argc); DoTimingSmall(argc);
TestDeltas(argc); TestDeltas(argc);
#endif #endif
return failed; CHECK_EQ(failed, 0);
} }
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
*/ */
#pragma once #pragma once
#include "folly/wangle/acceptor/ServerSocketConfig.h" #include <folly/wangle/acceptor/ServerSocketConfig.h>
#include "folly/wangle/acceptor/ConnectionCounter.h" #include <folly/wangle/acceptor/ConnectionCounter.h>
#include <folly/wangle/acceptor/ConnectionManager.h> #include <folly/wangle/acceptor/ConnectionManager.h>
#include "folly/wangle/acceptor/LoadShedConfiguration.h" #include <folly/wangle/acceptor/LoadShedConfiguration.h>
#include "folly/wangle/ssl/SSLCacheProvider.h" #include <folly/wangle/ssl/SSLCacheProvider.h>
#include "folly/wangle/acceptor/TransportInfo.h" #include <folly/wangle/acceptor/TransportInfo.h>
#include <chrono> #include <chrono>
#include <event.h> #include <event.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment