From 9b0587193e866615fd525ad31ec2e58c6325ae09 Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:51:57 -0800 Subject: [PATCH] added dart plugin registrant test executables to run_tests.py (flutter/engine#31726) --- engine/src/flutter/runtime/dart_isolate.cc | 3 ++- engine/src/flutter/testing/run_tests.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/src/flutter/runtime/dart_isolate.cc b/engine/src/flutter/runtime/dart_isolate.cc index 3aab39c867..244f5969de 100644 --- a/engine/src/flutter/runtime/dart_isolate.cc +++ b/engine/src/flutter/runtime/dart_isolate.cc @@ -720,7 +720,8 @@ bool EndsWith(const std::string& str, const std::string& ending) { } Dart_Handle FindDartPluginRegistrantLibrary() { - // TODO(): Instead of finding this, it could be passed down from the tool. + // TODO(99308): Instead of finding this, it could be passed down from the + // tool. Dart_Handle libraries = Dart_GetLoadedLibraries(); intptr_t length = 0; Dart_ListLength(libraries, &length); diff --git a/engine/src/flutter/testing/run_tests.py b/engine/src/flutter/testing/run_tests.py index 5393c519c7..9b88e14b1e 100755 --- a/engine/src/flutter/testing/run_tests.py +++ b/engine/src/flutter/testing/run_tests.py @@ -202,6 +202,10 @@ def RunCCTests(build_dir, filter, coverage, capture_core_dump): RunEngineExecutable(build_dir, 'tonic_unittests', filter, shuffle_flags, coverage=coverage) + RunEngineExecutable(build_dir, 'no_dart_plugin_registrant_unittests', filter, shuffle_flags, coverage=coverage) + + RunEngineExecutable(build_dir, 'dart_plugin_registrant_unittests', filter, shuffle_flags, coverage=coverage) + if not IsWindows(): # https://github.com/flutter/flutter/issues/36295 RunEngineExecutable(build_dir, 'shell_unittests', filter, shuffle_flags, coverage=coverage)