present = (bool)f["present"];
empty = (bool)f["empty"];
clean = (bool)f["clean"];
- host = (string)f["rwl_host"];
- path = (string)f["rwl_path"];
+ host = (string)f["pwl_host"];
+ path = (string)f["pwl_path"];
uint64_t pwl_size;
- std::istringstream iss(f["rwl_size"]);
+ std::istringstream iss(f["pwl_size"]);
iss >> pwl_size;
size = pwl_size;
JSONFormattable f;
string strf = "{ \"present\": \"1\", \"empty\": \"0\", \"clean\": \"0\", \
- \"rwl_host\": \"testhost\", \
- \"rwl_path\": \"/tmp\", \
- \"rwl_size\": \"1024\" }";
+ \"pwl_host\": \"testhost\", \
+ \"pwl_path\": \"/tmp\", \
+ \"pwl_size\": \"1024\" }";
get_jf(strf, &f);
MockImageCacheStateRWL image_cache_state(&mock_image_ctx, f);