Skip to content

Commit b516365

Browse files
committed
Rename MALLOC_PROVIDER_OPS to BA_GLOBAL_PROVIDER_OPS
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent e714301 commit b516365

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/common/provider.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct provider_ba_global : public provider_base_t {
123123
const char *get_name() noexcept { return "umf_ba_global"; }
124124
};
125125

126-
umf_memory_provider_ops_t MALLOC_PROVIDER_OPS =
126+
umf_memory_provider_ops_t BA_GLOBAL_PROVIDER_OPS =
127127
umf::providerMakeCOps<provider_ba_global, void>();
128128

129129
struct provider_mock_out_of_mem : public provider_base_t {

test/memoryPoolAPI.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ TEST_F(test, BasicPoolByPtrTest) {
156156

157157
umf_memory_provider_handle_t provider;
158158
umf_result_t ret =
159-
umfMemoryProviderCreate(&MALLOC_PROVIDER_OPS, NULL, &provider);
159+
umfMemoryProviderCreate(&BA_GLOBAL_PROVIDER_OPS, NULL, &provider);
160160
ASSERT_EQ(ret, UMF_RESULT_SUCCESS);
161161
auto pool =
162162
wrapPoolUnique(createPoolChecked(umfProxyPoolOps(), provider, nullptr,
@@ -184,13 +184,13 @@ INSTANTIATE_TEST_SUITE_P(
184184
&UMF_NULL_PROVIDER_OPS, nullptr,
185185
nullptr},
186186
poolCreateExtParams{umfProxyPoolOps(), nullptr,
187-
&MALLOC_PROVIDER_OPS, nullptr,
187+
&BA_GLOBAL_PROVIDER_OPS, nullptr,
188188
nullptr}));
189189

190190
INSTANTIATE_TEST_SUITE_P(mallocMultiPoolTest, umfMultiPoolTest,
191191
::testing::Values(poolCreateExtParams{
192-
umfProxyPoolOps(), nullptr, &MALLOC_PROVIDER_OPS,
193-
nullptr, nullptr}));
192+
umfProxyPoolOps(), nullptr,
193+
&BA_GLOBAL_PROVIDER_OPS, nullptr, nullptr}));
194194

195195
INSTANTIATE_TEST_SUITE_P(umfPoolWithCreateFlagsTest, umfPoolWithCreateFlagsTest,
196196
::testing::Values(0,

test/pools/disjoint_pool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ auto defaultPoolConfig = poolConfig();
148148
INSTANTIATE_TEST_SUITE_P(disjointPoolTests, umfPoolTest,
149149
::testing::Values(poolCreateExtParams{
150150
umfDisjointPoolOps(), (void *)&defaultPoolConfig,
151-
&MALLOC_PROVIDER_OPS, nullptr, nullptr}));
151+
&BA_GLOBAL_PROVIDER_OPS, nullptr, nullptr}));
152152

153153
INSTANTIATE_TEST_SUITE_P(
154154
disjointPoolTests, umfMemTest,
@@ -161,4 +161,4 @@ INSTANTIATE_TEST_SUITE_P(
161161
INSTANTIATE_TEST_SUITE_P(disjointMultiPoolTests, umfMultiPoolTest,
162162
::testing::Values(poolCreateExtParams{
163163
umfDisjointPoolOps(), (void *)&defaultPoolConfig,
164-
&MALLOC_PROVIDER_OPS, nullptr, nullptr}));
164+
&BA_GLOBAL_PROVIDER_OPS, nullptr, nullptr}));

0 commit comments

Comments
 (0)