Commit 81dd6792 authored by Ian McKellar's avatar Ian McKellar Committed by Commit Bot

[Fuchsia] Update to new FIDL bindings APIs

FIDL's StringPtr and VectorPtr will no longer be implicitly converted to

std: :string and std::vector.
Change-Id: I4626ee0e0e6c2c24dc586e965bebbfa416d89bf8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834267
Commit-Queue: Ian McKellar <ianloic@chromium.org>
Reviewed-by: default avatarWez <wez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#702151}
parent 8f89b1e0
......@@ -324,7 +324,8 @@ TEST_F(HttpServiceTest, AutoRedirect) {
ExecuteRequest(url_loader, std::move(request));
CheckResponseError(url_response(), net::OK);
EXPECT_EQ(url_response().status_code, 200u);
EXPECT_EQ(url_response().url,
ASSERT_TRUE(url_response().url.has_value());
EXPECT_EQ(url_response().url.value(),
http_test_server()->GetURL("/with-headers.html").spec());
}
......@@ -346,14 +347,14 @@ TEST_F(HttpServiceTest, ManualRedirect) {
http_test_server()->GetURL("/with-headers.html").spec();
CheckResponseError(url_response(), net::OK);
EXPECT_EQ(url_response().status_code, 302u);
EXPECT_EQ(url_response().url, request_url);
EXPECT_EQ(url_response().redirect_url, final_url);
EXPECT_EQ(url_response().url.value_or(""), request_url);
EXPECT_EQ(url_response().redirect_url.value_or(""), final_url);
base::RunLoop run_loop;
url_loader->FollowRedirect(
[&run_loop, &final_url](oldhttp::URLResponse response) {
EXPECT_EQ(response.status_code, 200u);
EXPECT_EQ(response.url, final_url);
EXPECT_EQ(response.url.value_or(""), final_url);
run_loop.Quit();
});
run_loop.Run();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment