Home
last modified time | relevance | path

Searched refs:xml_file (Results 1 – 5 of 5) sorted by relevance

/system/testing/gtest_extras/
DOptions.cpp163 std::string xml_file(value.substr(4)); in SetXmlFile() local
164 if (xml_file.empty()) { in SetXmlFile()
169 if (xml_file[0] != '/') { in SetXmlFile()
178 xml_file = std::string(cwd) + '/' + xml_file; in SetXmlFile()
183 if (xml_file.back() == '/') { in SetXmlFile()
184 xml_file += "test_details.xml"; in SetXmlFile()
186 strings_.find("xml_file")->second = xml_file; in SetXmlFile()
DOptions.h51 const std::string& xml_file() const { return strings_.at("xml_file"); } in xml_file() function
DIsolate.cpp673 FILE* fp = fopen(options_.xml_file().c_str(), "w"); in WriteXmlResults()
675 printf("Cannot open xml file '%s': %s\n", options_.xml_file().c_str(), strerror(errno)); in WriteXmlResults()
805 if (!options_.xml_file().empty()) { in Run()
/system/testing/gtest_extras/tests/
DOptionsTest.cpp95 EXPECT_EQ("", options.xml_file()); in TEST_F()
480 EXPECT_EQ("/file.xml", options.xml_file()); in TEST_F()
486 EXPECT_EQ("/directory/test_details.xml", options.xml_file()); in TEST_F()
496 EXPECT_EQ(expected_file, options.xml_file()); in TEST_F()
663 EXPECT_EQ("", options.xml_file()); in TEST_F()
835 EXPECT_EQ("/file.xml", options.xml_file()); in TEST_F()
DSystemTests.cpp919 FILE* xml_file = fopen(tf.path, "r"); in TEST_F() local
920 ASSERT_TRUE(xml_file != nullptr) << "Failed to find xml file:\n" << raw_output_; in TEST_F()
925 while ((bytes = fread(buffer.data(), 1, buffer.size(), xml_file)) > 0) { in TEST_F()
928 fclose(xml_file); in TEST_F()