mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
removed unused header
This commit is contained in:
parent
fa1845abdf
commit
b5c87edcf9
@ -1,34 +0,0 @@
|
||||
#ifndef WFP_JSON_MATCHER_HPP
|
||||
#define FW_JSON_MATCHER_HPP
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <jansson.h>
|
||||
|
||||
namespace webfuse_test
|
||||
{
|
||||
|
||||
MATCHER_P(JsonMatcher, expected_str, "")
|
||||
{
|
||||
std::cout << "--- JsonMatcher ---" << std::endl;
|
||||
bool matches = false;
|
||||
json_t * expected = json_loads(expected_str, 0, nullptr);
|
||||
if (nullptr != expected)
|
||||
{
|
||||
matches = (1 == json_equal(expected, arg));
|
||||
if (!matches)
|
||||
{
|
||||
char * actual = json_dumps(arg, 0);
|
||||
std::cout << actual << std::endl;
|
||||
*result_listener << "where arg is " << actual;
|
||||
free(actual);
|
||||
}
|
||||
|
||||
json_decref(expected);
|
||||
}
|
||||
|
||||
return true; //matches;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user