test/unit_tests/preprocessor_test.cpp
TEST_F(PreprocessorTests, OneDefinePassedIn) {
  std::set<std::string> defines;
  defines.insert("foo");
  bool result =
      fplbase::LoadFileWithDirectives("", &file_, defines, &error_message_);
  EXPECT_TRUE(result);
  EXPECT_EQ(file_, std::string("#define foo\n"));
}
// #defines passed-in should be inserted into the file. Try with just one.
defines passed-in should be inserted into the file. Try with just one.
defines passed - in should be inserted into the file . Try with just one .
TEST_F(PreprocessorTests, OneDefinePassedIn) {
  std::set<std::string> defines;
  defines.insert("foo");
  bool result =
      fplbase::LoadFileWithDirectives("", &file_, defines, &error_message_);
  EXPECT_TRUE(result);
  EXPECT_EQ(file_, std::string("#define foo\n"));
}
TEST_F ( PreprocessorTests , OneDefinePassedIn ) { std :: set < std :: string > defines ; defines . insert ( " " ) ; bool result = fplbase :: LoadFileWithDirectives ( " " , & file_ , defines , & error_message_ ) ; EXPECT_TRUE ( result ) ; EXPECT_EQ ( file_ , std :: string ( " \n " ) ) ; }
defines passed-in should be inserted into the file.
defines passed - in should be inserted into the file .