/*
- * Copyright 2014 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.
#include <vector>
#include <glog/logging.h>
-#include <gtest/gtest.h>
#include <folly/Conv.h>
+#include <folly/portability/GTest.h>
namespace folly { namespace test {
std::vector<std::thread> threads;
threads.reserve(numThreadsPerStage * 2 + 1);
for (size_t i = 0; i < numThreadsPerStage; ++i) {
- threads.emplace_back([&a, i] () {
+ threads.emplace_back([&a] {
for (;;) {
int val;
auto ticket = a.blockingReadStage<0>(val);
}
for (size_t i = 0; i < numThreadsPerStage; ++i) {
- threads.emplace_back([&a, i] () {
+ threads.emplace_back([&a] {
for (;;) {
std::string val;
auto ticket = a.blockingReadStage<1>(val);
}
}
-}} // namespaces
+} // namespace test
+} // namespace folly
int main(int argc, char *argv[]) {
testing::InitGoogleTest(&argc, argv);