[fuchsia] Bump the Fuchsia target API level to 10 (flutter/engine#36858)

This commit is contained in:
Sébastien Marchand
2022-10-19 16:40:37 -04:00
committed by GitHub
parent 4ac0208643
commit 1d08f089d0
4 changed files with 9 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ void DartTestComponentController::SetUp() {
suite_context_ = sys::ComponentContext::Create();
suite_context_->outgoing()->AddPublicService(this->GetHandler());
suite_context_->outgoing()->Serve(
start_info_.mutable_outgoing_dir()->TakeChannel(), loop_->dispatcher());
std::move(*start_info_.mutable_outgoing_dir()), loop_->dispatcher());
loop_->Run();
}

View File

@@ -159,16 +159,16 @@ ComponentV1::ComponentV1(
continue;
}
zx::channel dir;
fidl::InterfaceHandle<fuchsia::io::Directory> dir;
if (path == kServiceRootPath) {
svc_ = std::make_unique<sys::ServiceDirectory>(
std::move(startup_info.flat_namespace.directories.at(i)));
dir = svc_->CloneChannel().TakeChannel();
dir = svc_->CloneChannel();
} else {
dir = std::move(startup_info.flat_namespace.directories.at(i));
}
zx_handle_t dir_handle = dir.release();
zx_handle_t dir_handle = dir.TakeChannel().release();
if (fdio_ns_bind(fdio_ns_.get(), path.data(), dir_handle) != ZX_OK) {
FML_LOG(ERROR) << "Could not bind path to namespace: " << path;
zx_handle_close(dir_handle);
@@ -199,7 +199,7 @@ ComponentV1::ComponentV1(
outgoing_dir_->Serve(fuchsia::io::OpenFlags::RIGHT_READABLE |
fuchsia::io::OpenFlags::RIGHT_WRITABLE |
fuchsia::io::OpenFlags::DIRECTORY,
std::move(launch_info.directory_request));
launch_info.directory_request.TakeChannel());
}
directory_request_ = directory_ptr_.NewRequest();

View File

@@ -112,6 +112,9 @@ class TestResponseListenerServer
return match;
}
// KeyboardInputListener override
void ReportReady(ReportReadyCallback) override {}
private:
// Not owned.
async_dispatcher_t* dispatcher_ = nullptr;