![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/develop.h"#include "develop/dev_history.h"#include "develop/pixelpipe_hb.h"#include "system/atomic.h"#include "system/dtpthread.h"#include <glib.h>#include <stdarg.h>#include <stddef.h>#include <stdlib.h>#include <setjmp.h>#include <stdint.h>#include <cmocka.h>
Include dependency graph for test_history_snapshot.c:Go to the source code of this file.
Data Structures | |
| struct | _fixture_t |
Typedefs | |
| typedef struct _fixture_t | _fixture_t |
Functions | |
| static int | _setup (void **state) |
| static int | _teardown (void **state) |
| static int | _refs (const dt_dev_history_item_t *item) |
| static dt_dev_history_item_t * | _append (dt_develop_t *dev, const uint64_t hash) |
| static void | _a_snapshot_references_every_item_and_releases_them (void **state) |
| static void | _history_end_is_clamped_to_the_list_at_snapshot_time (void **state) |
| static void | _cow_touch_leaves_an_exclusively_owned_item_alone (void **state) |
| static void | _cow_touch_clones_an_item_a_snapshot_is_holding (void **state) |
| static void | _cow_touch_repoints_the_pipe_marker_and_balances_every_reference (void **state) |
| static void | _cow_touch_ignores_a_marker_naming_a_different_item (void **state) |
| int | main (void) |
| typedef struct _fixture_t _fixture_t |
Definition at line 94 of file test_history_snapshot.c.
References _append(), _refs(), dt_dev_history_snapshot_release(), dt_dev_history_snapshot_take(), dt_dev_set_history_hash(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), f, dt_dev_history_snapshot_t::history_end, dt_dev_history_snapshot_t::history_hash, dt_dev_history_snapshot_t::items, and state.
Referenced by main().
|
static |
Definition at line 84 of file test_history_snapshot.c.
References dt_dev_history_item_create(), dt_dev_history_item_t::hash, dt_develop_t::history, and dt_dev_history_item_t::num.
Referenced by _a_snapshot_references_every_item_and_releases_them(), _cow_touch_clones_an_item_a_snapshot_is_holding(), _cow_touch_ignores_a_marker_naming_a_different_item(), _cow_touch_leaves_an_exclusively_owned_item_alone(), _cow_touch_repoints_the_pipe_marker_and_balances_every_reference(), and _history_end_is_clamped_to_the_list_at_snapshot_time().
Definition at line 158 of file test_history_snapshot.c.
References _append(), _refs(), dt_iop_module_t::dev, dt_dev_history_cow_touch(), dt_dev_history_snapshot_release(), dt_dev_history_snapshot_take(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), dt_dev_history_item_t::enabled, f, FALSE, dt_dev_history_item_t::hash, dt_develop_t::history_end, dt_dev_history_snapshot_t::items, state, and TRUE.
Referenced by main().
Definition at line 229 of file test_history_snapshot.c.
References _append(), _refs(), dt_atomic_get_ptr(), dt_atomic_set_ptr(), dt_dev_history_cow_touch(), dt_dev_history_item_ref(), dt_dev_history_snapshot_release(), dt_dev_history_snapshot_take(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), f, and state.
Referenced by main().
Definition at line 144 of file test_history_snapshot.c.
References _append(), _refs(), dt_dev_history_cow_touch(), f, and state.
Referenced by main().
|
static |
Definition at line 194 of file test_history_snapshot.c.
References _append(), _refs(), dt_atomic_exch_ptr(), dt_atomic_get_ptr(), dt_atomic_set_ptr(), dt_dev_free_history_item(), dt_dev_history_cow_touch(), dt_dev_history_item_ref(), dt_dev_history_snapshot_release(), dt_dev_history_snapshot_take(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), f, and state.
Referenced by main().
Definition at line 128 of file test_history_snapshot.c.
References _append(), dt_dev_history_snapshot_release(), dt_dev_history_snapshot_take(), dt_pthread_rwlock_rdlock(), dt_pthread_rwlock_unlock(), f, dt_dev_history_snapshot_t::history_end, and state.
Referenced by main().
|
static |
Definition at line 79 of file test_history_snapshot.c.
References dt_atomic_get_int().
Referenced by _a_snapshot_references_every_item_and_releases_them(), _cow_touch_clones_an_item_a_snapshot_is_holding(), _cow_touch_ignores_a_marker_naming_a_different_item(), _cow_touch_leaves_an_exclusively_owned_item_alone(), and _cow_touch_repoints_the_pipe_marker_and_balances_every_reference().
|
static |
Definition at line 55 of file test_history_snapshot.c.
References dt_pthread_rwlock_init(), f, and state.
Referenced by main().
|
static |
Definition at line 66 of file test_history_snapshot.c.
References dt_atomic_exch_ptr(), dt_dev_free_history_item(), dt_pthread_rwlock_destroy(), f, and state.
Referenced by main().
| int main | ( | void | ) |
Definition at line 256 of file test_history_snapshot.c.
References _a_snapshot_references_every_item_and_releases_them(), _cow_touch_clones_an_item_a_snapshot_is_holding(), _cow_touch_ignores_a_marker_naming_a_different_item(), _cow_touch_leaves_an_exclusively_owned_item_alone(), _cow_touch_repoints_the_pipe_marker_and_balances_every_reference(), _history_end_is_clamped_to_the_list_at_snapshot_time(), _setup(), and _teardown().