| 27 | class dmHttpCacheTest : public jc_test_base_class |
| 28 | { |
| 29 | void SetUp() override |
| 30 | { |
| 31 | char path[1024]; |
| 32 | dmTestUtil::MakeHostPath(path, sizeof(path), "tmp"); |
| 33 | dmSys::Mkdir(path, 0755); |
| 34 | |
| 35 | dmTestUtil::MakeHostPath(path, sizeof(path), "tmp/afile"); |
| 36 | FILE* f = fopen(path, "wb"); |
| 37 | fclose(f); |
| 38 | |
| 39 | dmTestUtil::MakeHostPath(m_Path, sizeof(m_Path), "tmp/cache"); |
| 40 | dmSys::RmTree(m_Path); |
| 41 | } |
| 42 | |
| 43 | public: |
| 44 | dmHttpCache::Result Put(dmHttpCache::HCache cache, const char* uri, const char* etag, const void* content, uint32_t content_len, |
nothing calls this directly
no test coverage detected