Records
Functions
-
void MockHttpGetResponse (web_runner_tests::TestServer * serverconst char * resource)This is a mock GET request handler built on top of |TestServer| that handles serving test pages
hosted in /pkg/data. Assuming they live in a /data subdirectory of your test, the |test_package|
target of your BUILD.gn needs a |resources| variable that looks something like this:
resources = [
{
path = rebase_path("data/my_page.html")
dest = "my_page.html"
},
]
For an example usage, see web_runner_pixel_tests.cc.
Defined at line 16 of file ../../src/chromium/web_runner_tests/mock_get.cc