Lines Matching refs:config
18 #include "config.h"
31 void CreateConfig(Config &config, const std::string &prefix = "");
98 void SerializableTest::CreateConfig(Config &config, const std::string &prefix)
100 config.processLabel = prefix + "processLabel";
101 config.version = prefix + "version";
102 config.features = { prefix + "feature1", prefix + "feature2" };
103 config.plugins = { prefix + "plugin1", prefix + "plugin2" };
109 config.components = { component1, component2 };
122 Config config;
124 auto ret = config.Unmarshall(jsonStr);
130 ret = config.Unmarshall(jsonStr);
350 Config config;
351 CreateConfig(config);
354 config.Marshal(node);
396 Config config;
397 CreateConfig(config);
403 config.Marshal(node);
414 config.Unmarshal(node);
415 ASSERT_EQ(IsSame(config, newConfig), true);
450 Config config;
451 auto ret = config.Unmarshall(jsonStr);
453 ASSERT_EQ(config.processLabel, "processLabel");
454 ASSERT_EQ(config.version, "version");
455 ASSERT_EQ(config.features[0], "features1");
456 ASSERT_EQ(config.features[1], "features2");
457 ASSERT_EQ(config.plugins[0], "plugins1");
458 ASSERT_EQ(config.plugins[1], "plugins2");
459 ASSERT_EQ(config.components[0].description, "description1");
460 ASSERT_EQ(config.components[0].lib, "lib1");
461 ASSERT_EQ(config.components[0].constructor, "constructor1");
462 ASSERT_EQ(config.components[0].destructor, "destructor1");
463 ASSERT_EQ(config.components[0].params, "params1");
464 ASSERT_EQ(config.components[1].description, "description2");
465 ASSERT_EQ(config.components[1].lib, "lib2");
466 ASSERT_EQ(config.components[1].constructor, "constructor2");
467 ASSERT_EQ(config.components[1].destructor, "destructor2");
468 ASSERT_EQ(config.components[1].params, "params2");