Lines Matching refs:Transport
43 std::shared_ptr<fake::Transport> transport(new fake::Transport);
44 transport->AddHandler(
56 transport,
65 std::shared_ptr<fake::Transport> transport(new fake::Transport);
66 transport->AddHandler(
88 transport,
94 std::shared_ptr<fake::Transport> transport(new fake::Transport);
95 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
108 transport,
116 std::shared_ptr<fake::Transport> transport(new fake::Transport);
117 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
125 transport,
133 std::shared_ptr<fake::Transport> transport(new fake::Transport);
134 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
142 transport,
150 std::shared_ptr<fake::Transport> transport(new fake::Transport);
153 request_type::kGet, "http://blah.com", {}, transport, nullptr);
159 std::shared_ptr<fake::Transport> transport(new fake::Transport);
173 transport,
179 std::shared_ptr<fake::Transport> transport(new fake::Transport);
192 transport->AddHandler(json_echo_url, "*", base::Bind(JsonEchoHandler));
198 }, transport, nullptr);
232 std::shared_ptr<fake::Transport> transport(new fake::Transport);
233 transport->AddHandler(kFakeUrl, request_type::kGet, base::Bind(GetHandler));
234 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
237 auto response = http::GetAndBlock(kMethodEchoUrl, {}, transport, nullptr);
244 response = http::GetAndBlock(url, {}, transport, nullptr);
258 std::shared_ptr<fake::Transport> transport(new fake::Transport);
259 transport->AddHandler(kFakeUrl, request_type::kHead, base::Bind(HeadHandler));
261 auto response = http::HeadAndBlock(kFakeUrl, transport, nullptr);
284 std::shared_ptr<fake::Transport> transport(new fake::Transport);
285 transport->AddHandler(kFakeUrl, request_type::kPost, base::Bind(Handler));
296 transport,
316 std::shared_ptr<fake::Transport> transport(new fake::Transport);
317 transport->AddHandler(
324 transport,
332 std::shared_ptr<fake::Transport> transport(new fake::Transport);
333 transport->AddHandler(
340 }, {}, transport, nullptr);
348 std::shared_ptr<fake::Transport> transport(new fake::Transport);
349 transport->AddHandler(
357 kFakeUrl, std::move(form_data), {}, transport, nullptr);
385 std::shared_ptr<fake::Transport> transport(new fake::Transport);
386 transport->AddHandler(kFakeUrl, "*", base::Bind(JsonHandler));
395 http::PostJsonAndBlock(kFakeUrl, &json, {}, transport, nullptr);
404 response = http::PatchJsonAndBlock(kFakeUrl, &json, {}, transport, nullptr);
419 std::shared_ptr<fake::Transport> transport(new fake::Transport);
420 transport->AddHandler(kFakeUrl, request_type::kPost, base::Bind(JsonHandler));
429 }, {}, transport, nullptr);
440 auto response = http::GetAndBlock("http://bad.url", {}, transport, nullptr);
450 std::shared_ptr<fake::Transport> transport(new fake::Transport);
451 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
454 transport->SetCreateConnectionError(std::move(error));
457 request_type::kGet, "http://blah.com", {}, transport, &error);
465 std::shared_ptr<fake::Transport> transport(new fake::Transport);
466 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
469 transport->SetCreateConnectionError(std::move(error));
483 transport,