|
18 | 18 |
|
19 | 19 | #include "proxy_wasm_intrinsics.h"
|
20 | 20 |
|
21 |
| -class TestRootContext1 : public RootContext { |
| 21 | +class CanaryCheckRootContext1 : public RootContext { |
22 | 22 | 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) {} |
24 | 25 | bool onConfigure(size_t s) override {
|
25 | 26 | LOG_TRACE("onConfigure: root_id_1");
|
26 | 27 | return s != 0;
|
27 | 28 | }
|
28 | 29 | };
|
29 | 30 |
|
30 |
| -class TestContext : public Context { |
| 31 | +class CanaryCheckContext : public Context { |
31 | 32 | public:
|
32 |
| - explicit TestContext(uint32_t id, RootContext *root) : Context(id, root) {} |
| 33 | + explicit CanaryCheckContext(uint32_t id, RootContext *root) : Context(id, root) {} |
33 | 34 | };
|
34 | 35 |
|
35 |
| -class TestRootContext2 : public RootContext { |
| 36 | +class CanaryCheckRootContext2 : public RootContext { |
36 | 37 | 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) {} |
38 | 40 | bool onConfigure(size_t s) override {
|
39 | 41 | LOG_TRACE("onConfigure: root_id_2");
|
40 | 42 | return s != 0;
|
41 | 43 | }
|
42 | 44 | };
|
43 | 45 |
|
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"); |
46 | 49 |
|
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