Skip to content

Commit 8f6750a

Browse files
committed
C++ tests: update third-party objectbox C lib to use 0.21
1 parent 2b9ef44 commit 8f6750a

11 files changed

Lines changed: 24 additions & 3 deletions

File tree

test/integration/optional/cpp/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include <type_traits>
46

57
#include "c-ptr.obx.h"

test/integration/property-clear/cpp/step-1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/property-clear/cpp/step-2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/removes/cpp/step-1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/removes/cpp/step-2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/renames/cpp/step-1.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/renames/cpp/step-2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "schema.obx.hpp"

test/integration/shared/store-init.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ obx::Store testStore(bool removeBeforeOpening, const char* dbDir = nullptr) {
99
if (!dbDir) throw std::invalid_argument("dbDir environment variable not given");
1010
}
1111
if (removeBeforeOpening) obx_remove_db_files(dbDir);
12-
obx::Store::Options options(create_obx_model());
13-
options.directory(dbDir);
12+
obx::Options options;
13+
options
14+
.model(create_obx_model())
15+
.directory(dbDir)
16+
;
1417
return obx::Store(options);
1518
}

test/integration/sync/cpp/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "catch2/catch.hpp"
46
#include "objectbox.hpp"
57
#include "objectbox-model.h"

test/integration/typeful/cpp/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#define CATCH_CONFIG_MAIN
22

3+
#define OBX_CPP_FILE
4+
35
#include "annotated.obx.hpp"
46
#include "catch2/catch.hpp"
57
#include "objectbox.hpp"

0 commit comments

Comments
 (0)