22#include "testing/testing.h"
28 FreeMe(
int* freed) : freed(freed) {}
29 ~FreeMe() { (*freed)++; }
33TEST(ScopedPtr, NullDoesNothing) {
38TEST(ScopedPtr, FreesWhenOutOfScope) {
47TEST(ScopedPtr, Operators) {
54TEST(ScopedPtr, Reset) {
58 scoped.reset(
new FreeMe(&frees));
62TEST(ScopedPtr, ReleaseAndGet) {
64 FreeMe* allocated =
new FreeMe(&frees);
65 FreeMe* released = NULL;
70 released = scoped.release();
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)
TEST(PolynomialCameraIntrinsics2, ApplyOnFocalCenter)