3 #include "testing/testing.h"
25 # define ABSOLUTE_ROOT "C:" SEP_STR
27 # define ABSOLUTE_ROOT SEP_STR
30 #define RELATIVE_ROOT "//"
31 #define BASE_DIR ABSOLUTE_ROOT "blendfiles" SEP_STR
32 #define REBASE_DIR BASE_DIR "rebase" SEP_STR
34 #define BLENDFILE_NAME "bpath.blend"
35 #define BLENDFILE_PATH BASE_DIR BLENDFILE_NAME
37 #define TEXT_PATH_ITEM "texts" SEP_STR "text.txt"
38 #define TEXT_PATH_ABSOLUTE ABSOLUTE_ROOT TEXT_PATH_ITEM
39 #define TEXT_PATH_ABSOLUTE_MADE_RELATIVE RELATIVE_ROOT ".." SEP_STR TEXT_PATH_ITEM
40 #define TEXT_PATH_RELATIVE RELATIVE_ROOT TEXT_PATH_ITEM
41 #define TEXT_PATH_RELATIVE_MADE_ABSOLUTE BASE_DIR TEXT_PATH_ITEM
43 #define MOVIECLIP_PATH_ITEM "movieclips" SEP_STR "movieclip.avi"
44 #define MOVIECLIP_PATH_ABSOLUTE ABSOLUTE_ROOT MOVIECLIP_PATH_ITEM
45 #define MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE RELATIVE_ROOT ".." SEP_STR MOVIECLIP_PATH_ITEM
46 #define MOVIECLIP_PATH_RELATIVE RELATIVE_ROOT MOVIECLIP_PATH_ITEM
47 #define MOVIECLIP_PATH_RELATIVE_MADE_ABSOLUTE BASE_DIR MOVIECLIP_PATH_ITEM
81 Text *text =
reinterpret_cast<Text *
>(bmain->texts.first);
96 Text *text =
reinterpret_cast<Text *
>(bmain->texts.first);
110 Text *text =
reinterpret_cast<Text *
>(bmain->texts.first);
126 Text *text =
reinterpret_cast<Text *
>(bmain->texts.first);
142 Text *text =
reinterpret_cast<Text *
>(bmain->texts.first);
void BKE_bpath_relative_rebase(struct Main *bmain, const char *basedir_src, const char *basedir_dst, struct ReportList *reports)
void BKE_bpath_relative_convert(struct Main *bmain, const char *basedir, struct ReportList *reports)
void * BKE_bpath_list_backup(struct Main *bmain, eBPathForeachFlag flag)
void BKE_bpath_list_restore(struct Main *bmain, eBPathForeachFlag flag, void *path_list_handle)
void BKE_bpath_list_free(void *path_list_handle)
void BKE_bpath_absolute_convert(struct Main *bmain, const char *basedir, struct ReportList *reports)
void BKE_idtype_init(void)
void * BKE_id_new(struct Main *bmain, short type, const char *name)
struct Main * BKE_main_new(void)
void BKE_main_free(struct Main *mainvar)
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
int BLI_listbase_count(const struct ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define STRNCPY(dst, src)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
These structs are the foundation for all linked lists in the library system.
Read Guarded memory(de)allocation.
#define TEXT_PATH_RELATIVE_MADE_ABSOLUTE
#define MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE
#define MOVIECLIP_PATH_RELATIVE
#define TEXT_PATH_RELATIVE
#define TEXT_PATH_ABSOLUTE
#define MOVIECLIP_PATH_ITEM
#define MOVIECLIP_PATH_ABSOLUTE
static void SetUpTestSuite()
static void TearDownTestSuite()
void(* MEM_freeN)(void *vmemh)
TEST_F(BKE_armature_find_selected_bones_test, some_bones_selected)