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,
315 std::shared_ptr<fake::Transport> transport(new fake::Transport);
316 transport->AddHandler(kFakeUrl, request_type::kPost, base::Bind(PostHandler));
322 transport,
330 std::shared_ptr<fake::Transport> transport(new fake::Transport);
331 transport->AddHandler(
338 }, {}, transport, nullptr);
346 std::shared_ptr<fake::Transport> transport(new fake::Transport);
347 transport->AddHandler(
355 kFakeUrl, std::move(form_data), {}, transport, nullptr);
383 std::shared_ptr<fake::Transport> transport(new fake::Transport);
384 transport->AddHandler(kFakeUrl, "*", base::Bind(JsonHandler));
393 transport, nullptr);
402 response = http::PatchJsonAndBlock(kFakeUrl, &json, {}, transport, nullptr);
417 std::shared_ptr<fake::Transport> transport(new fake::Transport);
418 transport->AddHandler(kFakeUrl, request_type::kPost, base::Bind(JsonHandler));
427 }, {}, transport, nullptr);
438 auto response = http::GetAndBlock("http://bad.url", {}, transport, nullptr);
448 std::shared_ptr<fake::Transport> transport(new fake::Transport);
449 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
452 transport->SetCreateConnectionError(std::move(error));
455 request_type::kGet, "http://blah.com", {}, transport, &error);
463 std::shared_ptr<fake::Transport> transport(new fake::Transport);
464 transport->AddHandler(kMethodEchoUrl, "*", base::Bind(EchoMethodHandler));
467 transport->SetCreateConnectionError(std::move(error));
481 transport,