| 203 | } |
| 204 | |
| 205 | bool writeStringToFile(const std::string& data, const std::string& file_name) { |
| 206 | File* file = File::open(file_name, "w"); |
| 207 | if (file == NULL) return false; |
| 208 | return (file->writeString(data) == data.size() && file->close()); |
| 209 | } |
| 210 | |
| 211 | namespace { |
| 212 | class NoOpErrorCollector : public google::protobuf::io::ErrorCollector { |
no test coverage detected