Searched refs:ofs (Results 1 – 5 of 5) sorted by relevance
47 std::ofstream ofs(file_path); in TEST_F() local48 ofs << expected; in TEST_F()49 ASSERT_FALSE(ofs.fail()); in TEST_F()50 ofs.close(); in TEST_F()102 std::ofstream ofs(file_path); in TEST_F() local103 ofs.close(); in TEST_F()106 ofs << record; in TEST_F()108 ASSERT_TRUE(ofs.fail()); in TEST_F()109 ASSERT_TRUE(!ofs.good()); in TEST_F()
124 std::ofstream ofs(log_path_, std::ofstream::trunc); in Write() local125 if (!ofs.good()) { in Write()129 ofs << kLogVersion << std::endl; in Write()131 ofs << entry; in Write()132 if (ofs.fail()) { in Write()
142 std::ofstream ofs(path); in WriteToFile() local143 ofs << record; in WriteToFile()
739 std::ofstream ofs(path.c_str(), std::ofstream::out | std::ofstream::binary); in WriteTo() local740 ofs.write(reinterpret_cast<const char*>(data_.data()), data_.size()); in WriteTo()741 ofs.flush(); in WriteTo()742 CHECK(ofs.good()); in WriteTo()743 ofs.close(); in WriteTo()
133 std::ofstream ofs(file.GetFilename(), std::ofstream::out); in OpenStream() local134 if (ofs.fail()) { in OpenStream()138 return ofs; in OpenStream()