@@ -71,10 +71,6 @@ class TestPreprocessor : public TestFixture {
7171
7272 return tokens2.stringify ();
7373 }
74-
75- static int getHeaderFileName (std::string &str) {
76- return Preprocessor::getHeaderFileName (str);
77- }
7874 };
7975
8076private:
@@ -197,7 +193,6 @@ class TestPreprocessor : public TestFixture {
197193 TEST_CASE (conditionalDefine);
198194 TEST_CASE (macro_parameters);
199195 TEST_CASE (newline_in_macro);
200- TEST_CASE (includes);
201196 TEST_CASE (ifdef_ifdefined);
202197
203198 // define and then ifdef
@@ -2001,38 +1996,6 @@ class TestPreprocessor : public TestFixture {
20011996 ASSERT_EQUALS (" " , errout.str ());
20021997 }
20031998
2004- void includes () const {
2005- {
2006- std::string src = " #include a.h" ;
2007- ASSERT_EQUALS (OurPreprocessor::NoHeader, OurPreprocessor::getHeaderFileName (src));
2008- ASSERT_EQUALS (" " , src);
2009- }
2010-
2011- {
2012- std::string src = " #include \" b.h\" " ;
2013- ASSERT_EQUALS (OurPreprocessor::UserHeader, OurPreprocessor::getHeaderFileName (src));
2014- ASSERT_EQUALS (" b.h" , src);
2015- }
2016-
2017- {
2018- std::string src = " #include <c.h>" ;
2019- ASSERT_EQUALS (OurPreprocessor::SystemHeader, OurPreprocessor::getHeaderFileName (src));
2020- ASSERT_EQUALS (" c.h" , src);
2021- }
2022-
2023- {
2024- std::string src = " #include \" d/d.h\" " ;
2025- ASSERT_EQUALS (OurPreprocessor::UserHeader, OurPreprocessor::getHeaderFileName (src));
2026- ASSERT_EQUALS (" d/d.h" , src);
2027- }
2028-
2029- {
2030- std::string src = " #include \" e\\ e.h\" " ;
2031- ASSERT_EQUALS (OurPreprocessor::UserHeader, OurPreprocessor::getHeaderFileName (src));
2032- ASSERT_EQUALS (" e/e.h" , src);
2033- }
2034- }
2035-
20361999 void ifdef_ifdefined () {
20372000 const char filedata[] = " #ifdef ABC\n "
20382001 " A\n "
0 commit comments