Lines Matching refs:lshal
97 namespace lshal { namespace
151 lshal = std::make_unique<Lshal>(out, err, serviceManager, serviceManager); in SetUp()
159 std::unique_ptr<Lshal> lshal; member in android::lshal::DebugTest
167 static Status callMain(const std::unique_ptr<T>& lshal, const std::vector<const char*>& args) { in callMain() argument
168 return lshal->main(createArg(args)); in callMain()
172 EXPECT_EQ(0u, callMain(lshal, { in TEST_F()
180 EXPECT_EQ(0u, callMain(lshal, { in TEST_F()
188 EXPECT_NE(0u, callMain(lshal, { in TEST_F()
195 EXPECT_EQ(0u, callMain(lshal, { in TEST_F()
203 EXPECT_EQ(0u, callMain(lshal, { in TEST_F()
221 explicit MockListCommand(Lshal* lshal) : ListCommand(*lshal) {} in MockListCommand() argument
359 lshal = std::make_unique<Lshal>(out, err, serviceManager, passthruManager); in SetUp()
364 mockList = std::make_unique<NiceMock<MockListCommand>>(lshal.get()); in initMockList()
427 std::unique_ptr<Lshal> lshal; member in android::lshal::ListTest
938 lshal = std::make_unique<Lshal>(out, err, new MockServiceManager() /* serviceManager */, in SetUp()
944 std::unique_ptr<Lshal> lshal; member in android::lshal::HelpTest
948 (void)callMain(lshal, {"lshal", "--help"}); // ignore return in TEST_F()
960 (void)callMain(lshal, {"lshal", "help"}); // ignore return in TEST_F()
964 EXPECT_NE(0u, callMain(lshal, {"lshal", "--unknown-option"})); in TEST_F()
972 (void)callMain(lshal, {"lshal", "help", "list"}); in TEST_F()
978 EXPECT_NE(0u, callMain(lshal, {"lshal", "list", "--unknown-option"})); in TEST_F()
986 (void)callMain(lshal, {"lshal", "help", "help"}); in TEST_F()
992 (void)callMain(lshal, {"lshal", "help", "--unknown-option"}); in TEST_F()