Lines Matching refs:config

72   ConfigFile config;  in TEST()  local
73 config.parseFromString(SIMPLE_CONFIG); in TEST()
74 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST()
75 EXPECT_FALSE(config.hasKey("COMMENTED_OUT_VALUE")); in TEST()
76 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
77 EXPECT_TRUE(config.hasKey("STRING_VALUE")); in TEST()
78 EXPECT_TRUE(config.hasKey("BYTES_VALUE")); in TEST()
82 ConfigFile config; in TEST() local
83 config.parseFromString(SIMPLE_CONFIG); in TEST()
84 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
85 EXPECT_EQ(config.getString("STRING_VALUE"), "Hello World!"); in TEST()
86 auto bytes = config.getBytes("BYTES_VALUE"); in TEST()
109 ConfigFile config; in TEST() local
110 EXPECT_FALSE(config.hasKey("NUM_VALUE")); in TEST()
111 config.parseFromString(SIMPLE_CONFIG); in TEST()
112 EXPECT_TRUE(config.hasKey("NUM_VALUE")); in TEST()
113 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST()
114 config.clear(); in TEST()
115 EXPECT_FALSE(config.hasKey("NUM_VALUE")); in TEST()
116 EXPECT_DEATH(config.getUnsigned("NUM_VALUE"), ""); in TEST()
120 ConfigFile config; in TEST() local
121 EXPECT_TRUE(config.isEmpty()); in TEST()
122 config.parseFromString(SIMPLE_CONFIG); in TEST()
123 EXPECT_FALSE(config.isEmpty()); in TEST()
124 config.clear(); in TEST()
125 EXPECT_TRUE(config.isEmpty()); in TEST()
129 ConfigFile config; in TEST_F() local
130 config.parseFromFile(SIMPLE_CONFIG_FILE); in TEST_F()
131 EXPECT_FALSE(config.hasKey("UNKNOWN_VALUE")); in TEST_F()
132 EXPECT_EQ(config.getUnsigned("NUM_VALUE"), 42u); in TEST_F()
133 EXPECT_EQ(config.getString("STRING_VALUE"), "Hello World!"); in TEST_F()
134 auto bytes = config.getBytes("BYTES_VALUE"); in TEST_F()