Skip to content

Commit 25f6f58

Browse files
committed
Change the prefix "Test" to CanaryCheck
Signed-off-by: Ingwon Song <[email protected]>
1 parent d10641e commit 25f6f58

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

test/test_data/configure_check.cc

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,35 @@
1818

1919
#include "proxy_wasm_intrinsics.h"
2020

21-
class TestRootContext1 : public RootContext {
21+
class CanaryCheckRootContext1 : public RootContext {
2222
public:
23-
explicit TestRootContext1(uint32_t id, std::string_view root_id) : RootContext(id, root_id) {}
23+
explicit CanaryCheckRootContext1(uint32_t id, std::string_view root_id)
24+
: RootContext(id, root_id) {}
2425
bool onConfigure(size_t s) override {
2526
LOG_TRACE("onConfigure: root_id_1");
2627
return s != 0;
2728
}
2829
};
2930

30-
class TestContext : public Context {
31+
class CanaryCheckContext : public Context {
3132
public:
32-
explicit TestContext(uint32_t id, RootContext *root) : Context(id, root) {}
33+
explicit CanaryCheckContext(uint32_t id, RootContext *root) : Context(id, root) {}
3334
};
3435

35-
class TestRootContext2 : public RootContext {
36+
class CanaryCheckRootContext2 : public RootContext {
3637
public:
37-
explicit TestRootContext2(uint32_t id, std::string_view root_id) : RootContext(id, root_id) {}
38+
explicit CanaryCheckRootContext2(uint32_t id, std::string_view root_id)
39+
: RootContext(id, root_id) {}
3840
bool onConfigure(size_t s) override {
3941
LOG_TRACE("onConfigure: root_id_2");
4042
return s != 0;
4143
}
4244
};
4345

44-
static RegisterContextFactory register_TestContext1(CONTEXT_FACTORY(TestContext),
45-
ROOT_FACTORY(TestRootContext1), "root_id_1");
46+
static RegisterContextFactory register_CanaryCheckContext1(CONTEXT_FACTORY(CanaryCheckContext),
47+
ROOT_FACTORY(CanaryCheckRootContext1),
48+
"root_id_1");
4649

47-
static RegisterContextFactory register_TestContext2(CONTEXT_FACTORY(TestContext),
48-
ROOT_FACTORY(TestRootContext2), "root_id_2");
50+
static RegisterContextFactory register_CanaryCheckContext2(CONTEXT_FACTORY(CanaryCheckContext),
51+
ROOT_FACTORY(CanaryCheckRootContext2),
52+
"root_id_2");

0 commit comments

Comments
 (0)