Changeset View
Changeset View
Standalone View
Standalone View
tests/gtests/blenloader/blendfile_loading_base_test.cc
| Show All 18 Lines | |||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| extern "C" { | extern "C" { | ||||
| #include "BKE_appdir.h" | #include "BKE_appdir.h" | ||||
| #include "BKE_blender.h" | #include "BKE_blender.h" | ||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "BKE_idtype.h" | |||||
| #include "BKE_image.h" | #include "BKE_image.h" | ||||
| #include "BKE_main.h" | #include "BKE_main.h" | ||||
| #include "BKE_modifier.h" | #include "BKE_modifier.h" | ||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BLI_threads.h" | #include "BLI_threads.h" | ||||
| #include "BLI_path_util.h" | #include "BLI_path_util.h" | ||||
| Show All 25 Lines | void BlendfileLoadingBaseTest::SetUpTestCase() | ||||
| testing::Test::SetUpTestCase(); | testing::Test::SetUpTestCase(); | ||||
| /* Minimal code to make loading a blendfile and constructing a depsgraph not crash, copied from | /* Minimal code to make loading a blendfile and constructing a depsgraph not crash, copied from | ||||
| * main() in creator.c. */ | * main() in creator.c. */ | ||||
| BLI_threadapi_init(); | BLI_threadapi_init(); | ||||
| DNA_sdna_current_init(); | DNA_sdna_current_init(); | ||||
| BKE_blender_globals_init(); | BKE_blender_globals_init(); | ||||
| BKE_idtype_init(); | |||||
| IMB_init(); | IMB_init(); | ||||
| BKE_images_init(); | BKE_images_init(); | ||||
| BKE_modifier_init(); | BKE_modifier_init(); | ||||
| DEG_register_node_types(); | DEG_register_node_types(); | ||||
| RNA_init(); | RNA_init(); | ||||
| init_nodesystem(); | init_nodesystem(); | ||||
| G.background = true; | G.background = true; | ||||
| ▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines | |||||