| 66 | std::string m_Stream; |
| 67 | |
| 68 | virtual void SetUp() |
| 69 | { |
| 70 | m_Zip = 0; |
| 71 | |
| 72 | dmZip::Result zr; |
| 73 | if (GetParam().m_UseStream) |
| 74 | { |
| 75 | ASSERT_TRUE(ReadFile(GetParam().m_Path, &m_Stream)); |
| 76 | zr = dmZip::OpenStream(m_Stream.data(), m_Stream.size(), &m_Zip); |
| 77 | } |
| 78 | else |
| 79 | { |
| 80 | char path[1024]; |
| 81 | dmTestUtil::MakeHostPath(path, sizeof(path), GetParam().m_Path); |
| 82 | zr = dmZip::Open(path, &m_Zip); |
| 83 | } |
| 84 | |
| 85 | ASSERT_EQ(dmZip::RESULT_OK, zr); |
| 86 | } |
| 87 | |
| 88 | virtual void TearDown() |
| 89 | { |
nothing calls this directly
no test coverage detected