@@ -470,120 +470,9 @@ action("pom_embedding") {
470470 ]
471471}
472472
473- # To build and run:
474- # testing/run_tests.py [--type=java] [--java-filter=io.flutter.TestClassName]
475- action (" robolectric_tests" ) {
476- script = " //build/android/gyp/javac.py"
477- depfile = " $target_gen_dir /$target_name .d"
478-
479- jar_path = " $root_out_dir /robolectric_tests.jar"
480-
481- sources = [
482- " test/io/flutter/FlutterInjectorTest.java" ,
483- " test/io/flutter/FlutterTestSuite.java" ,
484- " test/io/flutter/SmokeTest.java" ,
485- " test/io/flutter/TestUtils.java" ,
486- " test/io/flutter/embedding/android/FlutterActivityAndFragmentDelegateTest.java" ,
487- " test/io/flutter/embedding/android/FlutterActivityTest.java" ,
488- " test/io/flutter/embedding/android/FlutterAndroidComponentTest.java" ,
489- " test/io/flutter/embedding/android/FlutterFragmentActivityTest.java" ,
490- " test/io/flutter/embedding/android/FlutterFragmentTest.java" ,
491- " test/io/flutter/embedding/android/FlutterTextureViewTest.java" ,
492- " test/io/flutter/embedding/android/FlutterViewTest.java" ,
493- " test/io/flutter/embedding/android/KeyChannelResponderTest.java" ,
494- " test/io/flutter/embedding/android/KeyboardManagerTest.java" ,
495- " test/io/flutter/embedding/android/RobolectricFlutterActivity.java" ,
496- " test/io/flutter/embedding/android/SplashShadowResources.java" ,
497- " test/io/flutter/embedding/engine/FlutterEngineCacheTest.java" ,
498- " test/io/flutter/embedding/engine/FlutterEngineConnectionRegistryTest.java" ,
499- " test/io/flutter/embedding/engine/FlutterEngineGroupComponentTest.java" ,
500- " test/io/flutter/embedding/engine/FlutterEngineTest.java" ,
501- " test/io/flutter/embedding/engine/FlutterJNITest.java" ,
502- " test/io/flutter/embedding/engine/FlutterShellArgsTest.java" ,
503- " test/io/flutter/embedding/engine/PluginComponentTest.java" ,
504- " test/io/flutter/embedding/engine/RenderingComponentTest.java" ,
505- " test/io/flutter/embedding/engine/dart/DartExecutorTest.java" ,
506- " test/io/flutter/embedding/engine/dart/DartMessengerTest.java" ,
507- " test/io/flutter/embedding/engine/deferredcomponents/PlayStoreDeferredComponentManagerTest.java" ,
508- " test/io/flutter/embedding/engine/loader/ApplicationInfoLoaderTest.java" ,
509- " test/io/flutter/embedding/engine/loader/FlutterLoaderTest.java" ,
510- " test/io/flutter/embedding/engine/mutatorsstack/FlutterMutatorViewTest.java" ,
511- " test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java" ,
512- " test/io/flutter/embedding/engine/renderer/FlutterRendererTest.java" ,
513- " test/io/flutter/embedding/engine/systemchannels/DeferredComponentChannelTest.java" ,
514- " test/io/flutter/embedding/engine/systemchannels/KeyEventChannelTest.java" ,
515- " test/io/flutter/embedding/engine/systemchannels/PlatformChannelTest.java" ,
516- " test/io/flutter/embedding/engine/systemchannels/RestorationChannelTest.java" ,
517- " test/io/flutter/external/FlutterLaunchTests.java" ,
518- " test/io/flutter/plugin/common/BinaryCodecTest.java" ,
519- " test/io/flutter/plugin/common/StandardMessageCodecTest.java" ,
520- " test/io/flutter/plugin/common/StandardMethodCodecTest.java" ,
521- " test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java" ,
522- " test/io/flutter/plugin/editing/ListenableEditingStateTest.java" ,
523- " test/io/flutter/plugin/editing/TextInputPluginTest.java" ,
524- " test/io/flutter/plugin/localization/LocalizationPluginTest.java" ,
525- " test/io/flutter/plugin/mouse/MouseCursorPluginTest.java" ,
526- " test/io/flutter/plugin/platform/PlatformPluginTest.java" ,
527- " test/io/flutter/plugin/platform/PlatformViewsControllerTest.java" ,
528- " test/io/flutter/plugin/platform/SingleViewPresentationTest.java" ,
529- " test/io/flutter/plugins/GeneratedPluginRegistrant.java" ,
530- " test/io/flutter/util/FakeKeyEvent.java" ,
531- " test/io/flutter/util/PreconditionsTest.java" ,
532- " test/io/flutter/util/ViewUtilsTest.java" ,
533- " test/io/flutter/view/AccessibilityBridgeTest.java" ,
534- ]
535-
536- outputs = [
537- depfile ,
538- jar_path ,
539- jar_path + " .md5.stamp" ,
540- ]
541-
542- additional_jar_files = [ " robolectric.properties" ]
543-
544- _jar_dependencies = [
545- android_sdk_jar ,
546- embedding_jar_path ,
547- ] + embedding_dependencies_jars
548-
549- inputs = _jar_dependencies + additional_jar_files
550-
551- _rebased_current_path = rebase_path (" ." )
552- _rebased_jar_path = rebase_path (jar_path , root_build_dir )
553- _rebased_depfile = rebase_path (depfile , root_build_dir )
554- _rebased_classpath = rebase_path (_jar_dependencies , root_build_dir )
555- _rebased_srcjars = rebase_path (_jar_dependencies , root_build_dir )
556- _rebased_additional_files = rebase_path (additional_jar_files , root_build_dir )
557-
558- if (host_os == " mac" ) {
559- _javacbin =
560- rebase_path (" //third_party/java/openjdk/Contents/Home/bin/javac" )
561- _jarbin = rebase_path (" //third_party/java/openjdk/Contents/Home/bin/jar" )
562- } else if (host_os == " win" ) {
563- _javacbin = rebase_path (" //third_party/java/openjdk/bin/javac.exe" )
564- _jarbin = rebase_path (" //third_party/java/openjdk/bin/jar.exe" )
565- } else {
566- _javacbin = rebase_path (" //third_party/java/openjdk/bin/javac" )
567- _jarbin = rebase_path (" //third_party/java/openjdk/bin/jar" )
568- }
569-
570- args = [
571- " --depfile=$_rebased_depfile " ,
572- " --jar-path=$_rebased_jar_path " ,
573- " --classpath=$_rebased_classpath " ,
574- " --jar-source-base-dir=$_rebased_current_path " ,
575- " --java-srcjars=$_rebased_srcjars " ,
576- " --additional-jar-files=$_rebased_additional_files " ,
577- " --jar-bin=$_jarbin " ,
578- " --javac-bin=$_javacbin " ,
579- ]
580-
581- args += rebase_path (sources , root_build_dir )
582-
583- deps = [
584- " :android_jar" ,
585- " :flutter_shell_java" ,
586- ]
473+ # TODO(jsimmons ): remove this placeholder when it is no longer used by the LUCI recipes
474+ group (" robolectric_tests" ) {
475+ deps = [ " :android_jar" ]
587476}
588477
589478zip_bundle (" android_symbols" ) {
@@ -688,10 +577,4 @@ group("android") {
688577 if (target_cpu != " x86" ) {
689578 deps += [ " :gen_snapshot" ]
690579 }
691-
692- # We only run the robolectric tests for android_debug_unopt (arm CPU), and
693- # the target is relatively expensive to build.
694- if (flutter_runtime_mode == " debug" && current_cpu == " arm" ) {
695- deps += [ " :robolectric_tests" ]
696- }
697580}
0 commit comments