Home
last modified time | relevance | path

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

/system/testing/gtest_extras/
DOptions.cpp162 std::string xml_file(value.substr(4)); in SetXmlFile() local
163 if (xml_file.empty()) { in SetXmlFile()
168 if (xml_file[0] != '/') { in SetXmlFile()
177 xml_file = std::string(cwd) + '/' + xml_file; in SetXmlFile()
182 if (xml_file.back() == '/') { in SetXmlFile()
183 xml_file += "test_details.xml"; in SetXmlFile()
185 strings_.find("xml_file")->second = xml_file; in SetXmlFile()
DOptions.h52 const std::string& xml_file() const { return strings_.at("xml_file"); } in xml_file() function
DIsolate.cpp631 FILE* fp = fopen(options_.xml_file().c_str(), "w"); in WriteXmlResults()
633 printf("Cannot open xml file '%s': %s\n", options_.xml_file().c_str(), strerror(errno)); in WriteXmlResults()
763 if (!options_.xml_file().empty()) { in Run()
/system/testing/gtest_extras/tests/
DOptionsTest.cpp77 EXPECT_EQ("", options.xml_file()); in TEST()
540 EXPECT_EQ("/file.xml", options.xml_file()); in TEST()
545 EXPECT_EQ("/directory/test_details.xml", options.xml_file()); in TEST()
554 EXPECT_EQ(expected_file, options.xml_file()); in TEST()
641 EXPECT_EQ("", options.xml_file()); in TEST()
824 EXPECT_EQ("/file.xml", options.xml_file()); in TEST()
DSystemTests.cpp923 FILE* xml_file = fopen(tf.path, "r"); in TEST_F() local
924 ASSERT_TRUE(xml_file != nullptr) << "Failed to find xml file:\n" << raw_output_; in TEST_F()
929 while ((bytes = fread(buffer.data(), 1, buffer.size(), xml_file)) > 0) { in TEST_F()
932 fclose(xml_file); in TEST_F()