summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dino Radakovic <dinor@google.com>2022-05-03 09:14:22 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-05-03 09:15:10 -0700
commitcc04c0e07427deb78091231238189d14561a9441 (patch)
tree1193f63129f6e176d0649c009ab51503de82c402
parentd29393ceb9055722760442f51b7d44e3b2d0660f (diff)
Rename function_ref_benchmark.cc into more generic function_type_benchmark.cc, add missing includes
PiperOrigin-RevId: 446209567 Change-Id: I9aac8ce10b93ed71f1260931995af1d32db6f780
-rw-r--r--absl/functional/BUILD.bazel4
-rw-r--r--absl/functional/function_type_benchmark.cc (renamed from absl/functional/function_ref_benchmark.cc)7
2 files changed, 6 insertions, 5 deletions
diff --git a/absl/functional/BUILD.bazel b/absl/functional/BUILD.bazel
index f9f2b9c2..dbfa81f3 100644
--- a/absl/functional/BUILD.bazel
+++ b/absl/functional/BUILD.bazel
@@ -78,9 +78,9 @@ cc_test(
)
cc_test(
- name = "function_ref_benchmark",
+ name = "function_type_benchmark",
srcs = [
- "function_ref_benchmark.cc",
+ "function_type_benchmark.cc",
],
copts = ABSL_TEST_COPTS,
tags = ["benchmark"],
diff --git a/absl/functional/function_ref_benchmark.cc b/absl/functional/function_type_benchmark.cc
index 045305bf..1b27eebf 100644
--- a/absl/functional/function_ref_benchmark.cc
+++ b/absl/functional/function_type_benchmark.cc
@@ -1,4 +1,4 @@
-// Copyright 2019 The Abseil Authors.
+// Copyright 2022 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -12,12 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "absl/functional/function_ref.h"
-
+#include <functional>
#include <memory>
+#include <string>
#include "benchmark/benchmark.h"
#include "absl/base/attributes.h"
+#include "absl/functional/function_ref.h"
namespace absl {
ABSL_NAMESPACE_BEGIN