19 #include "glog/logging.h" 20 #include "gtest/gtest.h" 26 std::shared_ptr<std::vector<char>> content)
27 : is_closed_(false), content_(content), filename_(filename) {
28 CHECK(content !=
nullptr);
48 std::copy(data, data + len,
content_->begin());
FakeFileWriter(const std::string &filename, std::shared_ptr< std::vector< char >> content)
std::shared_ptr< std::vector< char > > content_
bool Write(const char *data, size_t len) override
bool WriteHeader(const char *data, size_t len) override
std::string GetFilename() override