From b2926569960292fcd2c3b6b8bdd450b34f14ca95 Mon Sep 17 00:00:00 2001 From: Hu Yueh-Wei Date: Fri, 20 Dec 2024 12:23:07 +0800 Subject: [PATCH] chore: refine ten_runtime smoke test folder structure (#436) * chore: refine ten_runtime smoke test folder structure * chore: refine ten_runtime smoke test folder structure --- .vscode/launch.json | 2 +- tests/ten_runtime/smoke/BUILD.gn | 28 ++- .../smoke/audio_frame_test/basic.cc | 2 +- .../audio_frame_test/create_from_json.cc | 2 +- .../smoke/audio_frame_test/from_json.cc | 2 +- .../audio_frame_test/multi_dest_pcm_frame.cc | 2 +- .../smoke/{extension_test => }/basic/BUILD.gn | 0 .../basic/basic_extensions_init_dependency.cc | 5 +- .../basic/basic_hello_world_1.cc | 4 +- .../basic/basic_hello_world_2.cc | 5 +- .../{extension_test => }/basic/basic_loop.cc | 4 +- .../basic/basic_loop_cmd.cc | 4 +- .../basic/basic_loop_cmd_snap_shot.cc | 4 +- .../basic/basic_msg_property_to_prop_store.cc | 4 +- .../basic/basic_multi_app.cc | 4 +- .../basic_multi_app_close_through_engine.cc | 4 +- .../basic/basic_multi_extension.cc | 5 +- .../basic/basic_multi_extension_group.cc | 5 +- .../basic/basic_no_init_extension_group.cc | 4 +- .../basic_throw_exception_in_extension.cc | 4 +- .../basic/basic_two_extensions.cc | 4 +- .../basic/basic_two_standalone_extension_1.cc | 4 +- .../basic/basic_two_standalone_extension_2.cc | 4 +- .../cmd_conversion_connect_cmd.cc | 2 +- .../cmd_conversion/cmd_conversion_data.cc | 2 +- .../cmd_conversion/cmd_conversion_graph.cc | 2 +- .../cmd_conversion_graph_default_uri.cc | 2 +- .../cmd_conversion/cmd_conversion_path.cc | 2 +- .../cmd_conversion_path_array_1.cc | 2 +- .../cmd_conversion_path_array_2.cc | 2 +- .../cmd_conversion_path_array_3.cc | 2 +- .../cmd_conversion_path_array_4.cc | 2 +- .../cmd_conversion_path_array_5.cc | 2 +- .../cmd_conversion_path_array_6.cc | 2 +- .../cmd_conversion_path_array_7.cc | 2 +- .../cmd_conversion_path_keep_original.cc | 2 +- .../cmd_conversion_path_nested_1.cc | 2 +- .../cmd_conversion_path_nested_2.cc | 2 +- .../cmd_conversion_path_nested_3.cc | 2 +- .../cmd_conversion_path_nested_4.cc | 2 +- .../cmd_conversion_path_nested_5.cc | 2 +- .../cmd_conversion_path_nested_6.cc | 2 +- .../cmd_result_test/multiple_result_1.cc | 2 +- .../cmd_result_test/multiple_result_2.cc | 2 +- .../cmd_result_test/multiple_result_3.cc | 2 +- .../{extension_test => }/command/BUILD.gn | 0 .../command/command_check_cmd_out.cc | 2 +- .../command/command_invalid_extension.cc | 2 +- .../command/command_invalid_extension_2.cc | 2 +- .../command_invalid_extension_group.cc | 2 +- .../command/command_send_enum.cc | 2 +- .../command/command_send_ptr.cc | 2 +- .../command/command_send_ptr_through_cmd.cc | 2 +- .../command/command_stop_graph_actively.cc | 2 +- ...command_stop_graph_actively_through_cmd.cc | 2 +- ...nd_stop_graph_actively_through_cmd_dest.cc | 2 +- .../{extension_test => }/concurrent/BUILD.gn | 0 .../concurrent/multi_app_concurrent.cc | 2 +- .../concurrent/multi_app_sequential.cc | 2 +- .../concurrent/one_engine_concurrent.cc | 2 +- tests/ten_runtime/smoke/data_test/basic.cc | 2 +- tests/ten_runtime/smoke/data_test/basic_2.cc | 2 +- .../smoke/data_test/create_from_json.cc | 2 +- .../ten_runtime/smoke/data_test/from_json.cc | 2 +- .../smoke/data_test/multi_dest_data.cc | 2 +- .../smoke/{extension_test => }/dest/BUILD.gn | 0 .../dest/no_audio_frame_dest.cc | 2 +- .../{extension_test => }/dest/specify_dest.cc | 2 +- .../{extension_test => }/engine/BUILD.gn | 0 .../engine/batch_send_msgs_in_migration.cc | 2 +- .../engine/engine_long_running_mode.cc | 2 +- .../engine/engine_one_loop_per_engine.cc | 2 +- .../extension_send_msg_to_incorrect_engine.cc | 2 +- .../wrong_engine_then_correct_in_migration.cc | 2 +- .../smoke/{extension_test => }/error/BUILD.gn | 0 .../error/error_client_send_json.cc | 0 .../error/failed_to_connect_to_remote.cc | 2 +- .../error/failed_to_listen.cc | 2 +- .../{extension_test => }/extension/BUILD.gn | 0 .../extension/extension_reg_extension.cc | 2 +- ...xtension_reg_extension_and_create_group.cc | 2 +- .../extension_reg_extension_group.cc | 2 +- .../extension/extension_with_same_name.cc | 2 +- .../extension_group/BUILD.gn | 0 .../extension_group_not_specified.cc | 2 +- .../extension_group_with_same_name.cc | 2 +- ...sion_group_with_same_name_and_topo_info.cc | 2 +- .../ten_runtime/smoke/extension_test/BUILD.gn | 59 ------ .../smoke/{extension_test => }/graph/BUILD.gn | 0 .../graph/graph_lack_something_1.cc | 2 +- .../graph/graph_lack_something_2.cc | 2 +- .../graph/graph_lack_something_3.cc | 2 +- .../graph/graph_loop_in_multi_app.cc | 2 +- .../graph/graph_loop_in_one_app.cc | 2 +- .../graph/graph_loop_multiple_circle.cc | 2 +- .../graph_loop_multiple_circle_through_cmd.cc | 2 +- ...ultiple_circle_through_cmd_with_default.cc | 2 +- .../graph/graph_multiple_polygon.cc | 2 +- .../graph/graph_multiple_polygon_one_app.cc | 2 +- .../graph/graph_out_of_order_1.cc | 2 +- .../graph/graph_out_of_order_2.cc | 2 +- .../graph_polygon_in_one_app_return_all_1.cc | 2 +- .../graph_polygon_in_one_app_return_all_2.cc | 2 +- .../graph/graph_y_shape_in_multi_app.cc | 2 +- .../graph/graph_y_shape_in_one_app.cc | 2 +- .../{extension_test => }/graph_name/BUILD.gn | 0 .../graph_name/graph_name_basic.cc | 2 +- .../smoke/graph_test/group_node_missing.cc | 2 +- .../graph_test/group_node_missing_2_apps.cc | 2 +- .../http_server_extension/BUILD.gn | 0 .../http_server_extension_close_app.cc | 0 .../http_server_extension_two_extensions.cc | 0 .../interface_out_cmd_in_schema.cc | 2 +- .../interface_out_cmd_not_in_schema.cc | 2 +- .../interface_out_result_error.cc | 2 +- .../smoke/{extension_test => }/lock/BUILD.gn | 0 .../{extension_test => }/lock/lock_data_1.cc | 2 +- tests/ten_runtime/smoke/log_test/log_file.cc | 2 +- .../ten_runtime/smoke/log_test/log_stderr.cc | 2 +- .../msg_property_send_c_string.cc | 2 +- .../msg_property/msg_property_send_cpp_ptr.cc | 2 +- .../msg_property_send_cpp_string.cc | 2 +- .../msg_property_send_float_ptr.cc | 2 +- .../msg_property/msg_property_send_int.cc | 2 +- .../msg_property_send_int32_ptr.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_1.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_10.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_11.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_12.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_13.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_2.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_3.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_4.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_5.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_6.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_7.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_8.cc | 2 +- tests/ten_runtime/smoke/msg_test/msg_9.cc | 2 +- .../ten_runtime/smoke/msg_test/msg_fail_1.cc | 2 +- .../ten_runtime/smoke/msg_test/msg_fail_2.cc | 2 +- .../{extension_test => }/multi_dest/BUILD.gn | 0 .../multi_dest/multi_dest_basic.cc | 2 +- .../multi_dest/multi_dest_in_multi_app.cc | 2 +- ...dest_in_multi_app_with_response_handler.cc | 2 +- ..._multi_app_with_response_handler_lambda.cc | 2 +- .../multi_dest/multi_dest_in_one_app.cc | 2 +- .../multi_dest/multi_dest_resp_when_all.cc | 2 +- .../multi_dest_resp_when_all_in_multi_app.cc | 2 +- .../multi_dest_send_in_stop_period.cc | 2 +- .../multi_dest/multi_dest_y_topo.cc | 2 +- .../notify_test/member_func_in_lambda_1.cc | 2 +- .../notify_test/member_func_in_lambda_2.cc | 2 +- .../notify_test/member_func_in_lambda_3.cc | 2 +- .../smoke/notify_test/normal_func.cc | 2 +- .../notify_test/normal_func_in_lambda.cc | 2 +- .../notify_test/normal_func_with_user_data.cc | 2 +- .../128_threads_attempt_to_suspend_1.cc | 2 +- .../16_threads_attempt_to_suspend_1.cc | 2 +- .../2_threads_attempt_to_suspend_1.cc | 2 +- .../2_threads_attempt_to_suspend_2.cc | 2 +- .../2_threads_attempt_to_suspend_3.cc | 2 +- .../2_threads_attempt_to_suspend_4.cc | 2 +- .../2_threads_attempt_to_suspend_5.cc | 2 +- .../2_threads_attempt_to_suspend_6.cc | 2 +- .../2_threads_attempt_to_suspend_7.cc | 2 +- .../32_threads_attempt_to_suspend_1.cc | 2 +- .../32_threads_attempt_to_suspend_2.cc | 2 +- .../32_threads_attempt_to_suspend_3.cc | 2 +- .../32_threads_attempt_to_suspend_4.cc | 2 +- .../32_threads_attempt_to_suspend_5.cc | 2 +- .../32_threads_attempt_to_suspend_6.cc | 2 +- .../outer_thread/BUILD.gn | 0 .../outer_thread/auto_free_out_of_scope.cc | 2 +- .../outer_thread/outer_thread_send_data.cc | 2 +- .../outer_thread_send_data_resp_handler.cc | 2 +- .../smoke/{extension_test => }/path/BUILD.gn | 0 .../path/clean_when_stopped.cc | 2 +- .../{extension_test => }/path/path_timeout.cc | 2 +- .../path/path_timeout_2.cc | 2 +- .../predefined_graph/BUILD.gn | 0 .../predefined_graph_basic_1.cc | 2 +- .../predefined_graph_basic_2.cc | 2 +- .../predefined_graph_engine_own_eventloop.cc | 2 +- .../predefined_graph_multi_app.cc | 2 +- .../predefined_graph_multi_extension_1.cc | 2 +- .../predefined_graph_multi_extension_2.cc | 2 +- .../predefined_graph_multi_extension_3.cc | 2 +- .../predefined_graph_multi_extension_4.cc | 2 +- .../predefined_graph_no_auto_start.cc | 2 +- ...fined_graph_two_standalone_extensions_1.cc | 2 +- ...fined_graph_two_standalone_extensions_2.cc | 2 +- .../prepare_to_stop/BUILD.gn | 0 .../prepare_to_stop/different_thread.cc | 2 +- .../prepare_to_stop/same_thread.cc | 2 +- .../property_2_extensions_set_object.cc | 186 ++++++++++++++++++ .../property/property_access_app_store.cc | 2 +- .../property_access_app_store_async.cc | 2 +- .../smoke/property/property_all.cc | 2 +- .../smoke/property/property_connect_cmd.cc | 2 +- ..._connect_cmd_override_extension_success.cc | 2 +- .../smoke/property/property_extension.cc | 2 +- .../smoke/property/property_get_float64.cc | 2 +- ...property_get_float64_type_but_int_value.cc | 2 +- .../smoke/property/property_get_int32.cc | 2 +- .../property/property_in_graph_use_env_1.cc | 2 +- .../property/property_in_graph_use_env_2.cc | 2 +- .../smoke/property/property_not_exist.cc | 2 +- .../smoke/property/property_prebuilt_graph.cc | 2 +- .../smoke/property/property_set_float32.cc | 2 +- .../smoke/property/property_set_int32.cc | 2 +- .../smoke/property/property_set_object.cc | 17 +- .../resp_handler/BUILD.gn | 0 .../resp_handler/resp_handler_async_basic.cc | 2 +- .../resp_handler/resp_handler_basic.cc | 2 +- .../resp_handler_basic_wait_in_on_start.cc | 2 +- .../result_conversion/result_conversion_1.cc | 2 +- .../{extension_test => }/return/BUILD.gn | 0 .../{extension_test => }/return/return_1.cc | 2 +- .../{extension_test => }/return/return_2.cc | 2 +- .../{extension_test => }/return/return_3.cc | 2 +- .../{extension_test => }/return/return_4.cc | 2 +- .../same_thread_ext_on_xxx/BUILD.gn | 0 .../same_thread_ext_on_data.cc | 2 +- .../same_thread_ext_on_xxx_basic.cc | 2 +- .../schema_cmd_property_required.cc | 2 +- .../smoke/schema_test/schema_cmd_result.cc | 2 +- .../schema_test/schema_cmd_result_error.cc | 2 +- .../smoke/schema_test/schema_data_prop.cc | 2 +- .../smoke/schema_test/schema_on_cmd.cc | 2 +- .../smoke/schema_test/schema_send_cmd.cc | 2 +- .../schema_set_extension_property.cc | 2 +- .../schema_test/schema_set_property_buf.cc | 2 +- .../schema_test/schema_set_property_ptr.cc | 2 +- .../smoke/standalone_test/basic.cc | 2 +- .../smoke/standalone_test/basic_c.cc | 2 +- .../smoke/standalone_test/basic_data.cc | 2 +- .../smoke/standalone_test/basic_graph.cc | 2 +- .../standalone_test/basic_graph_cross_app.cc | 2 +- .../basic_graph_outer_thread_1.cc | 2 +- .../basic_graph_outer_thread_2.cc | 2 +- .../smoke/standalone_test/on_cmd.cc | 2 +- .../smoke/standalone_test/on_cmd_c.cc | 2 +- .../set_property_for_single_ext.cc | 2 +- .../{extension_test => }/start_graph/BUILD.gn | 0 .../start_graph_and_communicate.cc | 2 +- .../start_graph/start_graph_from_extension.cc | 2 +- .../start_predefined_graph_cross_app.cc | 2 +- .../start_predefined_graph_from_extension.cc | 2 +- .../start_two_predefined_graphs.cc | 2 +- .../suspend_resume/BUILD.gn | 0 .../suspend_resume/suspend_resume_1.cc | 2 +- .../suspend_resume/suspend_resume_2.cc | 2 +- .../smoke/ten_env_call_timing/on_xxx_done.cc | 2 +- .../{extension_test => }/ten_proxy/BUILD.gn | 0 .../ten_proxy/ten_proxy_1.cc | 2 +- .../smoke/{extension_test => }/timer/BUILD.gn | 0 .../timer/timer_one_shot.cc | 2 +- .../timer/timer_ten_shot.cc | 2 +- .../timer/timer_two_shot.cc | 2 +- .../util/binding/cpp/check.h | 0 .../smoke/video_frame_test/basic.cc | 2 +- .../video_frame_test/create_from_json.cc | 2 +- .../smoke/video_frame_test/from_json.cc | 2 +- .../multi_dest_video_frame.cc | 2 +- 264 files changed, 476 insertions(+), 314 deletions(-) rename tests/ten_runtime/smoke/{extension_test => }/basic/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_extensions_init_dependency.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_hello_world_1.cc (96%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_hello_world_2.cc (95%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_loop.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_loop_cmd.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_loop_cmd_snap_shot.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_msg_property_to_prop_store.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_multi_app.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_multi_app_close_through_engine.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_multi_extension.cc (96%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_multi_extension_group.cc (96%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_no_init_extension_group.cc (95%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_throw_exception_in_extension.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_two_extensions.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_two_standalone_extension_1.cc (96%) rename tests/ten_runtime/smoke/{extension_test => }/basic/basic_two_standalone_extension_2.cc (96%) rename tests/ten_runtime/smoke/{extension_test => }/command/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_check_cmd_out.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_invalid_extension.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_invalid_extension_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_invalid_extension_group.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_send_enum.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_send_ptr.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_send_ptr_through_cmd.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_stop_graph_actively.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_stop_graph_actively_through_cmd.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/command/command_stop_graph_actively_through_cmd_dest.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/concurrent/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/concurrent/multi_app_concurrent.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/concurrent/multi_app_sequential.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/concurrent/one_engine_concurrent.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/dest/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/dest/no_audio_frame_dest.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/dest/specify_dest.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/engine/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/engine/batch_send_msgs_in_migration.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/engine/engine_long_running_mode.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/engine/engine_one_loop_per_engine.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/engine/extension_send_msg_to_incorrect_engine.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/engine/wrong_engine_then_correct_in_migration.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/error/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/error/error_client_send_json.cc (100%) rename tests/ten_runtime/smoke/{extension_test => }/error/failed_to_connect_to_remote.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/error/failed_to_listen.cc (94%) rename tests/ten_runtime/smoke/{extension_test => }/extension/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/extension/extension_reg_extension.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension/extension_reg_extension_and_create_group.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension/extension_reg_extension_group.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension/extension_with_same_name.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension_group/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/extension_group/extension_group_not_specified.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension_group/extension_group_with_same_name.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/extension_group/extension_group_with_same_name_and_topo_info.cc (98%) delete mode 100644 tests/ten_runtime/smoke/extension_test/BUILD.gn rename tests/ten_runtime/smoke/{extension_test => }/graph/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_lack_something_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_lack_something_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_lack_something_3.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_loop_in_multi_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_loop_in_one_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_loop_multiple_circle.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_loop_multiple_circle_through_cmd.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_loop_multiple_circle_through_cmd_with_default.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_multiple_polygon.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_multiple_polygon_one_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_out_of_order_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_out_of_order_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_polygon_in_one_app_return_all_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_polygon_in_one_app_return_all_2.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_y_shape_in_multi_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph/graph_y_shape_in_one_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/graph_name/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/graph_name/graph_name_basic.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/http_server_extension/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/http_server_extension/http_server_extension_close_app.cc (100%) rename tests/ten_runtime/smoke/{extension_test => }/http_server_extension/http_server_extension_two_extensions.cc (100%) rename tests/ten_runtime/smoke/{extension_test => }/lock/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/lock/lock_data_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_basic.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_in_multi_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_in_multi_app_with_response_handler.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_in_one_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_resp_when_all.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_resp_when_all_in_multi_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_send_in_stop_period.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/multi_dest/multi_dest_y_topo.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/128_threads_attempt_to_suspend_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/16_threads_attempt_to_suspend_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_2.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_3.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_4.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_5.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_6.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/2_threads_attempt_to_suspend_7.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_2.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_3.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_4.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_5.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/32_threads_attempt_to_suspend_6.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/auto_free_out_of_scope.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/outer_thread_send_data.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/outer_thread/outer_thread_send_data_resp_handler.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/path/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/path/clean_when_stopped.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/path/path_timeout.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/path/path_timeout_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_basic_1.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_basic_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_engine_own_eventloop.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_multi_app.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_multi_extension_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_multi_extension_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_multi_extension_3.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_multi_extension_4.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_no_auto_start.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_two_standalone_extensions_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/predefined_graph/predefined_graph_two_standalone_extensions_2.cc (97%) rename tests/ten_runtime/smoke/{extension_test => }/prepare_to_stop/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/prepare_to_stop/different_thread.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/prepare_to_stop/same_thread.cc (98%) create mode 100644 tests/ten_runtime/smoke/property/property_2_extensions_set_object.cc rename tests/ten_runtime/smoke/{extension_test => }/resp_handler/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/resp_handler/resp_handler_async_basic.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/resp_handler/resp_handler_basic.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/resp_handler/resp_handler_basic_wait_in_on_start.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/return/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/return/return_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/return/return_2.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/return/return_3.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/return/return_4.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/same_thread_ext_on_xxx/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/same_thread_ext_on_xxx/same_thread_ext_on_data.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/start_graph_and_communicate.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/start_graph_from_extension.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/start_predefined_graph_cross_app.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/start_predefined_graph_from_extension.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/start_graph/start_two_predefined_graphs.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/suspend_resume/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/suspend_resume/suspend_resume_1.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/suspend_resume/suspend_resume_2.cc (99%) rename tests/ten_runtime/smoke/{extension_test => }/ten_proxy/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/ten_proxy/ten_proxy_1.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/timer/BUILD.gn (100%) rename tests/ten_runtime/smoke/{extension_test => }/timer/timer_one_shot.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/timer/timer_ten_shot.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/timer/timer_two_shot.cc (98%) rename tests/ten_runtime/smoke/{extension_test => }/util/binding/cpp/check.h (100%) diff --git a/.vscode/launch.json b/.vscode/launch.json index d9d17bff24..78902f4a4f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -137,7 +137,7 @@ "request": "launch", "program": "${workspaceFolder}/out/linux/x64/tests/standalone/ten_runtime_smoke_test", "args": [ - "--gtest_filter=PropertyTest.SetObject" + "--gtest_filter=PropertyTest.TwoExtensionsSetObject" ], "cwd": "${workspaceFolder}/out/linux/x64/tests/standalone/", "env": { diff --git a/tests/ten_runtime/smoke/BUILD.gn b/tests/ten_runtime/smoke/BUILD.gn index dc361c473e..1bff0f9310 100644 --- a/tests/ten_runtime/smoke/BUILD.gn +++ b/tests/ten_runtime/smoke/BUILD.gn @@ -33,19 +33,41 @@ ten_executable("ten_runtime_smoke_test") { deps += [ "audio_frame_test", + "basic", "cmd_conversion", "cmd_result_test", + "command", + "concurrent", "data_test", - "extension_test", + "dest", + "engine", + "error", + "extension", + "extension_group", + "graph", + "graph_name", "graph_test", + "lock", "log_test", "msg_property", "msg_test", + "multi_dest", "notify_test", + "outer_thread", + "path", + "predefined_graph", + "prepare_to_stop", "property", + "resp_handler", "result_conversion", + "return", + "same_thread_ext_on_xxx", "standalone_test", + "start_graph", + "suspend_resume", "ten_env_call_timing", + "ten_proxy", + "timer", "video_frame_test", ] @@ -77,6 +99,10 @@ ten_executable("ten_runtime_smoke_test") { "//third_party/googlemock", "//third_party/googletest", ] + + if (ten_enable_libwebsockets && ten_enable_curl) { + deps += [ "http_server_extension" ] + } } group("smoke") { diff --git a/tests/ten_runtime/smoke/audio_frame_test/basic.cc b/tests/ten_runtime/smoke/audio_frame_test/basic.cc index f74640dbd6..ddb330d2a9 100644 --- a/tests/ten_runtime/smoke/audio_frame_test/basic.cc +++ b/tests/ten_runtime/smoke/audio_frame_test/basic.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/audio_frame_test/create_from_json.cc b/tests/ten_runtime/smoke/audio_frame_test/create_from_json.cc index 47972c06cc..dfc025cf2b 100644 --- a/tests/ten_runtime/smoke/audio_frame_test/create_from_json.cc +++ b/tests/ten_runtime/smoke/audio_frame_test/create_from_json.cc @@ -14,7 +14,7 @@ #include "ten_runtime/msg/audio_frame/audio_frame.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/audio_frame_test/from_json.cc b/tests/ten_runtime/smoke/audio_frame_test/from_json.cc index dfa0c7d42a..b38f702626 100644 --- a/tests/ten_runtime/smoke/audio_frame_test/from_json.cc +++ b/tests/ten_runtime/smoke/audio_frame_test/from_json.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/audio_frame_test/multi_dest_pcm_frame.cc b/tests/ten_runtime/smoke/audio_frame_test/multi_dest_pcm_frame.cc index fcff7add23..246d735201 100644 --- a/tests/ten_runtime/smoke/audio_frame_test/multi_dest_pcm_frame.cc +++ b/tests/ten_runtime/smoke/audio_frame_test/multi_dest_pcm_frame.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define SAMPLE_RATE 16000 #define NUM_OF_CHANNELS 1 diff --git a/tests/ten_runtime/smoke/extension_test/basic/BUILD.gn b/tests/ten_runtime/smoke/basic/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/basic/BUILD.gn rename to tests/ten_runtime/smoke/basic/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_extensions_init_dependency.cc b/tests/ten_runtime/smoke/basic/basic_extensions_init_dependency.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/basic/basic_extensions_init_dependency.cc rename to tests/ten_runtime/smoke/basic/basic_extensions_init_dependency.cc index a79ce4d8a7..c77ae528d1 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_extensions_init_dependency.cc +++ b/tests/ten_runtime/smoke/basic/basic_extensions_init_dependency.cc @@ -8,14 +8,13 @@ #include #include #include -#include #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" using namespace std::placeholders; @@ -148,7 +147,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicExtensionsInitDependency) { // NOLINT +TEST(BasicTest, ExtensionsInitDependency) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_1.cc b/tests/ten_runtime/smoke/basic/basic_hello_world_1.cc similarity index 96% rename from tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_1.cc rename to tests/ten_runtime/smoke/basic/basic_hello_world_1.cc index e03c6a759b..6cca69b009 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_1.cc +++ b/tests/ten_runtime/smoke/basic/basic_hello_world_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -65,7 +65,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_hello_world_1__test_extension, } // namespace -TEST(ExtensionTest, BasicHelloWorld1) { // NOLINT +TEST(BasicTest, HelloWorld1) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_2.cc b/tests/ten_runtime/smoke/basic/basic_hello_world_2.cc similarity index 95% rename from tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_2.cc rename to tests/ten_runtime/smoke/basic/basic_hello_world_2.cc index 8dc64d7b2a..45bfdd10f6 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_hello_world_2.cc +++ b/tests/ten_runtime/smoke/basic/basic_hello_world_2.cc @@ -6,13 +6,12 @@ // #include #include -#include #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -63,7 +62,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_hello_world_2__extension, } // namespace -TEST(ExtensionTest, BasicHelloWorld2) { // NOLINT +TEST(BasicTest, HelloWorld2) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_loop.cc b/tests/ten_runtime/smoke/basic/basic_loop.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/basic/basic_loop.cc rename to tests/ten_runtime/smoke/basic/basic_loop.cc index 4c3ab4093e..bfbe373d78 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_loop.cc +++ b/tests/ten_runtime/smoke/basic/basic_loop.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -108,7 +108,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_loop__extension_2, test_extension_2); } // namespace -TEST(ExtensionTest, BasicLoop) { // NOLINT +TEST(BasicTest, Loop) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd.cc b/tests/ten_runtime/smoke/basic/basic_loop_cmd.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd.cc rename to tests/ten_runtime/smoke/basic/basic_loop_cmd.cc index 9e3489abfc..15e86e52f9 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd.cc +++ b/tests/ten_runtime/smoke/basic/basic_loop_cmd.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -114,7 +114,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_loop_cmd__extension_2, } // namespace -TEST(ExtensionTest, BasicLoopCmd) { // NOLINT +TEST(BasicTest, LoopCmd) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd_snap_shot.cc b/tests/ten_runtime/smoke/basic/basic_loop_cmd_snap_shot.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd_snap_shot.cc rename to tests/ten_runtime/smoke/basic/basic_loop_cmd_snap_shot.cc index e849af9623..c4605d27a7 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_loop_cmd_snap_shot.cc +++ b/tests/ten_runtime/smoke/basic/basic_loop_cmd_snap_shot.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -113,7 +113,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_loop_cmd_snapshot__extension_2, } // namespace -TEST(ExtensionTest, BasicLoopCmdSnapShot) { // NOLINT +TEST(BasicTest, LoopCmdSnapShot) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_msg_property_to_prop_store.cc b/tests/ten_runtime/smoke/basic/basic_msg_property_to_prop_store.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/basic/basic_msg_property_to_prop_store.cc rename to tests/ten_runtime/smoke/basic/basic_msg_property_to_prop_store.cc index b44ea4ed79..f4b14f533a 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_msg_property_to_prop_store.cc +++ b/tests/ten_runtime/smoke/basic/basic_msg_property_to_prop_store.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -85,7 +85,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicMsgPropertyToPropStore) { // NOLINT +TEST(BasicTest, MsgPropertyToPropStore) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_app.cc b/tests/ten_runtime/smoke/basic/basic_multi_app.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/basic/basic_multi_app.cc rename to tests/ten_runtime/smoke/basic/basic_multi_app.cc index fca938a7d7..f4240298c5 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_app.cc +++ b/tests/ten_runtime/smoke/basic/basic_multi_app.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -124,7 +124,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_multi_app__extension_2, } // namespace -TEST(ExtensionTest, BasicMultiApp) { // NOLINT +TEST(BasicTest, MultiApp) { // NOLINT ten_thread_t *app1_thread = nullptr; ten_thread_t *app2_thread = nullptr; std::unique_ptr client = nullptr; diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_app_close_through_engine.cc b/tests/ten_runtime/smoke/basic/basic_multi_app_close_through_engine.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/basic/basic_multi_app_close_through_engine.cc rename to tests/ten_runtime/smoke/basic/basic_multi_app_close_through_engine.cc index 4863690c04..edab67121e 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_app_close_through_engine.cc +++ b/tests/ten_runtime/smoke/basic/basic_multi_app_close_through_engine.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -123,7 +123,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicMultiAppCloseThroughEngine) { // NOLINT +TEST(BasicTest, MultiAppCloseThroughEngine) { // NOLINT // Start app. auto *app_thread_2 = ten_thread_create("app thread 2", app_thread_2_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension.cc b/tests/ten_runtime/smoke/basic/basic_multi_extension.cc similarity index 96% rename from tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension.cc rename to tests/ten_runtime/smoke/basic/basic_multi_extension.cc index 7ad64737a0..075e619d96 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension.cc +++ b/tests/ten_runtime/smoke/basic/basic_multi_extension.cc @@ -6,13 +6,12 @@ // #include #include -#include #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -78,7 +77,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_multi_extension__extension_2, } // namespace -TEST(ExtensionTest, BasicMultiExtension) { // NOLINT +TEST(BasicTest, MultiExtension) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension_group.cc b/tests/ten_runtime/smoke/basic/basic_multi_extension_group.cc similarity index 96% rename from tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension_group.cc rename to tests/ten_runtime/smoke/basic/basic_multi_extension_group.cc index 7aba4dbfdc..3b429f85cc 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_multi_extension_group.cc +++ b/tests/ten_runtime/smoke/basic/basic_multi_extension_group.cc @@ -6,13 +6,12 @@ // #include #include -#include #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -78,7 +77,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_multi_extension_group__extension_2, } // namespace -TEST(ExtensionTest, BasicMultiExtensionGroup) { // NOLINT +TEST(BasicTest, MultiExtensionGroup) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_no_init_extension_group.cc b/tests/ten_runtime/smoke/basic/basic_no_init_extension_group.cc similarity index 95% rename from tests/ten_runtime/smoke/extension_test/basic/basic_no_init_extension_group.cc rename to tests/ten_runtime/smoke/basic/basic_no_init_extension_group.cc index 1992f03723..176b44eac9 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_no_init_extension_group.cc +++ b/tests/ten_runtime/smoke/basic/basic_no_init_extension_group.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -62,7 +62,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_no_init_extension_group__extension, } // namespace -TEST(ExtensionTest, BasicNoInitExtensionGroup) { // NOLINT +TEST(BasicTest, NoInitExtensionGroup) { // NOLINT auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_throw_exception_in_extension.cc b/tests/ten_runtime/smoke/basic/basic_throw_exception_in_extension.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/basic/basic_throw_exception_in_extension.cc rename to tests/ten_runtime/smoke/basic/basic_throw_exception_in_extension.cc index 16ec27811a..aea9c4ee24 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_throw_exception_in_extension.cc +++ b/tests/ten_runtime/smoke/basic/basic_throw_exception_in_extension.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -166,7 +166,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicThrowExceptionInExtension) { // NOLINT +TEST(BasicTest, ThrowExceptionInExtension) { // NOLINT // Start app. auto *app_3_thread = ten_thread_create("app thread 3", app_thread_3_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_two_extensions.cc b/tests/ten_runtime/smoke/basic/basic_two_extensions.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/basic/basic_two_extensions.cc rename to tests/ten_runtime/smoke/basic/basic_two_extensions.cc index 127ae15782..71d336742e 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_two_extensions.cc +++ b/tests/ten_runtime/smoke/basic/basic_two_extensions.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -77,7 +77,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION(basic_two_extensions__test_extension_2, } // namespace -TEST(ExtensionTest, BasicTwoExtensions) { // NOLINT +TEST(BasicTest, TwoExtensions) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_1.cc b/tests/ten_runtime/smoke/basic/basic_two_standalone_extension_1.cc similarity index 96% rename from tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_1.cc rename to tests/ten_runtime/smoke/basic/basic_two_standalone_extension_1.cc index c0d582654e..1e4aaf8b64 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_1.cc +++ b/tests/ten_runtime/smoke/basic/basic_two_standalone_extension_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -75,7 +75,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicTwoStandaloneExtension1) { // NOLINT +TEST(BasicTest, TwoStandaloneExtension1) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_2.cc b/tests/ten_runtime/smoke/basic/basic_two_standalone_extension_2.cc similarity index 96% rename from tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_2.cc rename to tests/ten_runtime/smoke/basic/basic_two_standalone_extension_2.cc index fe36c34da5..663b620e59 100644 --- a/tests/ten_runtime/smoke/extension_test/basic/basic_two_standalone_extension_2.cc +++ b/tests/ten_runtime/smoke/basic/basic_two_standalone_extension_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -75,7 +75,7 @@ TEN_CPP_REGISTER_ADDON_AS_EXTENSION( } // namespace -TEST(ExtensionTest, BasicTwoStandaloneExtension2) { // NOLINT +TEST(BasicTest, TwoStandaloneExtension2) { // NOLINT // Start app. auto *app_thread = ten_thread_create("app thread", test_app_thread_main, nullptr); diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_connect_cmd.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_connect_cmd.cc index 5a8c8aa9ed..498b5e386e 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_connect_cmd.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_connect_cmd.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_data.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_data.cc index 88442ee929..a015422653 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_data.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_data.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph.cc index dcfef61869..212a3c0fa8 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph_default_uri.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph_default_uri.cc index 54e92c4cb2..02411a2b8a 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph_default_uri.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_graph_default_uri.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path.cc index 14837f1fe7..557362809e 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_1.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_1.cc index 8d07718803..12254852d1 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_1.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_1.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_2.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_2.cc index fd2d2d6a92..2c853de793 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_2.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_3.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_3.cc index 41bb2be09c..0472f1ad55 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_3.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_3.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_4.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_4.cc index eebd4746f4..270aadfd6e 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_4.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_4.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_5.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_5.cc index 1ce5497cc4..d141f9317c 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_5.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_5.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_6.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_6.cc index 5c24a8fd32..12844fee43 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_6.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_6.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_7.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_7.cc index aa4e6a2f7f..63ce205068 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_7.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_array_7.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_keep_original.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_keep_original.cc index bf975e2462..505ae4c1c6 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_keep_original.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_keep_original.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_1.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_1.cc index 1345d570f2..58043a3481 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_1.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_1.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_2.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_2.cc index 3bca8e8bf2..6c88b984ac 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_2.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_3.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_3.cc index 06e30ae196..24a915d2ff 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_3.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_3.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_4.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_4.cc index 863a369169..b773378af8 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_4.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_4.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_5.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_5.cc index 6f277c7f4a..3654af5d4f 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_5.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_5.cc @@ -13,7 +13,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_6.cc b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_6.cc index b2f781549e..87c90d0349 100644 --- a/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_6.cc +++ b/tests/ten_runtime/smoke/cmd_conversion/cmd_conversion_path_nested_6.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_1.cc b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_1.cc index adc19dc4a5..bf37945fcc 100644 --- a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_1.cc +++ b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_2.cc b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_2.cc index e91d952b3b..21ce3809c7 100644 --- a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_2.cc +++ b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_2.cc @@ -12,7 +12,7 @@ #include "ten_runtime/binding/cpp/detail/ten_env.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_3.cc b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_3.cc index 85cf3f4c81..7e9550fab4 100644 --- a/tests/ten_runtime/smoke/cmd_result_test/multiple_result_3.cc +++ b/tests/ten_runtime/smoke/cmd_result_test/multiple_result_3.cc @@ -12,7 +12,7 @@ #include "ten_runtime/binding/cpp/detail/ten_env.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/BUILD.gn b/tests/ten_runtime/smoke/command/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/command/BUILD.gn rename to tests/ten_runtime/smoke/command/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/command/command_check_cmd_out.cc b/tests/ten_runtime/smoke/command/command_check_cmd_out.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/command/command_check_cmd_out.cc rename to tests/ten_runtime/smoke/command/command_check_cmd_out.cc index 4d85c599fd..3c36a829e9 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_check_cmd_out.cc +++ b/tests/ten_runtime/smoke/command/command_check_cmd_out.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension.cc b/tests/ten_runtime/smoke/command/command_invalid_extension.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/command/command_invalid_extension.cc rename to tests/ten_runtime/smoke/command/command_invalid_extension.cc index f2748a1de3..cc749faef8 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension.cc +++ b/tests/ten_runtime/smoke/command/command_invalid_extension.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_2.cc b/tests/ten_runtime/smoke/command/command_invalid_extension_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_2.cc rename to tests/ten_runtime/smoke/command/command_invalid_extension_2.cc index 645ab1d143..282360c8df 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_2.cc +++ b/tests/ten_runtime/smoke/command/command_invalid_extension_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_group.cc b/tests/ten_runtime/smoke/command/command_invalid_extension_group.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_group.cc rename to tests/ten_runtime/smoke/command/command_invalid_extension_group.cc index c6bdb97d03..5396f17fe0 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_invalid_extension_group.cc +++ b/tests/ten_runtime/smoke/command/command_invalid_extension_group.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_send_enum.cc b/tests/ten_runtime/smoke/command/command_send_enum.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/command/command_send_enum.cc rename to tests/ten_runtime/smoke/command/command_send_enum.cc index 2d4c334236..d45593a8dc 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_send_enum.cc +++ b/tests/ten_runtime/smoke/command/command_send_enum.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_send_ptr.cc b/tests/ten_runtime/smoke/command/command_send_ptr.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/command/command_send_ptr.cc rename to tests/ten_runtime/smoke/command/command_send_ptr.cc index c6c61fe9d2..52f97e03cc 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_send_ptr.cc +++ b/tests/ten_runtime/smoke/command/command_send_ptr.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/alloc.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_send_ptr_through_cmd.cc b/tests/ten_runtime/smoke/command/command_send_ptr_through_cmd.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/command/command_send_ptr_through_cmd.cc rename to tests/ten_runtime/smoke/command/command_send_ptr_through_cmd.cc index ac95adb94e..3c445b6f07 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_send_ptr_through_cmd.cc +++ b/tests/ten_runtime/smoke/command/command_send_ptr_through_cmd.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/alloc.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively.cc b/tests/ten_runtime/smoke/command/command_stop_graph_actively.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively.cc rename to tests/ten_runtime/smoke/command/command_stop_graph_actively.cc index c20b0bb371..9a37b9dbe6 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively.cc +++ b/tests/ten_runtime/smoke/command/command_stop_graph_actively.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd.cc b/tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd.cc rename to tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd.cc index d6510164fa..e24a66cec5 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd.cc +++ b/tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd_dest.cc b/tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd_dest.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd_dest.cc rename to tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd_dest.cc index 96ed7ba7fd..16f44e225b 100644 --- a/tests/ten_runtime/smoke/extension_test/command/command_stop_graph_actively_through_cmd_dest.cc +++ b/tests/ten_runtime/smoke/command/command_stop_graph_actively_through_cmd_dest.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/concurrent/BUILD.gn b/tests/ten_runtime/smoke/concurrent/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/concurrent/BUILD.gn rename to tests/ten_runtime/smoke/concurrent/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/concurrent/multi_app_concurrent.cc b/tests/ten_runtime/smoke/concurrent/multi_app_concurrent.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/concurrent/multi_app_concurrent.cc rename to tests/ten_runtime/smoke/concurrent/multi_app_concurrent.cc index 4397131cfb..13bca2c514 100644 --- a/tests/ten_runtime/smoke/extension_test/concurrent/multi_app_concurrent.cc +++ b/tests/ten_runtime/smoke/concurrent/multi_app_concurrent.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/concurrent/multi_app_sequential.cc b/tests/ten_runtime/smoke/concurrent/multi_app_sequential.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/concurrent/multi_app_sequential.cc rename to tests/ten_runtime/smoke/concurrent/multi_app_sequential.cc index 91a296adc4..6359abac8e 100644 --- a/tests/ten_runtime/smoke/extension_test/concurrent/multi_app_sequential.cc +++ b/tests/ten_runtime/smoke/concurrent/multi_app_sequential.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/concurrent/one_engine_concurrent.cc b/tests/ten_runtime/smoke/concurrent/one_engine_concurrent.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/concurrent/one_engine_concurrent.cc rename to tests/ten_runtime/smoke/concurrent/one_engine_concurrent.cc index 83ccb6f75d..b1318c1d18 100644 --- a/tests/ten_runtime/smoke/extension_test/concurrent/one_engine_concurrent.cc +++ b/tests/ten_runtime/smoke/concurrent/one_engine_concurrent.cc @@ -16,7 +16,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/data_test/basic.cc b/tests/ten_runtime/smoke/data_test/basic.cc index 55198cc5f3..42e53b211d 100644 --- a/tests/ten_runtime/smoke/data_test/basic.cc +++ b/tests/ten_runtime/smoke/data_test/basic.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DATA "hello world" diff --git a/tests/ten_runtime/smoke/data_test/basic_2.cc b/tests/ten_runtime/smoke/data_test/basic_2.cc index 9b09b3b392..4ef18e1faf 100644 --- a/tests/ten_runtime/smoke/data_test/basic_2.cc +++ b/tests/ten_runtime/smoke/data_test/basic_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/data_test/create_from_json.cc b/tests/ten_runtime/smoke/data_test/create_from_json.cc index 34248e0789..c0cacf225d 100644 --- a/tests/ten_runtime/smoke/data_test/create_from_json.cc +++ b/tests/ten_runtime/smoke/data_test/create_from_json.cc @@ -13,7 +13,7 @@ #include "ten_runtime/binding/cpp/detail/msg/data.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/data_test/from_json.cc b/tests/ten_runtime/smoke/data_test/from_json.cc index 7a28fad3d0..308e4f6068 100644 --- a/tests/ten_runtime/smoke/data_test/from_json.cc +++ b/tests/ten_runtime/smoke/data_test/from_json.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/data_test/multi_dest_data.cc b/tests/ten_runtime/smoke/data_test/multi_dest_data.cc index 2e5899dc36..7fc3b3998c 100644 --- a/tests/ten_runtime/smoke/data_test/multi_dest_data.cc +++ b/tests/ten_runtime/smoke/data_test/multi_dest_data.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DATA "hello world" diff --git a/tests/ten_runtime/smoke/extension_test/dest/BUILD.gn b/tests/ten_runtime/smoke/dest/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/dest/BUILD.gn rename to tests/ten_runtime/smoke/dest/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/dest/no_audio_frame_dest.cc b/tests/ten_runtime/smoke/dest/no_audio_frame_dest.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/dest/no_audio_frame_dest.cc rename to tests/ten_runtime/smoke/dest/no_audio_frame_dest.cc index 87702a5d4d..67b1dce8e0 100644 --- a/tests/ten_runtime/smoke/extension_test/dest/no_audio_frame_dest.cc +++ b/tests/ten_runtime/smoke/dest/no_audio_frame_dest.cc @@ -15,7 +15,7 @@ #include "ten_utils/lang/cpp/lib/error.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/dest/specify_dest.cc b/tests/ten_runtime/smoke/dest/specify_dest.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/dest/specify_dest.cc rename to tests/ten_runtime/smoke/dest/specify_dest.cc index 961a500874..a89b58ed98 100644 --- a/tests/ten_runtime/smoke/extension_test/dest/specify_dest.cc +++ b/tests/ten_runtime/smoke/dest/specify_dest.cc @@ -12,7 +12,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" // This is a simple example, used to demonstrate that the flow between // extensions is _not_ specified by a graph, but is explicitly defined by the diff --git a/tests/ten_runtime/smoke/extension_test/engine/BUILD.gn b/tests/ten_runtime/smoke/engine/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/engine/BUILD.gn rename to tests/ten_runtime/smoke/engine/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/engine/batch_send_msgs_in_migration.cc b/tests/ten_runtime/smoke/engine/batch_send_msgs_in_migration.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/engine/batch_send_msgs_in_migration.cc rename to tests/ten_runtime/smoke/engine/batch_send_msgs_in_migration.cc index c4c271ea99..c85dfe1883 100644 --- a/tests/ten_runtime/smoke/extension_test/engine/batch_send_msgs_in_migration.cc +++ b/tests/ten_runtime/smoke/engine/batch_send_msgs_in_migration.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/engine/engine_long_running_mode.cc b/tests/ten_runtime/smoke/engine/engine_long_running_mode.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/engine/engine_long_running_mode.cc rename to tests/ten_runtime/smoke/engine/engine_long_running_mode.cc index 0f16aa1d55..67d765ff19 100644 --- a/tests/ten_runtime/smoke/extension_test/engine/engine_long_running_mode.cc +++ b/tests/ten_runtime/smoke/engine/engine_long_running_mode.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/engine/engine_one_loop_per_engine.cc b/tests/ten_runtime/smoke/engine/engine_one_loop_per_engine.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/engine/engine_one_loop_per_engine.cc rename to tests/ten_runtime/smoke/engine/engine_one_loop_per_engine.cc index 3857ca1755..e38693471e 100644 --- a/tests/ten_runtime/smoke/extension_test/engine/engine_one_loop_per_engine.cc +++ b/tests/ten_runtime/smoke/engine/engine_one_loop_per_engine.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/engine/extension_send_msg_to_incorrect_engine.cc b/tests/ten_runtime/smoke/engine/extension_send_msg_to_incorrect_engine.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/engine/extension_send_msg_to_incorrect_engine.cc rename to tests/ten_runtime/smoke/engine/extension_send_msg_to_incorrect_engine.cc index 76cbe1cbad..af94db4648 100644 --- a/tests/ten_runtime/smoke/extension_test/engine/extension_send_msg_to_incorrect_engine.cc +++ b/tests/ten_runtime/smoke/engine/extension_send_msg_to_incorrect_engine.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/engine/wrong_engine_then_correct_in_migration.cc b/tests/ten_runtime/smoke/engine/wrong_engine_then_correct_in_migration.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/engine/wrong_engine_then_correct_in_migration.cc rename to tests/ten_runtime/smoke/engine/wrong_engine_then_correct_in_migration.cc index a86ef6d858..b2874f9532 100644 --- a/tests/ten_runtime/smoke/extension_test/engine/wrong_engine_then_correct_in_migration.cc +++ b/tests/ten_runtime/smoke/engine/wrong_engine_then_correct_in_migration.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/error/BUILD.gn b/tests/ten_runtime/smoke/error/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/error/BUILD.gn rename to tests/ten_runtime/smoke/error/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/error/error_client_send_json.cc b/tests/ten_runtime/smoke/error/error_client_send_json.cc similarity index 100% rename from tests/ten_runtime/smoke/extension_test/error/error_client_send_json.cc rename to tests/ten_runtime/smoke/error/error_client_send_json.cc diff --git a/tests/ten_runtime/smoke/extension_test/error/failed_to_connect_to_remote.cc b/tests/ten_runtime/smoke/error/failed_to_connect_to_remote.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/error/failed_to_connect_to_remote.cc rename to tests/ten_runtime/smoke/error/failed_to_connect_to_remote.cc index c69da45835..caf6b52603 100644 --- a/tests/ten_runtime/smoke/extension_test/error/failed_to_connect_to_remote.cc +++ b/tests/ten_runtime/smoke/error/failed_to_connect_to_remote.cc @@ -9,7 +9,7 @@ #include "ten_runtime/binding/cpp/detail/msg/cmd/start_graph.h" #include "ten_runtime/common/status_code.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { class test_predefined_graph : public ten::extension_t { diff --git a/tests/ten_runtime/smoke/extension_test/error/failed_to_listen.cc b/tests/ten_runtime/smoke/error/failed_to_listen.cc similarity index 94% rename from tests/ten_runtime/smoke/extension_test/error/failed_to_listen.cc rename to tests/ten_runtime/smoke/error/failed_to_listen.cc index e78c374898..5717cda732 100644 --- a/tests/ten_runtime/smoke/extension_test/error/failed_to_listen.cc +++ b/tests/ten_runtime/smoke/error/failed_to_listen.cc @@ -10,7 +10,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension/BUILD.gn b/tests/ten_runtime/smoke/extension/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/extension/BUILD.gn rename to tests/ten_runtime/smoke/extension/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension.cc b/tests/ten_runtime/smoke/extension/extension_reg_extension.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension.cc rename to tests/ten_runtime/smoke/extension/extension_reg_extension.cc index 1edac37a53..fee5872fb8 100644 --- a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension.cc +++ b/tests/ten_runtime/smoke/extension/extension_reg_extension.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_and_create_group.cc b/tests/ten_runtime/smoke/extension/extension_reg_extension_and_create_group.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_and_create_group.cc rename to tests/ten_runtime/smoke/extension/extension_reg_extension_and_create_group.cc index dda25e3ab1..883691e9ec 100644 --- a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_and_create_group.cc +++ b/tests/ten_runtime/smoke/extension/extension_reg_extension_and_create_group.cc @@ -13,7 +13,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define APP_PROP_VAL 12345 #define EXTENSION_PROP_VAL 98762 diff --git a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_group.cc b/tests/ten_runtime/smoke/extension/extension_reg_extension_group.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_group.cc rename to tests/ten_runtime/smoke/extension/extension_reg_extension_group.cc index ac4c87d478..5d8794af25 100644 --- a/tests/ten_runtime/smoke/extension_test/extension/extension_reg_extension_group.cc +++ b/tests/ten_runtime/smoke/extension/extension_reg_extension_group.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension/extension_with_same_name.cc b/tests/ten_runtime/smoke/extension/extension_with_same_name.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension/extension_with_same_name.cc rename to tests/ten_runtime/smoke/extension/extension_with_same_name.cc index f01509ee7d..72410961fb 100644 --- a/tests/ten_runtime/smoke/extension_test/extension/extension_with_same_name.cc +++ b/tests/ten_runtime/smoke/extension/extension_with_same_name.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension_group/BUILD.gn b/tests/ten_runtime/smoke/extension_group/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/extension_group/BUILD.gn rename to tests/ten_runtime/smoke/extension_group/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_not_specified.cc b/tests/ten_runtime/smoke/extension_group/extension_group_not_specified.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension_group/extension_group_not_specified.cc rename to tests/ten_runtime/smoke/extension_group/extension_group_not_specified.cc index 5e1003f33b..703876abbd 100644 --- a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_not_specified.cc +++ b/tests/ten_runtime/smoke/extension_group/extension_group_not_specified.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name.cc b/tests/ten_runtime/smoke/extension_group/extension_group_with_same_name.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name.cc rename to tests/ten_runtime/smoke/extension_group/extension_group_with_same_name.cc index ab166ef720..7940f934bc 100644 --- a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name.cc +++ b/tests/ten_runtime/smoke/extension_group/extension_group_with_same_name.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name_and_topo_info.cc b/tests/ten_runtime/smoke/extension_group/extension_group_with_same_name_and_topo_info.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name_and_topo_info.cc rename to tests/ten_runtime/smoke/extension_group/extension_group_with_same_name_and_topo_info.cc index 9f8965fdba..7947f69e03 100644 --- a/tests/ten_runtime/smoke/extension_test/extension_group/extension_group_with_same_name_and_topo_info.cc +++ b/tests/ten_runtime/smoke/extension_group/extension_group_with_same_name_and_topo_info.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/BUILD.gn b/tests/ten_runtime/smoke/extension_test/BUILD.gn deleted file mode 100644 index 1172aff762..0000000000 --- a/tests/ten_runtime/smoke/extension_test/BUILD.gn +++ /dev/null @@ -1,59 +0,0 @@ -# -# Copyright © 2024 Agora -# This file is part of TEN Framework, an open source project. -# Licensed under the Apache License, Version 2.0, with certain conditions. -# Refer to the "LICENSE" file in the root directory for more information. -# -import("//build/ten_runtime/glob.gni") -import("//build/ten_runtime/ten.gni") - -glob("extension_test") { - file_list = all_native_files - - include_dirs = [ - "//packages", - "//tests/ten_runtime", - ] - - deps = [ - "//core/src/ten_runtime", - "//tests/common/client", - "//tests/common/server", - ] - - public_deps = [ - "//third_party/googlemock", - "//third_party/googletest", - ] - - deps += [ - "basic", - "command", - "dest", - "engine", - "error", - "extension", - "extension_group", - "graph", - "graph_name", - "lock", - "multi_dest", - "outer_thread", - "path", - "predefined_graph", - "prepare_to_stop", - "resp_handler", - "return", - "same_thread_ext_on_xxx", - "start_graph", - "suspend_resume", - "ten_proxy", - "timer", - ] - - if (ten_enable_libwebsockets && ten_enable_curl) { - deps += [ "http_server_extension" ] - } - - deps += [ "concurrent" ] -} diff --git a/tests/ten_runtime/smoke/extension_test/graph/BUILD.gn b/tests/ten_runtime/smoke/graph/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/graph/BUILD.gn rename to tests/ten_runtime/smoke/graph/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_1.cc b/tests/ten_runtime/smoke/graph/graph_lack_something_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_1.cc rename to tests/ten_runtime/smoke/graph/graph_lack_something_1.cc index 77c9d09a66..ed40c2b377 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_1.cc +++ b/tests/ten_runtime/smoke/graph/graph_lack_something_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_2.cc b/tests/ten_runtime/smoke/graph/graph_lack_something_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_2.cc rename to tests/ten_runtime/smoke/graph/graph_lack_something_2.cc index 48ce13ceb0..6d0327aa71 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_2.cc +++ b/tests/ten_runtime/smoke/graph/graph_lack_something_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_3.cc b/tests/ten_runtime/smoke/graph/graph_lack_something_3.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_3.cc rename to tests/ten_runtime/smoke/graph/graph_lack_something_3.cc index ff88589122..c3cbf01a6f 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_lack_something_3.cc +++ b/tests/ten_runtime/smoke/graph/graph_lack_something_3.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_multi_app.cc b/tests/ten_runtime/smoke/graph/graph_loop_in_multi_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_multi_app.cc rename to tests/ten_runtime/smoke/graph/graph_loop_in_multi_app.cc index 644c6fc56d..81e0864597 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_multi_app.cc +++ b/tests/ten_runtime/smoke/graph/graph_loop_in_multi_app.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_one_app.cc b/tests/ten_runtime/smoke/graph/graph_loop_in_one_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_one_app.cc rename to tests/ten_runtime/smoke/graph/graph_loop_in_one_app.cc index 25d19899dc..09288a84bc 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_in_one_app.cc +++ b/tests/ten_runtime/smoke/graph/graph_loop_in_one_app.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle.cc b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle.cc rename to tests/ten_runtime/smoke/graph/graph_loop_multiple_circle.cc index 2a7ff6d8c2..c5aa805dce 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle.cc +++ b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle.cc @@ -12,7 +12,7 @@ #include "ten_runtime/binding/cpp/detail/ten_env.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define LOOP_CNT 2 diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd.cc b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd.cc rename to tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd.cc index d7d3ae91df..8233006dc3 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd.cc +++ b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define LOOP_CNT 2 diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd_with_default.cc b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd_with_default.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd_with_default.cc rename to tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd_with_default.cc index 556fc44cca..03cf79a288 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_loop_multiple_circle_through_cmd_with_default.cc +++ b/tests/ten_runtime/smoke/graph/graph_loop_multiple_circle_through_cmd_with_default.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/log/log.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define LOOP_CNT 2 diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon.cc b/tests/ten_runtime/smoke/graph/graph_multiple_polygon.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon.cc rename to tests/ten_runtime/smoke/graph/graph_multiple_polygon.cc index 5539632c23..a27f71668f 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon.cc +++ b/tests/ten_runtime/smoke/graph/graph_multiple_polygon.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon_one_app.cc b/tests/ten_runtime/smoke/graph/graph_multiple_polygon_one_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon_one_app.cc rename to tests/ten_runtime/smoke/graph/graph_multiple_polygon_one_app.cc index 72a5df205d..ce0b00bba8 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_multiple_polygon_one_app.cc +++ b/tests/ten_runtime/smoke/graph/graph_multiple_polygon_one_app.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_1.cc b/tests/ten_runtime/smoke/graph/graph_out_of_order_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_1.cc rename to tests/ten_runtime/smoke/graph/graph_out_of_order_1.cc index 5b27db9f03..c1027e7bcb 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_1.cc +++ b/tests/ten_runtime/smoke/graph/graph_out_of_order_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_2.cc b/tests/ten_runtime/smoke/graph/graph_out_of_order_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_2.cc rename to tests/ten_runtime/smoke/graph/graph_out_of_order_2.cc index 559feb295c..a12a6d7d73 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_out_of_order_2.cc +++ b/tests/ten_runtime/smoke/graph/graph_out_of_order_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_1.cc b/tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_1.cc rename to tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_1.cc index 9bc859480b..87c1420269 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_1.cc +++ b/tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_1.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_2.cc b/tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_2.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_2.cc rename to tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_2.cc index 4e550691f1..1381f4d5d4 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_polygon_in_one_app_return_all_2.cc +++ b/tests/ten_runtime/smoke/graph/graph_polygon_in_one_app_return_all_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_multi_app.cc b/tests/ten_runtime/smoke/graph/graph_y_shape_in_multi_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_multi_app.cc rename to tests/ten_runtime/smoke/graph/graph_y_shape_in_multi_app.cc index dafec114be..f329994600 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_multi_app.cc +++ b/tests/ten_runtime/smoke/graph/graph_y_shape_in_multi_app.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_one_app.cc b/tests/ten_runtime/smoke/graph/graph_y_shape_in_one_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_one_app.cc rename to tests/ten_runtime/smoke/graph/graph_y_shape_in_one_app.cc index 497bfb4f98..196404cfd4 100644 --- a/tests/ten_runtime/smoke/extension_test/graph/graph_y_shape_in_one_app.cc +++ b/tests/ten_runtime/smoke/graph/graph_y_shape_in_one_app.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/graph_name/BUILD.gn b/tests/ten_runtime/smoke/graph_name/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/graph_name/BUILD.gn rename to tests/ten_runtime/smoke/graph_name/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/graph_name/graph_name_basic.cc b/tests/ten_runtime/smoke/graph_name/graph_name_basic.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/graph_name/graph_name_basic.cc rename to tests/ten_runtime/smoke/graph_name/graph_name_basic.cc index 176acd0139..4fcd6f857b 100644 --- a/tests/ten_runtime/smoke/extension_test/graph_name/graph_name_basic.cc +++ b/tests/ten_runtime/smoke/graph_name/graph_name_basic.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/graph_test/group_node_missing.cc b/tests/ten_runtime/smoke/graph_test/group_node_missing.cc index 3a7b13cd0b..a243fed276 100644 --- a/tests/ten_runtime/smoke/graph_test/group_node_missing.cc +++ b/tests/ten_runtime/smoke/graph_test/group_node_missing.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/graph_test/group_node_missing_2_apps.cc b/tests/ten_runtime/smoke/graph_test/group_node_missing_2_apps.cc index 42a4dcd3b1..3a2e1d64e3 100644 --- a/tests/ten_runtime/smoke/graph_test/group_node_missing_2_apps.cc +++ b/tests/ten_runtime/smoke/graph_test/group_node_missing_2_apps.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/http_server_extension/BUILD.gn b/tests/ten_runtime/smoke/http_server_extension/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/http_server_extension/BUILD.gn rename to tests/ten_runtime/smoke/http_server_extension/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/http_server_extension/http_server_extension_close_app.cc b/tests/ten_runtime/smoke/http_server_extension/http_server_extension_close_app.cc similarity index 100% rename from tests/ten_runtime/smoke/extension_test/http_server_extension/http_server_extension_close_app.cc rename to tests/ten_runtime/smoke/http_server_extension/http_server_extension_close_app.cc diff --git a/tests/ten_runtime/smoke/extension_test/http_server_extension/http_server_extension_two_extensions.cc b/tests/ten_runtime/smoke/http_server_extension/http_server_extension_two_extensions.cc similarity index 100% rename from tests/ten_runtime/smoke/extension_test/http_server_extension/http_server_extension_two_extensions.cc rename to tests/ten_runtime/smoke/http_server_extension/http_server_extension_two_extensions.cc diff --git a/tests/ten_runtime/smoke/interface_test/interface_out_cmd_in_schema.cc b/tests/ten_runtime/smoke/interface_test/interface_out_cmd_in_schema.cc index 72dc390eb9..16d8475739 100644 --- a/tests/ten_runtime/smoke/interface_test/interface_out_cmd_in_schema.cc +++ b/tests/ten_runtime/smoke/interface_test/interface_out_cmd_in_schema.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/interface_test/interface_out_cmd_not_in_schema.cc b/tests/ten_runtime/smoke/interface_test/interface_out_cmd_not_in_schema.cc index 4cd5097812..6f77ad9621 100644 --- a/tests/ten_runtime/smoke/interface_test/interface_out_cmd_not_in_schema.cc +++ b/tests/ten_runtime/smoke/interface_test/interface_out_cmd_not_in_schema.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/interface_test/interface_out_result_error.cc b/tests/ten_runtime/smoke/interface_test/interface_out_result_error.cc index 7b16181ff8..c15fe83426 100644 --- a/tests/ten_runtime/smoke/interface_test/interface_out_result_error.cc +++ b/tests/ten_runtime/smoke/interface_test/interface_out_result_error.cc @@ -12,7 +12,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/lock/BUILD.gn b/tests/ten_runtime/smoke/lock/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/lock/BUILD.gn rename to tests/ten_runtime/smoke/lock/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/lock/lock_data_1.cc b/tests/ten_runtime/smoke/lock/lock_data_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/lock/lock_data_1.cc rename to tests/ten_runtime/smoke/lock/lock_data_1.cc index c82f7c4430..133394a86c 100644 --- a/tests/ten_runtime/smoke/extension_test/lock/lock_data_1.cc +++ b/tests/ten_runtime/smoke/lock/lock_data_1.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DATA "hello world" diff --git a/tests/ten_runtime/smoke/log_test/log_file.cc b/tests/ten_runtime/smoke/log_test/log_file.cc index 1fe8ad5593..2afc52057c 100644 --- a/tests/ten_runtime/smoke/log_test/log_file.cc +++ b/tests/ten_runtime/smoke/log_test/log_file.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/log_test/log_stderr.cc b/tests/ten_runtime/smoke/log_test/log_stderr.cc index e6c6fb94b1..d7f0915bf9 100644 --- a/tests/ten_runtime/smoke/log_test/log_stderr.cc +++ b/tests/ten_runtime/smoke/log_test/log_stderr.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_c_string.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_c_string.cc index f88ee7669a..4bf044928e 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_c_string.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_c_string.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA "hello TEN in C!" diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_ptr.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_ptr.cc index 7a61d270e9..867a963682 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_ptr.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_ptr.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_string.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_string.cc index 3571854cb4..3648e49836 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_string.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_cpp_string.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA "hello TEN in C++!" diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_float_ptr.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_float_ptr.cc index 25b8a713f6..da1ac8718c 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_float_ptr.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_float_ptr.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/alloc.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321.8888F diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_int.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_int.cc index 0b6521b079..5bb8754fce 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_int.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_int.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_property/msg_property_send_int32_ptr.cc b/tests/ten_runtime/smoke/msg_property/msg_property_send_int32_ptr.cc index f48eedfd07..d44660460f 100644 --- a/tests/ten_runtime/smoke/msg_property/msg_property_send_int32_ptr.cc +++ b/tests/ten_runtime/smoke/msg_property/msg_property_send_int32_ptr.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/alloc.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_1.cc b/tests/ten_runtime/smoke/msg_test/msg_1.cc index 62c0f7cd59..cf9c23f283 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_1.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_10.cc b/tests/ten_runtime/smoke/msg_test/msg_10.cc index eb04150cf1..fca7e3f986 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_10.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_10.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_11.cc b/tests/ten_runtime/smoke/msg_test/msg_11.cc index ec0c5696d5..39397b789c 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_11.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_11.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_12.cc b/tests/ten_runtime/smoke/msg_test/msg_12.cc index 3b3bcf62fb..807299b938 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_12.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_12.cc @@ -13,7 +13,7 @@ #include "ten_runtime/binding/cpp/detail/msg/cmd/cmd.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_13.cc b/tests/ten_runtime/smoke/msg_test/msg_13.cc index 2524641847..284448b852 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_13.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_13.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_2.cc b/tests/ten_runtime/smoke/msg_test/msg_2.cc index 3ade4c4137..1377bc2aba 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_2.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_3.cc b/tests/ten_runtime/smoke/msg_test/msg_3.cc index f0cc1ac472..60f2405489 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_3.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_3.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_4.cc b/tests/ten_runtime/smoke/msg_test/msg_4.cc index 676fb816a5..eccd2c04bc 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_4.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_4.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_5.cc b/tests/ten_runtime/smoke/msg_test/msg_5.cc index df3370c27b..e0d3e5a389 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_5.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_5.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_6.cc b/tests/ten_runtime/smoke/msg_test/msg_6.cc index 9fd1094223..bb68b3b8e1 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_6.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_6.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_7.cc b/tests/ten_runtime/smoke/msg_test/msg_7.cc index 9d6ac3591b..25a8d53653 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_7.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_7.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_8.cc b/tests/ten_runtime/smoke/msg_test/msg_8.cc index 225e43d08e..a1e610244e 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_8.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_8.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_9.cc b/tests/ten_runtime/smoke/msg_test/msg_9.cc index 004c3777df..a7436c91de 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_9.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_9.cc @@ -13,7 +13,7 @@ #include "ten_runtime/binding/cpp/detail/msg/cmd/cmd.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA 12344321 diff --git a/tests/ten_runtime/smoke/msg_test/msg_fail_1.cc b/tests/ten_runtime/smoke/msg_test/msg_fail_1.cc index 88c1378fcb..6b7bd8830b 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_fail_1.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_fail_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/msg_test/msg_fail_2.cc b/tests/ten_runtime/smoke/msg_test/msg_fail_2.cc index a86637dc0d..be9430afba 100644 --- a/tests/ten_runtime/smoke/msg_test/msg_fail_2.cc +++ b/tests/ten_runtime/smoke/msg_test/msg_fail_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/BUILD.gn b/tests/ten_runtime/smoke/multi_dest/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/multi_dest/BUILD.gn rename to tests/ten_runtime/smoke/multi_dest/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_basic.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_basic.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_basic.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_basic.cc index 00b5d7525d..abc45bfebc 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_basic.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_basic.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app.cc index 23ea3411e8..f82a4e54b2 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DEST_EXTENSION_MIN_ID 2 #define DEST_EXTENSION_MAX_ID 15 diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler.cc index 1f9d5e424a..04b6e12bb4 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DEST_EXTENSION_MIN_ID 2 #define DEST_EXTENSION_MAX_ID 15 diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc index 70e433b4cc..3f0eb1254e 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_multi_app_with_response_handler_lambda.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DEST_EXTENSION_MIN_ID 2 #define DEST_EXTENSION_MAX_ID 15 diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_one_app.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_one_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_one_app.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_in_one_app.cc index 5e0240c62a..b781cb8c6e 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_in_one_app.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_in_one_app.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define DEST_EXTENSION_MIN_ID 2 #define DEST_EXTENSION_MAX_ID 35 diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all.cc index 1dab03b17f..d3cb6c735a 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all_in_multi_app.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all_in_multi_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all_in_multi_app.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all_in_multi_app.cc index 939592397b..eabe11549d 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_resp_when_all_in_multi_app.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_resp_when_all_in_multi_app.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" #include "tests/common/constant.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_send_in_stop_period.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_send_in_stop_period.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_send_in_stop_period.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_send_in_stop_period.cc index f63cbc913b..3c705f5b2c 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_send_in_stop_period.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_send_in_stop_period.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_y_topo.cc b/tests/ten_runtime/smoke/multi_dest/multi_dest_y_topo.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_y_topo.cc rename to tests/ten_runtime/smoke/multi_dest/multi_dest_y_topo.cc index a2b71f0093..0260778d36 100644 --- a/tests/ten_runtime/smoke/extension_test/multi_dest/multi_dest_y_topo.cc +++ b/tests/ten_runtime/smoke/multi_dest/multi_dest_y_topo.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_1.cc b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_1.cc index 237ada4180..e0b02bf450 100644 --- a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_1.cc +++ b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_1.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_2.cc b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_2.cc index 9ef95446d7..e3a956e6aa 100644 --- a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_2.cc +++ b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_2.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_3.cc b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_3.cc index ed41a3e4f1..f1e425f021 100644 --- a/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_3.cc +++ b/tests/ten_runtime/smoke/notify_test/member_func_in_lambda_3.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/normal_func.cc b/tests/ten_runtime/smoke/notify_test/normal_func.cc index 190c958261..f934314698 100644 --- a/tests/ten_runtime/smoke/notify_test/normal_func.cc +++ b/tests/ten_runtime/smoke/notify_test/normal_func.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/normal_func_in_lambda.cc b/tests/ten_runtime/smoke/notify_test/normal_func_in_lambda.cc index 916b011218..bc7ae737b3 100644 --- a/tests/ten_runtime/smoke/notify_test/normal_func_in_lambda.cc +++ b/tests/ten_runtime/smoke/notify_test/normal_func_in_lambda.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/notify_test/normal_func_with_user_data.cc b/tests/ten_runtime/smoke/notify_test/normal_func_with_user_data.cc index 4b70305066..678fcf973c 100644 --- a/tests/ten_runtime/smoke/notify_test/normal_func_with_user_data.cc +++ b/tests/ten_runtime/smoke/notify_test/normal_func_with_user_data.cc @@ -15,7 +15,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/128_threads_attempt_to_suspend_1.cc b/tests/ten_runtime/smoke/outer_thread/128_threads_attempt_to_suspend_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/128_threads_attempt_to_suspend_1.cc rename to tests/ten_runtime/smoke/outer_thread/128_threads_attempt_to_suspend_1.cc index 69eb364ed9..190f0b788c 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/128_threads_attempt_to_suspend_1.cc +++ b/tests/ten_runtime/smoke/outer_thread/128_threads_attempt_to_suspend_1.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #if defined(__i386__) || defined(__arm__) #define OUTER_THREAD_FOR_LOOP_CNT 100 diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/16_threads_attempt_to_suspend_1.cc b/tests/ten_runtime/smoke/outer_thread/16_threads_attempt_to_suspend_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/16_threads_attempt_to_suspend_1.cc rename to tests/ten_runtime/smoke/outer_thread/16_threads_attempt_to_suspend_1.cc index a9a9dfd82c..dad387f3c2 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/16_threads_attempt_to_suspend_1.cc +++ b/tests/ten_runtime/smoke/outer_thread/16_threads_attempt_to_suspend_1.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_1.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_1.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_1.cc index c8b08c5150..345e8c515a 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_1.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_1.cc @@ -17,7 +17,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_2.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_2.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_2.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_2.cc index 5edc9a5fa9..1bbb86eed9 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_2.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_2.cc @@ -17,7 +17,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_3.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_3.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_3.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_3.cc index 08455a2d79..046683237c 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_3.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_3.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_4.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_4.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_4.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_4.cc index b484130bf2..19685ac1ef 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_4.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_4.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_5.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_5.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_5.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_5.cc index aade53cb9a..5599032124 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_5.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_5.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_6.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_6.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_6.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_6.cc index 7db785fa6f..f21c3407e3 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_6.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_6.cc @@ -17,7 +17,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_7.cc b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_7.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_7.cc rename to tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_7.cc index 34505d8ea2..ce3fdf13fb 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/2_threads_attempt_to_suspend_7.cc +++ b/tests/ten_runtime/smoke/outer_thread/2_threads_attempt_to_suspend_7.cc @@ -17,7 +17,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_1.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_1.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_1.cc index e3d957c525..c7a8866ed4 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_1.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_1.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_2.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_2.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_2.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_2.cc index ad9e295ec3..05a3648322 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_2.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_2.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_3.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_3.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_3.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_3.cc index 720f2af6c7..a795e0d487 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_3.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_3.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE #define OUTER_THREAD_FOR_LOOP_CNT 100 diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_4.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_4.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_4.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_4.cc index 7b582211a5..db522eb7c3 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_4.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_4.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE #define OUTER_THREAD_FOR_LOOP_CNT 100 diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_5.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_5.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_5.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_5.cc index f33b9058ec..14f4c0715e 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_5.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_5.cc @@ -21,7 +21,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE #define OUTER_THREAD_FOR_LOOP_CNT 100 diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_6.cc b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_6.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_6.cc rename to tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_6.cc index f5086be304..ff588533b9 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/32_threads_attempt_to_suspend_6.cc +++ b/tests/ten_runtime/smoke/outer_thread/32_threads_attempt_to_suspend_6.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define OUTER_THREAD_FOR_LOOP_CNT 100 #define FROM_EXTENSION_2_CMD_CNT 10 diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/BUILD.gn b/tests/ten_runtime/smoke/outer_thread/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/outer_thread/BUILD.gn rename to tests/ten_runtime/smoke/outer_thread/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/auto_free_out_of_scope.cc b/tests/ten_runtime/smoke/outer_thread/auto_free_out_of_scope.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/auto_free_out_of_scope.cc rename to tests/ten_runtime/smoke/outer_thread/auto_free_out_of_scope.cc index d075c6c383..0fb3fecf80 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/auto_free_out_of_scope.cc +++ b/tests/ten_runtime/smoke/outer_thread/auto_free_out_of_scope.cc @@ -20,7 +20,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data.cc b/tests/ten_runtime/smoke/outer_thread/outer_thread_send_data.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data.cc rename to tests/ten_runtime/smoke/outer_thread/outer_thread_send_data.cc index d19a271121..7116d07796 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data.cc +++ b/tests/ten_runtime/smoke/outer_thread/outer_thread_send_data.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data_resp_handler.cc b/tests/ten_runtime/smoke/outer_thread/outer_thread_send_data_resp_handler.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data_resp_handler.cc rename to tests/ten_runtime/smoke/outer_thread/outer_thread_send_data_resp_handler.cc index 519b2b9639..9b1a5007db 100644 --- a/tests/ten_runtime/smoke/extension_test/outer_thread/outer_thread_send_data_resp_handler.cc +++ b/tests/ten_runtime/smoke/outer_thread/outer_thread_send_data_resp_handler.cc @@ -19,7 +19,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/path/BUILD.gn b/tests/ten_runtime/smoke/path/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/path/BUILD.gn rename to tests/ten_runtime/smoke/path/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/path/clean_when_stopped.cc b/tests/ten_runtime/smoke/path/clean_when_stopped.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/path/clean_when_stopped.cc rename to tests/ten_runtime/smoke/path/clean_when_stopped.cc index 86e0c64f2f..9deb7f2366 100644 --- a/tests/ten_runtime/smoke/extension_test/path/clean_when_stopped.cc +++ b/tests/ten_runtime/smoke/path/clean_when_stopped.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/path/path_timeout.cc b/tests/ten_runtime/smoke/path/path_timeout.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/path/path_timeout.cc rename to tests/ten_runtime/smoke/path/path_timeout.cc index 1573763fc6..7e5440240a 100644 --- a/tests/ten_runtime/smoke/extension_test/path/path_timeout.cc +++ b/tests/ten_runtime/smoke/path/path_timeout.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/path/path_timeout_2.cc b/tests/ten_runtime/smoke/path/path_timeout_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/path/path_timeout_2.cc rename to tests/ten_runtime/smoke/path/path_timeout_2.cc index 25cc87afb6..f1f3bd827f 100644 --- a/tests/ten_runtime/smoke/extension_test/path/path_timeout_2.cc +++ b/tests/ten_runtime/smoke/path/path_timeout_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/BUILD.gn b/tests/ten_runtime/smoke/predefined_graph/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/BUILD.gn rename to tests/ten_runtime/smoke/predefined_graph/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_1.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_1.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_1.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_1.cc index 987f9e1b54..5bdb4e8f35 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_1.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_1.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_2.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_2.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_2.cc index a4816645e2..dac3b739cf 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_basic_2.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_basic_2.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_engine_own_eventloop.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_engine_own_eventloop.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_engine_own_eventloop.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_engine_own_eventloop.cc index f229973b81..be1bc6319a 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_engine_own_eventloop.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_engine_own_eventloop.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_app.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_app.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_app.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_app.cc index b3b8ab4c7e..8b27caf775 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_app.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_app.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_1.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_1.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_1.cc index f61f967c32..2a8b2b3759 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_1.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_2.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_2.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_2.cc index 7bc5edece7..7d0fd19594 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_2.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_2.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_3.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_3.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_3.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_3.cc index 104c6da9aa..1346d54685 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_3.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_3.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_4.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_4.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_4.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_4.cc index 519bfee9de..2a6949dfa6 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_multi_extension_4.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_multi_extension_4.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_no_auto_start.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_no_auto_start.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_no_auto_start.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_no_auto_start.cc index 553e43ad43..e6821692f8 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_no_auto_start.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_no_auto_start.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_1.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_1.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_1.cc index ab9d7c89a7..7bd34c837c 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_1.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_1.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_2.cc b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_2.cc similarity index 97% rename from tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_2.cc rename to tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_2.cc index 0c0edad20f..ac58a2edc7 100644 --- a/tests/ten_runtime/smoke/extension_test/predefined_graph/predefined_graph_two_standalone_extensions_2.cc +++ b/tests/ten_runtime/smoke/predefined_graph/predefined_graph_two_standalone_extensions_2.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/prepare_to_stop/BUILD.gn b/tests/ten_runtime/smoke/prepare_to_stop/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/prepare_to_stop/BUILD.gn rename to tests/ten_runtime/smoke/prepare_to_stop/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/prepare_to_stop/different_thread.cc b/tests/ten_runtime/smoke/prepare_to_stop/different_thread.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/prepare_to_stop/different_thread.cc rename to tests/ten_runtime/smoke/prepare_to_stop/different_thread.cc index d7415bdc71..3aa57f7eb6 100644 --- a/tests/ten_runtime/smoke/extension_test/prepare_to_stop/different_thread.cc +++ b/tests/ten_runtime/smoke/prepare_to_stop/different_thread.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/prepare_to_stop/same_thread.cc b/tests/ten_runtime/smoke/prepare_to_stop/same_thread.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/prepare_to_stop/same_thread.cc rename to tests/ten_runtime/smoke/prepare_to_stop/same_thread.cc index f4e08006d3..686df07b87 100644 --- a/tests/ten_runtime/smoke/extension_test/prepare_to_stop/same_thread.cc +++ b/tests/ten_runtime/smoke/prepare_to_stop/same_thread.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_2_extensions_set_object.cc b/tests/ten_runtime/smoke/property/property_2_extensions_set_object.cc new file mode 100644 index 0000000000..70bfd0768d --- /dev/null +++ b/tests/ten_runtime/smoke/property/property_2_extensions_set_object.cc @@ -0,0 +1,186 @@ +// +// Copyright © 2024 Agora +// This file is part of TEN Framework, an open source project. +// Licensed under the Apache License, Version 2.0, with certain conditions. +// Refer to the "LICENSE" file in the root directory for more information. +// +#include +#include + +#include "gtest/gtest.h" +#include "include_internal/ten_runtime/binding/cpp/ten.h" +#include "ten_utils/lib/thread.h" +#include "tests/common/client/cpp/msgpack_tcp.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" + +namespace { + +class test_extension_1 : public ten::extension_t { + public: + explicit test_extension_1(const std::string &name) : ten::extension_t(name) {} + + void on_configure(ten::ten_env_t &ten_env) override { + bool rc = ten::ten_env_internal_accessor_t::init_manifest_from_json(ten_env, + R"({ + "type": "extension", + "name": "property_two_extensions_set_object__test_extension_1", + "version": "0.1.0", + "api": { + "cmd_in": [ + { + "name": "internal_cmd", + "property": { + "tool": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": {} + } + } + } + } + } + } + ] + } + })"); + ASSERT_EQ(rc, true); + + ten_env.on_configure_done(); + } + + void on_cmd(ten::ten_env_t &ten_env, + std::unique_ptr cmd) override { + if (std::string(cmd->get_name()) == "hello_world") { + hello_world_cmd = std::move(cmd); + + auto internal_cmd = ten::cmd_t::create("internal_cmd"); + ten_env.send_cmd(std::move(internal_cmd), + [this](ten::ten_env_t &ten_env, + TEN_UNUSED std::unique_ptr cmd, + ten::error_t *err) { + auto cmd_result = + ten::cmd_result_t::create(TEN_STATUS_CODE_OK); + cmd_result->set_property("detail", "hello world, too"); + ten_env.return_result(std::move(cmd_result), + std::move(hello_world_cmd)); + }); + } + } + + private: + std::unique_ptr hello_world_cmd; +}; + +class test_extension_2 : public ten::extension_t { + public: + explicit test_extension_2(const std::string &name) : ten::extension_t(name) {} + + void on_cmd(ten::ten_env_t &ten_env, + std::unique_ptr cmd) override { + if (std::string(cmd->get_name()) == "internal_cmd") { + auto cmd_result = ten::cmd_result_t::create(TEN_STATUS_CODE_OK); + cmd_result->set_property("detail", "ack for internal_cmd"); + ten_env.return_result(std::move(cmd_result), std::move(cmd)); + } + } +}; + +class test_app : public ten::app_t { + public: + void on_configure(ten::ten_env_t &ten_env) override { + bool rc = ten_env.init_property_from_json( + // clang-format off + R"({ + "_ten": { + "uri": "msgpack://127.0.0.1:8001/", + "log_level": 2 + } + })" + // clang-format on + , + nullptr); + ASSERT_EQ(rc, true); + + ten_env.on_configure_done(); + } +}; + +void *test_app_thread_main(TEN_UNUSED void *args) { + auto *app = new test_app(); + app->run(); + delete app; + + return nullptr; +} + +TEN_CPP_REGISTER_ADDON_AS_EXTENSION( + property_two_extensions_set_object__test_extension_1, test_extension_1); +TEN_CPP_REGISTER_ADDON_AS_EXTENSION( + property_two_extensions_set_object__test_extension_2, test_extension_2); + +} // namespace + +TEST(PropertyTest, TwoExtensionsSetObject) { // NOLINT + // Start app. + auto *app_thread = + ten_thread_create("app thread", test_app_thread_main, nullptr); + + // Create a client and connect to the app. + auto *client = new ten::msgpack_tcp_client_t("msgpack://127.0.0.1:8001/"); + + // Send graph. + auto start_graph_cmd = ten::cmd_start_graph_t::create(); + start_graph_cmd->set_graph_from_json(R"({ + "nodes": [{ + "type": "extension", + "name": "test_extension_1", + "addon": "property_two_extensions_set_object__test_extension_1", + "extension_group": "basic_extension_group", + "app": "msgpack://127.0.0.1:8001/" + },{ + "type": "extension", + "name": "test_extension_2", + "addon": "property_two_extensions_set_object__test_extension_2", + "extension_group": "basic_extension_group", + "app": "msgpack://127.0.0.1:8001/" + }], + "connections": [{ + "app": "msgpack://127.0.0.1:8001/", + "extension_group": "basic_extension_group", + "extension": "test_extension_1", + "cmd": [{ + "name": "internal_cmd", + "dest": [{ + "app": "msgpack://127.0.0.1:8001/", + "extension_group": "basic_extension_group", + "extension": "test_extension_2" + }] + }] + }] + })"); + auto cmd_result = + client->send_cmd_and_recv_result(std::move(start_graph_cmd)); + ten_test::check_status_code(cmd_result, TEN_STATUS_CODE_OK); + + // Send a user-defined 'hello world' command. + auto hello_world_cmd = ten::cmd_t::create("hello_world"); + hello_world_cmd->set_dest("msgpack://127.0.0.1:8001/", nullptr, + "basic_extension_group", "test_extension_1"); + cmd_result = client->send_cmd_and_recv_result(std::move(hello_world_cmd)); + ten_test::check_status_code(cmd_result, TEN_STATUS_CODE_OK); + ten_test::check_detail_with_string(cmd_result, "hello world, too"); + + delete client; + + ten_thread_join(app_thread, -1); +} diff --git a/tests/ten_runtime/smoke/property/property_access_app_store.cc b/tests/ten_runtime/smoke/property/property_access_app_store.cc index 84f43d2bc2..6c62533758 100644 --- a/tests/ten_runtime/smoke/property/property_access_app_store.cc +++ b/tests/ten_runtime/smoke/property/property_access_app_store.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_access_app_store_async.cc b/tests/ten_runtime/smoke/property/property_access_app_store_async.cc index b51f116fd3..89cd4cb866 100644 --- a/tests/ten_runtime/smoke/property/property_access_app_store_async.cc +++ b/tests/ten_runtime/smoke/property/property_access_app_store_async.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_all.cc b/tests/ten_runtime/smoke/property/property_all.cc index ec548fe464..4fde762c18 100644 --- a/tests/ten_runtime/smoke/property/property_all.cc +++ b/tests/ten_runtime/smoke/property/property_all.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define EXTENSION_EXT_PROP_NAME "ext_test_prop" #define EXTENSION_EXT_PROP_TYPE float32 diff --git a/tests/ten_runtime/smoke/property/property_connect_cmd.cc b/tests/ten_runtime/smoke/property/property_connect_cmd.cc index 5f3839f38c..280218adf0 100644 --- a/tests/ten_runtime/smoke/property/property_connect_cmd.cc +++ b/tests/ten_runtime/smoke/property/property_connect_cmd.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define APP_PROP_VAL 62422 diff --git a/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc b/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc index c1fd0eca7b..ca841a96ed 100644 --- a/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc +++ b/tests/ten_runtime/smoke/property/property_connect_cmd_override_extension_success.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_OLD_VAL 62422 diff --git a/tests/ten_runtime/smoke/property/property_extension.cc b/tests/ten_runtime/smoke/property/property_extension.cc index 03a3e25d75..66d17b362c 100644 --- a/tests/ten_runtime/smoke/property/property_extension.cc +++ b/tests/ten_runtime/smoke/property/property_extension.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define APP_PROP_NAME "test_app_prop" #define EXT_PROP_NAME "test_extension_prop" diff --git a/tests/ten_runtime/smoke/property/property_get_float64.cc b/tests/ten_runtime/smoke/property/property_get_float64.cc index f698c269cf..5c70794236 100644 --- a/tests/ten_runtime/smoke/property/property_get_float64.cc +++ b/tests/ten_runtime/smoke/property/property_get_float64.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_VAL 123.45 diff --git a/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc b/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc index 2d082268af..1667837ca3 100644 --- a/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc +++ b/tests/ten_runtime/smoke/property/property_get_float64_type_but_int_value.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_VAL 123 diff --git a/tests/ten_runtime/smoke/property/property_get_int32.cc b/tests/ten_runtime/smoke/property/property_get_int32.cc index 46a1f2aaf2..768401d881 100644 --- a/tests/ten_runtime/smoke/property/property_get_int32.cc +++ b/tests/ten_runtime/smoke/property/property_get_int32.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/macros.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_VAL 12345 diff --git a/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc b/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc index d4e82115de..49bf3a28a4 100644 --- a/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc +++ b/tests/ten_runtime/smoke/property/property_in_graph_use_env_1.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc b/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc index 3632cc2696..d18b3a117c 100644 --- a/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc +++ b/tests/ten_runtime/smoke/property/property_in_graph_use_env_2.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_not_exist.cc b/tests/ten_runtime/smoke/property/property_not_exist.cc index 471664bdd2..d08e55f89c 100644 --- a/tests/ten_runtime/smoke/property/property_not_exist.cc +++ b/tests/ten_runtime/smoke/property/property_not_exist.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "non_prop" diff --git a/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc b/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc index 7e9b821602..d4c90c710e 100644 --- a/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc +++ b/tests/ten_runtime/smoke/property/property_prebuilt_graph.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/property/property_set_float32.cc b/tests/ten_runtime/smoke/property/property_set_float32.cc index 27537f552b..6a24f215b5 100644 --- a/tests/ten_runtime/smoke/property/property_set_float32.cc +++ b/tests/ten_runtime/smoke/property/property_set_float32.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_OLD_VAL 51.82 diff --git a/tests/ten_runtime/smoke/property/property_set_int32.cc b/tests/ten_runtime/smoke/property/property_set_int32.cc index ca8c5a2462..7fe52e0af6 100644 --- a/tests/ten_runtime/smoke/property/property_set_int32.cc +++ b/tests/ten_runtime/smoke/property/property_set_int32.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define PROP_NAME "test_prop" #define PROP_OLD_VAL 4623 diff --git a/tests/ten_runtime/smoke/property/property_set_object.cc b/tests/ten_runtime/smoke/property/property_set_object.cc index 3fc293a892..36159be4c7 100644 --- a/tests/ten_runtime/smoke/property/property_set_object.cc +++ b/tests/ten_runtime/smoke/property/property_set_object.cc @@ -12,7 +12,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { @@ -31,7 +31,7 @@ class test_extension : public ten::extension_t { { "name": "hello_world", "property": { - "tool":{ + "tool": { "type": "object", "properties": { "name": { @@ -62,7 +62,20 @@ class test_extension : public ten::extension_t { void on_cmd(ten::ten_env_t &ten_env, std::unique_ptr cmd) override { if (std::string(cmd->get_name()) == "hello_world") { + // The get/set property actions of the message itself will not immediately + // trigger schema validation. This is because the message might be + // manipulated in other threads, and schema information is tied to the + // extension. For thread safety, schema validation for the message is + // delayed until it interacts with the extension system, specifically + // during `send_xxx` and `return_xxx` operations. bool rc = cmd->set_property_from_json("tool", R"({ + "name": "hammer", + "description": "a tool to hit nails", + "parameters": [ "foo" ] + })"); + TEN_ASSERT(rc, "Should not happen."); + + rc = cmd->set_property_from_json("tool", R"({ "name": "hammer", "description": "a tool to hit nails", "parameters": [] diff --git a/tests/ten_runtime/smoke/extension_test/resp_handler/BUILD.gn b/tests/ten_runtime/smoke/resp_handler/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/resp_handler/BUILD.gn rename to tests/ten_runtime/smoke/resp_handler/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_async_basic.cc b/tests/ten_runtime/smoke/resp_handler/resp_handler_async_basic.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_async_basic.cc rename to tests/ten_runtime/smoke/resp_handler/resp_handler_async_basic.cc index 66aa72dec2..5cab202377 100644 --- a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_async_basic.cc +++ b/tests/ten_runtime/smoke/resp_handler/resp_handler_async_basic.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic.cc b/tests/ten_runtime/smoke/resp_handler/resp_handler_basic.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic.cc rename to tests/ten_runtime/smoke/resp_handler/resp_handler_basic.cc index 53903b600a..bad2eec041 100644 --- a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic.cc +++ b/tests/ten_runtime/smoke/resp_handler/resp_handler_basic.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic_wait_in_on_start.cc b/tests/ten_runtime/smoke/resp_handler/resp_handler_basic_wait_in_on_start.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic_wait_in_on_start.cc rename to tests/ten_runtime/smoke/resp_handler/resp_handler_basic_wait_in_on_start.cc index cd51b93aa3..67d3e1495e 100644 --- a/tests/ten_runtime/smoke/extension_test/resp_handler/resp_handler_basic_wait_in_on_start.cc +++ b/tests/ten_runtime/smoke/resp_handler/resp_handler_basic_wait_in_on_start.cc @@ -12,7 +12,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/result_conversion/result_conversion_1.cc b/tests/ten_runtime/smoke/result_conversion/result_conversion_1.cc index 0060549409..8d6b1a7d17 100644 --- a/tests/ten_runtime/smoke/result_conversion/result_conversion_1.cc +++ b/tests/ten_runtime/smoke/result_conversion/result_conversion_1.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/return/BUILD.gn b/tests/ten_runtime/smoke/return/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/return/BUILD.gn rename to tests/ten_runtime/smoke/return/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/return/return_1.cc b/tests/ten_runtime/smoke/return/return_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/return/return_1.cc rename to tests/ten_runtime/smoke/return/return_1.cc index 4a850c52bf..028206db46 100644 --- a/tests/ten_runtime/smoke/extension_test/return/return_1.cc +++ b/tests/ten_runtime/smoke/return/return_1.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/return/return_2.cc b/tests/ten_runtime/smoke/return/return_2.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/return/return_2.cc rename to tests/ten_runtime/smoke/return/return_2.cc index 526d8540b8..deae80daf0 100644 --- a/tests/ten_runtime/smoke/extension_test/return/return_2.cc +++ b/tests/ten_runtime/smoke/return/return_2.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/return/return_3.cc b/tests/ten_runtime/smoke/return/return_3.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/return/return_3.cc rename to tests/ten_runtime/smoke/return/return_3.cc index 41fc6d9d76..2a641fd3a1 100644 --- a/tests/ten_runtime/smoke/extension_test/return/return_3.cc +++ b/tests/ten_runtime/smoke/return/return_3.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/return/return_4.cc b/tests/ten_runtime/smoke/return/return_4.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/return/return_4.cc rename to tests/ten_runtime/smoke/return/return_4.cc index 5b5dea0f50..2eab80c4a5 100644 --- a/tests/ten_runtime/smoke/extension_test/return/return_4.cc +++ b/tests/ten_runtime/smoke/return/return_4.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/BUILD.gn b/tests/ten_runtime/smoke/same_thread_ext_on_xxx/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/BUILD.gn rename to tests/ten_runtime/smoke/same_thread_ext_on_xxx/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_data.cc b/tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_data.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_data.cc rename to tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_data.cc index 6cf1a0e114..46b985484f 100644 --- a/tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_data.cc +++ b/tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_data.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc b/tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc rename to tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc index af4e001e23..c557be511a 100644 --- a/tests/ten_runtime/smoke/extension_test/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc +++ b/tests/ten_runtime/smoke/same_thread_ext_on_xxx/same_thread_ext_on_xxx_basic.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x84CE87AB478D2DBEU diff --git a/tests/ten_runtime/smoke/schema_test/schema_cmd_property_required.cc b/tests/ten_runtime/smoke/schema_test/schema_cmd_property_required.cc index dea0eb7cae..64e448aba1 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_cmd_property_required.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_cmd_property_required.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_cmd_result.cc b/tests/ten_runtime/smoke/schema_test/schema_cmd_result.cc index b70f11a244..dee6102a39 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_cmd_result.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_cmd_result.cc @@ -12,7 +12,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_cmd_result_error.cc b/tests/ten_runtime/smoke/schema_test/schema_cmd_result_error.cc index 41a1b8b2b8..569d5f8025 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_cmd_result_error.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_cmd_result_error.cc @@ -12,7 +12,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_data_prop.cc b/tests/ten_runtime/smoke/schema_test/schema_data_prop.cc index 2447b64a6d..7518865a9f 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_data_prop.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_data_prop.cc @@ -16,7 +16,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_on_cmd.cc b/tests/ten_runtime/smoke/schema_test/schema_on_cmd.cc index fed9435918..1e6bc3f503 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_on_cmd.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_on_cmd.cc @@ -13,7 +13,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_send_cmd.cc b/tests/ten_runtime/smoke/schema_test/schema_send_cmd.cc index 60964a4565..a4e7e4b393 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_send_cmd.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_send_cmd.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_set_extension_property.cc b/tests/ten_runtime/smoke/schema_test/schema_set_extension_property.cc index 17cb05508a..15f736525e 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_set_extension_property.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_set_extension_property.cc @@ -13,7 +13,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_set_property_buf.cc b/tests/ten_runtime/smoke/schema_test/schema_set_property_buf.cc index 47de9be02c..d1cb65a18d 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_set_property_buf.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_set_property_buf.cc @@ -14,7 +14,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/memory.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/schema_test/schema_set_property_ptr.cc b/tests/ten_runtime/smoke/schema_test/schema_set_property_ptr.cc index 3ecf707e4f..2017a8cf24 100644 --- a/tests/ten_runtime/smoke/schema_test/schema_set_property_ptr.cc +++ b/tests/ten_runtime/smoke/schema_test/schema_set_property_ptr.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic.cc b/tests/ten_runtime/smoke/standalone_test/basic.cc index f3b1a1c9cb..091b69bfae 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic.cc @@ -9,7 +9,7 @@ #include "ten_runtime/binding/cpp/detail/extension.h" #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_c.cc b/tests/ten_runtime/smoke/standalone_test/basic_c.cc index 409ccec5e3..7311509537 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_c.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_c.cc @@ -14,7 +14,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/smart_ptr.h" #include "ten_utils/macro/check.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_data.cc b/tests/ten_runtime/smoke/standalone_test/basic_data.cc index 84549285ee..4d4689b2d0 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_data.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_data.cc @@ -9,7 +9,7 @@ #include "ten_runtime/binding/cpp/detail/extension.h" #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_graph.cc b/tests/ten_runtime/smoke/standalone_test/basic_graph.cc index 96233f9d55..7e249ef9c3 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_graph.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_graph.cc @@ -15,7 +15,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/macro/check.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_graph_cross_app.cc b/tests/ten_runtime/smoke/standalone_test/basic_graph_cross_app.cc index 2139260a0d..c932d39a89 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_graph_cross_app.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_graph_cross_app.cc @@ -13,7 +13,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_1.cc b/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_1.cc index 9afff33f7c..44dd7b191e 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_1.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_1.cc @@ -18,7 +18,7 @@ #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_2.cc b/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_2.cc index 5c02adc695..30700a627b 100644 --- a/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_2.cc +++ b/tests/ten_runtime/smoke/standalone_test/basic_graph_outer_thread_2.cc @@ -17,7 +17,7 @@ #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/macro/check.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/on_cmd.cc b/tests/ten_runtime/smoke/standalone_test/on_cmd.cc index cd885972e1..e02352da83 100644 --- a/tests/ten_runtime/smoke/standalone_test/on_cmd.cc +++ b/tests/ten_runtime/smoke/standalone_test/on_cmd.cc @@ -9,7 +9,7 @@ #include "ten_runtime/binding/cpp/detail/extension.h" #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/on_cmd_c.cc b/tests/ten_runtime/smoke/standalone_test/on_cmd_c.cc index 82a7b7befc..f34d79f952 100644 --- a/tests/ten_runtime/smoke/standalone_test/on_cmd_c.cc +++ b/tests/ten_runtime/smoke/standalone_test/on_cmd_c.cc @@ -14,7 +14,7 @@ #include "ten_runtime/test/env_tester.h" #include "ten_utils/lang/cpp/lib/value.h" #include "ten_utils/lib/smart_ptr.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/standalone_test/set_property_for_single_ext.cc b/tests/ten_runtime/smoke/standalone_test/set_property_for_single_ext.cc index e959097ae3..9f19f5b662 100644 --- a/tests/ten_runtime/smoke/standalone_test/set_property_for_single_ext.cc +++ b/tests/ten_runtime/smoke/standalone_test/set_property_for_single_ext.cc @@ -10,7 +10,7 @@ #include "ten_runtime/binding/cpp/detail/extension.h" #include "ten_runtime/common/status_code.h" #include "ten_utils/lang/cpp/lib/value.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/BUILD.gn b/tests/ten_runtime/smoke/start_graph/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/start_graph/BUILD.gn rename to tests/ten_runtime/smoke/start_graph/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/start_graph_and_communicate.cc b/tests/ten_runtime/smoke/start_graph/start_graph_and_communicate.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/start_graph/start_graph_and_communicate.cc rename to tests/ten_runtime/smoke/start_graph/start_graph_and_communicate.cc index e1eca340df..ed86a924ff 100644 --- a/tests/ten_runtime/smoke/extension_test/start_graph/start_graph_and_communicate.cc +++ b/tests/ten_runtime/smoke/start_graph/start_graph_and_communicate.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/start_graph_from_extension.cc b/tests/ten_runtime/smoke/start_graph/start_graph_from_extension.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/start_graph/start_graph_from_extension.cc rename to tests/ten_runtime/smoke/start_graph/start_graph_from_extension.cc index 9f62c98766..823e754181 100644 --- a/tests/ten_runtime/smoke/extension_test/start_graph/start_graph_from_extension.cc +++ b/tests/ten_runtime/smoke/start_graph/start_graph_from_extension.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_cross_app.cc b/tests/ten_runtime/smoke/start_graph/start_predefined_graph_cross_app.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_cross_app.cc rename to tests/ten_runtime/smoke/start_graph/start_predefined_graph_cross_app.cc index c1fd721128..0d21ce2a18 100644 --- a/tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_cross_app.cc +++ b/tests/ten_runtime/smoke/start_graph/start_predefined_graph_cross_app.cc @@ -8,7 +8,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_runtime/binding/cpp/detail/msg/cmd/start_graph.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_from_extension.cc b/tests/ten_runtime/smoke/start_graph/start_predefined_graph_from_extension.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_from_extension.cc rename to tests/ten_runtime/smoke/start_graph/start_predefined_graph_from_extension.cc index 9ba5569c98..153207f07b 100644 --- a/tests/ten_runtime/smoke/extension_test/start_graph/start_predefined_graph_from_extension.cc +++ b/tests/ten_runtime/smoke/start_graph/start_predefined_graph_from_extension.cc @@ -7,7 +7,7 @@ #include "gtest/gtest.h" #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/start_graph/start_two_predefined_graphs.cc b/tests/ten_runtime/smoke/start_graph/start_two_predefined_graphs.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/start_graph/start_two_predefined_graphs.cc rename to tests/ten_runtime/smoke/start_graph/start_two_predefined_graphs.cc index 03186cd320..7c93432573 100644 --- a/tests/ten_runtime/smoke/extension_test/start_graph/start_two_predefined_graphs.cc +++ b/tests/ten_runtime/smoke/start_graph/start_two_predefined_graphs.cc @@ -10,7 +10,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_runtime/binding/cpp/detail/msg/cmd/start_graph.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/suspend_resume/BUILD.gn b/tests/ten_runtime/smoke/suspend_resume/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/suspend_resume/BUILD.gn rename to tests/ten_runtime/smoke/suspend_resume/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_1.cc b/tests/ten_runtime/smoke/suspend_resume/suspend_resume_1.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_1.cc rename to tests/ten_runtime/smoke/suspend_resume/suspend_resume_1.cc index e10bad5a9c..16445fad1c 100644 --- a/tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_1.cc +++ b/tests/ten_runtime/smoke/suspend_resume/suspend_resume_1.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define SENT_DATA_CNT 100 diff --git a/tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_2.cc b/tests/ten_runtime/smoke/suspend_resume/suspend_resume_2.cc similarity index 99% rename from tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_2.cc rename to tests/ten_runtime/smoke/suspend_resume/suspend_resume_2.cc index 86b3f15c75..075e8424c4 100644 --- a/tests/ten_runtime/smoke/extension_test/suspend_resume/suspend_resume_2.cc +++ b/tests/ten_runtime/smoke/suspend_resume/suspend_resume_2.cc @@ -18,7 +18,7 @@ #include "ten_utils/lib/time.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define SENT_DATA_CNT 100 diff --git a/tests/ten_runtime/smoke/ten_env_call_timing/on_xxx_done.cc b/tests/ten_runtime/smoke/ten_env_call_timing/on_xxx_done.cc index 7e27f83cd2..b021323f30 100644 --- a/tests/ten_runtime/smoke/ten_env_call_timing/on_xxx_done.cc +++ b/tests/ten_runtime/smoke/ten_env_call_timing/on_xxx_done.cc @@ -12,7 +12,7 @@ #include "ten_runtime/binding/cpp/detail/ten_env.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/extension_test/ten_proxy/BUILD.gn b/tests/ten_runtime/smoke/ten_proxy/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/ten_proxy/BUILD.gn rename to tests/ten_runtime/smoke/ten_proxy/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/ten_proxy/ten_proxy_1.cc b/tests/ten_runtime/smoke/ten_proxy/ten_proxy_1.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/ten_proxy/ten_proxy_1.cc rename to tests/ten_runtime/smoke/ten_proxy/ten_proxy_1.cc index 61035e9596..607497decb 100644 --- a/tests/ten_runtime/smoke/extension_test/ten_proxy/ten_proxy_1.cc +++ b/tests/ten_runtime/smoke/ten_proxy/ten_proxy_1.cc @@ -16,7 +16,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/lib/time.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TEST_DATA_VALUE 0x34CE87AB478D2DBE diff --git a/tests/ten_runtime/smoke/extension_test/timer/BUILD.gn b/tests/ten_runtime/smoke/timer/BUILD.gn similarity index 100% rename from tests/ten_runtime/smoke/extension_test/timer/BUILD.gn rename to tests/ten_runtime/smoke/timer/BUILD.gn diff --git a/tests/ten_runtime/smoke/extension_test/timer/timer_one_shot.cc b/tests/ten_runtime/smoke/timer/timer_one_shot.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/timer/timer_one_shot.cc rename to tests/ten_runtime/smoke/timer/timer_one_shot.cc index 81ef654503..8caba3c45f 100644 --- a/tests/ten_runtime/smoke/extension_test/timer/timer_one_shot.cc +++ b/tests/ten_runtime/smoke/timer/timer_one_shot.cc @@ -12,7 +12,7 @@ #include "ten_runtime/msg/msg.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 1 diff --git a/tests/ten_runtime/smoke/extension_test/timer/timer_ten_shot.cc b/tests/ten_runtime/smoke/timer/timer_ten_shot.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/timer/timer_ten_shot.cc rename to tests/ten_runtime/smoke/timer/timer_ten_shot.cc index dd3a4d2d50..21274373a6 100644 --- a/tests/ten_runtime/smoke/extension_test/timer/timer_ten_shot.cc +++ b/tests/ten_runtime/smoke/timer/timer_ten_shot.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 10 diff --git a/tests/ten_runtime/smoke/extension_test/timer/timer_two_shot.cc b/tests/ten_runtime/smoke/timer/timer_two_shot.cc similarity index 98% rename from tests/ten_runtime/smoke/extension_test/timer/timer_two_shot.cc rename to tests/ten_runtime/smoke/timer/timer_two_shot.cc index 8dae7acc21..8cfa623e6e 100644 --- a/tests/ten_runtime/smoke/extension_test/timer/timer_two_shot.cc +++ b/tests/ten_runtime/smoke/timer/timer_two_shot.cc @@ -11,7 +11,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define TIMER_TIMES 2 diff --git a/tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h b/tests/ten_runtime/smoke/util/binding/cpp/check.h similarity index 100% rename from tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h rename to tests/ten_runtime/smoke/util/binding/cpp/check.h diff --git a/tests/ten_runtime/smoke/video_frame_test/basic.cc b/tests/ten_runtime/smoke/video_frame_test/basic.cc index e2b3828e95..5896cf6467 100644 --- a/tests/ten_runtime/smoke/video_frame_test/basic.cc +++ b/tests/ten_runtime/smoke/video_frame_test/basic.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/video_frame_test/create_from_json.cc b/tests/ten_runtime/smoke/video_frame_test/create_from_json.cc index 1e07cde43c..1cff82fd28 100644 --- a/tests/ten_runtime/smoke/video_frame_test/create_from_json.cc +++ b/tests/ten_runtime/smoke/video_frame_test/create_from_json.cc @@ -14,7 +14,7 @@ #include "ten_runtime/msg/video_frame/video_frame.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/video_frame_test/from_json.cc b/tests/ten_runtime/smoke/video_frame_test/from_json.cc index 49b3b41b95..cdc9fbf38f 100644 --- a/tests/ten_runtime/smoke/video_frame_test/from_json.cc +++ b/tests/ten_runtime/smoke/video_frame_test/from_json.cc @@ -12,7 +12,7 @@ #include "include_internal/ten_runtime/binding/cpp/ten.h" #include "ten_utils/lib/thread.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" namespace { diff --git a/tests/ten_runtime/smoke/video_frame_test/multi_dest_video_frame.cc b/tests/ten_runtime/smoke/video_frame_test/multi_dest_video_frame.cc index 3503cc1917..d6a0420313 100644 --- a/tests/ten_runtime/smoke/video_frame_test/multi_dest_video_frame.cc +++ b/tests/ten_runtime/smoke/video_frame_test/multi_dest_video_frame.cc @@ -13,7 +13,7 @@ #include "ten_utils/lib/thread.h" #include "ten_utils/macro/check.h" #include "tests/common/client/cpp/msgpack_tcp.h" -#include "tests/ten_runtime/smoke/extension_test/util/binding/cpp/check.h" +#include "tests/ten_runtime/smoke/util/binding/cpp/check.h" #define WIDTH 640 #define HEIGHT 480