Lines Matching refs:mockList
228 mockList = std::make_unique<MockListCommand>(mockLshal.get()); in SetUp()
234 std::unique_ptr<MockListCommand> mockList; member in android::lshal::ListParseArgsTest
239 EXPECT_EQ(0u, mockList->parseArgs(createArg({"lshal", "-p", "-i", "-a", "-c"}))); in TEST_F()
240 mockList->forEachTable([](const Table& table) { in TEST_F()
249 EXPECT_EQ(0u, mockList->parseArgs(createArg({"lshal", "-m"}))); in TEST_F()
250 mockList->forEachTable([](const Table& table) { in TEST_F()
264 EXPECT_NE(0u, mockList->parseArgs(createArg({"lshal", "--neat", "-d"}))); in TEST_F()
337 mockList = std::make_unique<NiceMock<MockListCommand>>(lshal.get()); in initMockList()
338 ON_CALL(*mockList, getPidInfo(_,_)).WillByDefault(Invoke( in initMockList()
343 ON_CALL(*mockList, parseCmdline(_)).WillByDefault(Invoke(&getCmdlineFromId)); in initMockList()
344 ON_CALL(*mockList, postprocess()).WillByDefault(Invoke([&]() { in initMockList()
345 mockList->internalPostprocess(); in initMockList()
347 mockList->forEachTable([&](Table& table) { in initMockList()
351 ON_CALL(*mockList, getPartition(_)).WillByDefault(Return(Partition::VENDOR)); in initMockList()
353 ON_CALL(*mockList, getDeviceManifest()) in initMockList()
355 ON_CALL(*mockList, getDeviceMatrix()) in initMockList()
357 ON_CALL(*mockList, getFrameworkManifest()) in initMockList()
359 ON_CALL(*mockList, getFrameworkMatrix()) in initMockList()
401 std::unique_ptr<MockListCommand> mockList; member in android::lshal::ListTest
407 EXPECT_CALL(*mockList, getPidInfo(5, _)).Times(1); in TEST_F()
409 EXPECT_NE(nullptr, mockList->getPidInfoCached(5)); in TEST_F()
410 EXPECT_NE(nullptr, mockList->getPidInfoCached(5)); in TEST_F()
415 ASSERT_EQ(0u, mockList->parseArgs(createArg({"lshal"}))); in TEST_F()
416 ASSERT_EQ(0u, mockList->fetch()); in TEST_F()
422 mockList->forEachTable([&](const Table& table) { in TEST_F()
479 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "--init-vintf"}))); in TEST_F()
512 EXPECT_EQ(0u, mockList->main(createArg({"lshal"}))); in TEST_F()
536 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-ils"}))); in TEST_F()
560 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepac"}))); in TEST_F()
584 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepacm"}))); in TEST_F()
599 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-iepc", "--neat"}))); in TEST_F()
613 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepac", "--types=binderized"}))); in TEST_F()
637 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepac", "--types=passthrough_clients", in TEST_F()
657 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepac", "--types=c,l"}))); in TEST_F()
676 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-itrepac", "--types=c,l,,,l,l,c,", in TEST_F()
684 EXPECT_EQ(1u, mockList->main(createArg({"lshal", "-itrepac", "--types=c,a"}))); in TEST_F()
758 ON_CALL(*mockList, getDeviceManifest()).WillByDefault(Return(deviceManifest)); in TEST_F()
759 ON_CALL(*mockList, getDeviceMatrix()).WillByDefault(Return(deviceMatrix)); in TEST_F()
760 ON_CALL(*mockList, getFrameworkManifest()).WillByDefault(Return(frameworkManifest)); in TEST_F()
761 ON_CALL(*mockList, getFrameworkMatrix()).WillByDefault(Return(frameworkMatrix)); in TEST_F()
764 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-Vi", "--neat"}))); in TEST_F()
793 EXPECT_CALL(*mockList, getDeviceManifest()) in SetUp()
801 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-iStr", "--types=v", "--neat"}))); in TEST_F()
810 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-iStr", "--types=z", "--neat"}))); in TEST_F()
818 EXPECT_EQ(0u, mockList->main(createArg({"lshal", "-iStr", "--types=b,c,l", "--neat"}))); in TEST_F()