aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryelouis <yelouis@google.com>2023-09-21 16:51:52 -0700
committerSvilen Kanev <svilen.kanev@gmail.com>2023-10-12 10:08:16 -0700
commitf37433b50868b99fb98b4d874f6c6835df489eaf (patch)
treee8e205fa9402d881b264458858542207ac997c0f
parent9f65fe7444438a11028ccaccda323776630a90a1 (diff)
downloadperf_data_converter-f37433b50868b99fb98b4d874f6c6835df489eaf.tar.gz
Remove test_compat for internal cleanup
PiperOrigin-RevId: 567457163
-rw-r--r--src/BUILD8
-rw-r--r--src/compat/BUILD18
-rw-r--r--src/compat/test_compat.h34
-rw-r--r--src/intervalmap_test.cc3
-rw-r--r--src/perf_data_converter_test.cc3
-rw-r--r--src/perf_data_handler_test.cc3
-rw-r--r--src/perf_to_profile_lib_test.cc3
7 files changed, 12 insertions, 60 deletions
diff --git a/src/BUILD b/src/BUILD
index b6dafdd..1dfd1f0 100644
--- a/src/BUILD
+++ b/src/BUILD
@@ -58,7 +58,7 @@ cc_test(
srcs = ["perf_data_handler_test.cc"],
deps = [
":perf_data_handler",
- "//src/compat:test_compat",
+ "@com_google_googletest//:gtest_main",
"//src/quipper:binary_data_utils",
"//src/quipper:kernel",
"//src/quipper:perf_buildid",
@@ -105,7 +105,7 @@ cc_test(
":intervalmap",
":perf_data_converter",
":perf_data_handler",
- "//src/compat:test_compat",
+ "@com_google_googletest//:gtest_main",
"//src/quipper:perf_data_cc_proto",
"//src/quipper:perf_parser",
"//src/quipper:perf_reader",
@@ -118,7 +118,7 @@ cc_test(
srcs = ["intervalmap_test.cc"],
deps = [
":intervalmap",
- "//src/compat:test_compat",
+ "@com_google_googletest//:gtest_main",
],
)
@@ -153,7 +153,7 @@ cc_test(
deps = [
":perf_to_profile_lib",
"//src/quipper:base",
- "//src/compat:test_compat",
+ "@com_google_googletest//:gtest_main",
],
)
diff --git a/src/compat/BUILD b/src/compat/BUILD
deleted file mode 100644
index d79f95e..0000000
--- a/src/compat/BUILD
+++ /dev/null
@@ -1,18 +0,0 @@
-package(
- default_visibility = [
- "//src:__subpackages__",
- ],
-)
-
-licenses(["notice"])
-
-cc_library(
- name = "test_compat",
- testonly = 1,
- hdrs = [
- "test_compat.h",
- ],
- deps = [
- "@com_google_googletest//:gtest_main",
- ],
-)
diff --git a/src/compat/test_compat.h b/src/compat/test_compat.h
deleted file mode 100644
index 9a35f21..0000000
--- a/src/compat/test_compat.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (c) 2016, Google Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of Google Inc. nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL Google Inc. BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef PERFTOOLS_COMPAT_TEST_COMPAT_H_
-#define PERFTOOLS_COMPAT_TEST_COMPAT_H_
-
-#include <gtest/gtest.h>
-#include <gmock/gmock.h>
-
-#endif // PERFTOOLS_COMPAT_TEST_COMPAT_H_
diff --git a/src/intervalmap_test.cc b/src/intervalmap_test.cc
index 86f3c5a..4d65cfb 100644
--- a/src/intervalmap_test.cc
+++ b/src/intervalmap_test.cc
@@ -13,7 +13,8 @@
#include <utility>
#include <vector>
-#include "src/compat/test_compat.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace perftools {
namespace {
diff --git a/src/perf_data_converter_test.cc b/src/perf_data_converter_test.cc
index f093b0e..1715199 100644
--- a/src/perf_data_converter_test.cc
+++ b/src/perf_data_converter_test.cc
@@ -21,7 +21,8 @@
#include <utility>
#include <vector>
-#include "src/compat/test_compat.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
#include "src/intervalmap.h"
#include "src/perf_data_handler.h"
#include "src/quipper/perf_parser.h"
diff --git a/src/perf_data_handler_test.cc b/src/perf_data_handler_test.cc
index 0f4a0e9..10c85cf 100644
--- a/src/perf_data_handler_test.cc
+++ b/src/perf_data_handler_test.cc
@@ -11,7 +11,8 @@
#include <unordered_set>
#include <vector>
-#include "src/compat/test_compat.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
#include "src/path_matching.h"
#include "src/quipper/binary_data_utils.h"
#include "src/quipper/kernel/perf_event.h"
diff --git a/src/perf_to_profile_lib_test.cc b/src/perf_to_profile_lib_test.cc
index 41785a3..b392b4f 100644
--- a/src/perf_to_profile_lib_test.cc
+++ b/src/perf_to_profile_lib_test.cc
@@ -8,7 +8,8 @@
#include "src/perf_to_profile_lib.h"
#include "src/quipper/base/logging.h"
-#include "src/compat/test_compat.h"
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
namespace {