void CheckHeaders(const WebServiceWorkerResponse& webResponse) { EXPECT_STREQ("foo", webResponse.getHeader("set-cookie").utf8().c_str()); EXPECT_STREQ("bar", webResponse.getHeader("bar").utf8().c_str()); EXPECT_STREQ("no-cache", webResponse.getHeader("cache-control").utf8().c_str()); }