diff options
author | Derek Mauro <dmauro@google.com> | 2022-12-06 01:38:46 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-12-06 01:39:39 (GMT) |
commit | 97459e54ec4f1882d219c413c929f719d9741ada (patch) | |
tree | 6bc4b776b0aa24bd669cbddb25ac4e4073c8f9bc /googletest | |
parent | 1f643f71d4151c3b364c0e9302042f7a6debd439 (diff) | |
download | googletest-97459e54ec4f1882d219c413c929f719d9741ada.zip googletest-97459e54ec4f1882d219c413c929f719d9741ada.tar.gz googletest-97459e54ec4f1882d219c413c929f719d9741ada.tar.bz2 |
Remove the unused class TestNameIs
Fixes #4076
PiperOrigin-RevId: 493158910
Change-Id: Id66c0443a6f5f4d167ae39ac79766b32cf95a383
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/src/gtest.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index d01cbd5..281d933 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -2784,37 +2784,6 @@ void ReportInvalidTestSuiteType(const char* test_suite_name, code_location.line) << " " << errors.GetString(); } -} // namespace internal - -namespace { - -// A predicate that checks the test name of a TestInfo against a known -// value. -// -// This is used for implementation of the TestSuite class only. We put -// it in the anonymous namespace to prevent polluting the outer -// namespace. -// -// TestNameIs is copyable. -class TestNameIs { - public: - // Constructor. - // - // TestNameIs has NO default constructor. - explicit TestNameIs(const char* name) : name_(name) {} - - // Returns true if and only if the test name of test_info matches name_. - bool operator()(const TestInfo* test_info) const { - return test_info && test_info->name() == name_; - } - - private: - std::string name_; -}; - -} // namespace - -namespace internal { // This method expands all parameterized tests registered with macros TEST_P // and INSTANTIATE_TEST_SUITE_P into regular tests and registers those. |