From 16a73949d2e41c10381bbb6379c8e997871011f1 Mon Sep 17 00:00:00 2001 From: shivesh-ganju Date: Mon, 25 Jul 2022 15:34:59 +0000 Subject: [PATCH] [fuchsia][scenic] Accept Uint64 values in timestamp for pointerinjector. Uint64 type values should be acceptable in the timestamp field of the platform message for pointerinjector. Test: ffx test run "fuchsia-pkg://fuchsia.com/flutter_runner_tests#meta/flutter_runner_tests.cm" --- shell/platform/fuchsia/flutter/pointer_injector_delegate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/platform/fuchsia/flutter/pointer_injector_delegate.cc b/shell/platform/fuchsia/flutter/pointer_injector_delegate.cc index 5be5b695a3f5c..0119f28e8a2b0 100644 --- a/shell/platform/fuchsia/flutter/pointer_injector_delegate.cc +++ b/shell/platform/fuchsia/flutter/pointer_injector_delegate.cc @@ -129,7 +129,7 @@ bool PointerInjectorDelegate::HandlePlatformMessage( } auto timestamp = args.FindMember("timestamp"); - if (!timestamp->value.IsInt()) { + if (!timestamp->value.IsInt() && !timestamp->value.IsUint64()) { FML_LOG(ERROR) << "Argument 'timestamp' is not a int"; return false; }