summaryrefslogtreecommitdiff
path: root/shaping/test
diff options
context:
space:
mode:
Diffstat (limited to 'shaping/test')
-rw-r--r--shaping/test/gtest_shaper_maat.cpp4
-rw-r--r--shaping/test/stub.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/shaping/test/gtest_shaper_maat.cpp b/shaping/test/gtest_shaper_maat.cpp
index 07699df..972d550 100644
--- a/shaping/test/gtest_shaper_maat.cpp
+++ b/shaping/test/gtest_shaper_maat.cpp
@@ -19,7 +19,7 @@ TEST(shaping_rule, parse)
struct shaping_rule *s_rule = NULL;
struct shaping_rule *s_rule_dup = NULL;
- shaper_rule_ex_new(0, NULL, data, (void**)&s_rule, 0, NULL);
+ shaper_rule_ex_new("TRAFFIC_SHAPING_COMPILE", 0, NULL, data, (void**)&s_rule, 0, NULL);
EXPECT_EQ(s_rule->id, 182);
EXPECT_EQ(s_rule->primary_pf_id, 1);
EXPECT_EQ(s_rule->borrow_pf_num, 2);
@@ -48,7 +48,7 @@ TEST(shaping_profile, parse)
struct shaping_profile *s_pf = NULL;
struct shaping_profile *s_pf_dup = NULL;
- shaper_profile_ex_new(0, NULL, data, (void**)&s_pf, 0, NULL);
+ shaper_profile_ex_new("TRAFFIC_SHAPING_PROFILE", 0, NULL, data, (void**)&s_pf, 0, NULL);
EXPECT_EQ(s_pf->id, 1);
EXPECT_EQ(s_pf->in_limit_bandwidth, 1024);
EXPECT_EQ(s_pf->out_limit_bandwidth, 2048);
diff --git a/shaping/test/stub.cpp b/shaping/test/stub.cpp
index b49bafd..ec7ce6b 100644
--- a/shaping/test/stub.cpp
+++ b/shaping/test/stub.cpp
@@ -383,7 +383,7 @@ int maat_get_table_id(struct maat *instance, const char *table_name)
}
}
-int maat_plugin_table_ex_schema_register(struct maat *instance, int table_id,
+int maat_plugin_table_ex_schema_register(struct maat *instance, const char *table_name,
maat_ex_new_func_t *new_func,
maat_ex_free_func_t *free_func,
maat_ex_dup_func_t *dup_func,