| 50 | } |
| 51 | |
| 52 | bool |
| 53 | StubIncludeHandler::getData(int include_id, const char *&data, int &data_len) |
| 54 | { |
| 55 | TestHttpDataFetcher &test_fetcher = dynamic_cast<TestHttpDataFetcher &>(_http_fetcher); |
| 56 | if (test_fetcher.getReturnData()) { |
| 57 | char *buf = new char[1024]; |
| 58 | data_len = snprintf(buf, 1024, "%s%d", DATA_PREFIX, include_id); |
| 59 | data = buf; |
| 60 | heap_strings.push_back(buf); |
| 61 | return true; |
| 62 | } |
| 63 | return false; |
| 64 | } |
| 65 | |
| 66 | void |
| 67 | StubIncludeHandler::getFooter(const char *&footer, int &footer_len) |
no test coverage detected