X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2Ftest%2FRWSpinLockTest.cpp;h=1f9c9eef91cc5f98395e8c7c4fe2f0975d661191;hb=d9acfc9e4d3f94c3470df9b45c7f0b6c172e8c23;hp=8fcba1f5fe4675e18c261cc96ca544afa8d00137;hpb=a449e4aa58564834289cc8cba430cc67fe72056f;p=folly.git diff --git a/folly/test/RWSpinLockTest.cpp b/folly/test/RWSpinLockTest.cpp index 8fcba1f5..1f9c9eef 100644 --- a/folly/test/RWSpinLockTest.cpp +++ b/folly/test/RWSpinLockTest.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2013 Facebook, Inc. + * Copyright 2017 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,15 +18,17 @@ // @author xliu (xliux@fb.com) // +#include + #include -#include #include #include -#include "gtest/gtest.h" -#include #include -#include "folly/RWSpinLock.h" + +#include +#include +#include DEFINE_int32(num_threads, 8, "num threads"); @@ -41,8 +43,7 @@ template struct RWSpinLockTest: public testing::Test { }; typedef testing::Types, RWTicketSpinLockT<32, false>, RWTicketSpinLockT<64, true>, @@ -235,9 +236,3 @@ TEST(RWSpinLock, concurrent_holder_test) { } } - -int main(int argc, char** argv) { - testing::InitGoogleTest(&argc, argv); - google::ParseCommandLineFlags(&argc, &argv, true); - return RUN_ALL_TESTS(); -}