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
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());
}
#include <cstdlib>
#include <ctime>
+#include <gtest/gtest.h>
+
using namespace ::folly::hash;
static bool failed = false;
}
#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);
}
#include <cstdlib>
#include <ctime>
+#include <gtest/gtest.h>
+
using namespace ::folly::hash;
static bool failed = false;
}
#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);
}
*/
#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>