Lines Matching refs:instance
197 CommandLineInterface& instance = CommandLineInterface::GetInstance();
200 EXPECT_FALSE(instance.ProcessCommandValidate(false, jsonData1, "Failed to parse the JSON"));
203 EXPECT_FALSE(instance.ProcessCommandValidate(true, jsonData2, "Command is not a object"));
206 EXPECT_FALSE(instance.ProcessCommandValidate(true, jsonData3, "Command error"));
209 EXPECT_FALSE(instance.ProcessCommandValidate(true, jsonData4, "Invalid command version"));
212 EXPECT_TRUE(instance.ProcessCommandValidate(true, jsonData5, ""));
217 CommandLineInterface& instance = CommandLineInterface::GetInstance();
218 EXPECT_EQ(instance.GetCommandType(""), CommandLine::CommandType::INVALID);
219 EXPECT_EQ(instance.GetCommandType("set"), CommandLine::CommandType::SET);
220 EXPECT_EQ(instance.GetCommandType("get"), CommandLine::CommandType::GET);
221 EXPECT_EQ(instance.GetCommandType("action"), CommandLine::CommandType::ACTION);
226 CommandLineInterface& instance = CommandLineInterface::GetInstance();
227 instance.Init("phone");
234 CommandLineInterface& instance = CommandLineInterface::GetInstance();
236 EXPECT_FALSE(instance.IsStaticIgnoreCmd(msg));
238 EXPECT_TRUE(instance.IsStaticIgnoreCmd(msg1));
278 CommandLineInterface& instance = CommandLineInterface::GetInstance();
280 instance.ReadAndApplyConfig("");
283 instance.Init(deviceType);
295 instance.ReadAndApplyConfig(currFile);