projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix copyright lines
[folly.git]
/
folly
/
test
/
FBVectorBenchmark.cpp
diff --git
a/folly/test/FBVectorBenchmark.cpp
b/folly/test/FBVectorBenchmark.cpp
index 0b676912be3b4304d33bac6e4610bf273fdcd541..eaa0bc90357f66f382e1d2b22f0d76173f672db3 100644
(file)
--- a/
folly/test/FBVectorBenchmark.cpp
+++ b/
folly/test/FBVectorBenchmark.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
6
Facebook, Inc.
+ * Copyright 201
2-present
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.
@@
-17,18
+17,19
@@
//
// Author: andrei.alexandrescu@fb.com
//
// Author: andrei.alexandrescu@fb.com
+#include <list>
+#include <memory>
+
+#include <boost/random.hpp>
+
#include <folly/Benchmark.h>
#include <folly/FBString.h>
#include <folly/FBVector.h>
#include <folly/Benchmark.h>
#include <folly/FBString.h>
#include <folly/FBVector.h>
-#include <folly/Foreach.h>
#include <folly/Random.h>
#include <folly/Traits.h>
#include <folly/Random.h>
#include <folly/Traits.h>
+#include <folly/container/Foreach.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GFlags.h>
-
-#include <gtest/gtest.h>
-#include <list>
-#include <memory>
-#include <boost/random.hpp>
+#include <folly/portability/GTest.h>
using namespace std;
using namespace folly;
using namespace std;
using namespace folly;
@@
-68,13
+69,13
@@
std::list<char> RandomList(unsigned int maxSize) {
return lst;
}
return lst;
}
-template<class T> T randomObject();
+template
<class T> T randomObject();
-template<> int randomObject<int>() {
+template
<> int randomObject<int>() {
return random(0, 1024);
}
return random(0, 1024);
}
-template<> folly::fbstring randomObject<folly::fbstring>() {
+template
<> folly::fbstring randomObject<folly::fbstring>() {
folly::fbstring result;
randomString(&result);
return result;
folly::fbstring result;
randomString(&result);
return result;