projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add hardware crc impl
[folly.git]
/
folly
/
test
/
RWSpinLockTest.cpp
diff --git
a/folly/test/RWSpinLockTest.cpp
b/folly/test/RWSpinLockTest.cpp
index 2369eef09e2370bc5e7522298459de8dc2343872..1f9c9eef91cc5f98395e8c7c4fe2f0975d661191 100644
(file)
--- a/
folly/test/RWSpinLockTest.cpp
+++ b/
folly/test/RWSpinLockTest.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
4
Facebook, Inc.
+ * Copyright 201
7
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* 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)
//
// @author xliu (xliux@fb.com)
//
+#include <folly/RWSpinLock.h>
+
#include <stdlib.h>
#include <stdlib.h>
-#include <unistd.h>
#include <vector>
#include <thread>
#include <vector>
#include <thread>
-#include <gtest/gtest.h>
-#include <gflags/gflags.h>
#include <glog/logging.h>
#include <glog/logging.h>
-#include "folly/RWSpinLock.h"
+
+#include <folly/portability/GFlags.h>
+#include <folly/portability/GTest.h>
+#include <folly/portability/Unistd.h>
DEFINE_int32(num_threads, 8, "num threads");
DEFINE_int32(num_threads, 8, "num threads");
@@
-234,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();
-}