From cc04c0e07427deb78091231238189d14561a9441 Mon Sep 17 00:00:00 2001 From: Dino Radakovic Date: Tue, 3 May 2022 09:14:22 -0700 Subject: [PATCH] Rename function_ref_benchmark.cc into more generic function_type_benchmark.cc, add missing includes PiperOrigin-RevId: 446209567 Change-Id: I9aac8ce10b93ed71f1260931995af1d32db6f780 --- absl/functional/BUILD.bazel | 4 ++-- ...unction_ref_benchmark.cc => function_type_benchmark.cc} | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) rename absl/functional/{function_ref_benchmark.cc => function_type_benchmark.cc} (98%) 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 similarity index 98% rename from absl/functional/function_ref_benchmark.cc rename to 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 #include +#include #include "benchmark/benchmark.h" #include "absl/base/attributes.h" +#include "absl/functional/function_ref.h" namespace absl { ABSL_NAMESPACE_BEGIN