Home
last modified time | relevance | path

Searched refs:mockPreparedModel (Results 1 – 14 of 14) sorted by relevance

/hardware/interfaces/neuralnetworks/1.2/utils/test/
DPreparedModelTest.cpp45 const auto mockPreparedModel = MockPreparedModel::create(); in createMockPreparedModel() local
48 EXPECT_CALL(*mockPreparedModel, execute(_, _)).Times(0); in createMockPreparedModel()
50 return mockPreparedModel; in createMockPreparedModel()
105 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
107 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
110 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
119 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
120 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
125 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
134 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
[all …]
DMockPreparedModel.h67 auto mockPreparedModel = sp<MockPreparedModel>::make(); in create() local
73 ON_CALL(*mockPreparedModel, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create()
77 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(testing::AnyNumber()); in create()
79 return mockPreparedModel; in create()
DDeviceTest.cpp631 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
635 V1_0::ErrorStatus::NONE, mockPreparedModel))); in TEST()
760 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
764 V1_0::ErrorStatus::NONE, V1_0::ErrorStatus::NONE, mockPreparedModel))); in TEST()
/hardware/interfaces/neuralnetworks/1.0/utils/test/
DPreparedModelTest.cpp73 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
75 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
78 const auto result = PreparedModel::create(mockPreparedModel); in TEST()
87 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
88 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
93 const auto result = PreparedModel::create(mockPreparedModel); in TEST()
102 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
103 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
108 const auto result = PreparedModel::create(mockPreparedModel); in TEST()
117 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
[all …]
DMockPreparedModel.h51 auto mockPreparedModel = sp<MockPreparedModel>::make(); in create() local
57 ON_CALL(*mockPreparedModel, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create()
61 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(testing::AnyNumber()); in create()
63 return mockPreparedModel; in create()
DDeviceTest.cpp375 const auto mockPreparedModel = V1_0::utils::MockPreparedModel::create(); in TEST() local
379 V1_0::ErrorStatus::NONE, mockPreparedModel))); in TEST()
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DPreparedModelTest.cpp46 const auto mockPreparedModel = MockPreparedModel::create(); in createMockPreparedModel() local
49 EXPECT_CALL(*mockPreparedModel, execute(_, _)).Times(0); in createMockPreparedModel()
50 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)).Times(0); in createMockPreparedModel()
51 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)).Times(0); in createMockPreparedModel()
53 return mockPreparedModel; in createMockPreparedModel()
133 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
135 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
138 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
147 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
148 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
[all …]
DMockPreparedModel.h87 auto mockPreparedModel = sp<MockPreparedModel>::make(); in create() local
93 ON_CALL(*mockPreparedModel, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create()
97 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(testing::AnyNumber()); in create()
99 return mockPreparedModel; in create()
DDeviceTest.cpp653 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
657 V1_3::ErrorStatus::NONE, mockPreparedModel))); in TEST()
782 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
786 V1_3::ErrorStatus::NONE, V1_3::ErrorStatus::NONE, mockPreparedModel))); in TEST()
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DPreparedModelTest.cpp82 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
83 const auto preparedModel = PreparedModel::create(mockPreparedModel).value(); in TEST()
89 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _, _, _)) in TEST()
104 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
105 const auto preparedModel = PreparedModel::create(mockPreparedModel).value(); in TEST()
106 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _, _, _)) in TEST()
120 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
121 const auto preparedModel = PreparedModel::create(mockPreparedModel).value(); in TEST()
122 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _, _, _)) in TEST()
136 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
[all …]
DDeviceTest.cpp563 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
567 mockPreparedModel))); in TEST()
692 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
696 mockPreparedModel))); in TEST()
/hardware/interfaces/neuralnetworks/utils/common/test/
DResilientPreparedModelTest.cpp42 auto mockPreparedModel = std::make_shared<const nn::MockPreparedModel>(); in setup() local
45 EXPECT_CALL(*mockPreparedModelFactory, Call()).Times(1).WillOnce(Return(mockPreparedModel)); in setup()
48 return std::make_tuple(std::move(mockPreparedModel), std::move(mockPreparedModelFactory), in setup()
95 const auto [mockPreparedModel, mockPreparedModelFactory, preparedModel] = setup(); in TEST()
101 EXPECT_TRUE(result == mockPreparedModel); in TEST()
106 const auto [mockPreparedModel, mockPreparedModelFactory, preparedModel] = setup(); in TEST()
107 EXPECT_CALL(*mockPreparedModel, execute(_, _, _, _)) in TEST()
121 const auto [mockPreparedModel, mockPreparedModelFactory, preparedModel] = setup(); in TEST()
122 EXPECT_CALL(*mockPreparedModel, execute(_, _, _, _)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
134 const auto [mockPreparedModel, mockPreparedModelFactory, preparedModel] = setup(); in TEST()
[all …]
DResilientDeviceTest.cpp312 const auto mockPreparedModel = std::make_shared<const nn::MockPreparedModel>(); in TEST() local
315 .WillOnce(Return(mockPreparedModel)); in TEST()
363 const auto mockPreparedModel = std::make_shared<const nn::MockPreparedModel>(); in TEST() local
366 .WillOnce(Return(mockPreparedModel)); in TEST()
380 const auto mockPreparedModel = std::make_shared<const nn::MockPreparedModel>(); in TEST() local
383 .WillOnce(Return(mockPreparedModel)); in TEST()
431 const auto mockPreparedModel = std::make_shared<const nn::MockPreparedModel>(); in TEST() local
434 .WillOnce(Return(mockPreparedModel)); in TEST()
/hardware/interfaces/neuralnetworks/1.1/utils/test/
DDeviceTest.cpp385 const auto mockPreparedModel = V1_0::utils::MockPreparedModel::create(); in TEST() local
389 V1_0::ErrorStatus::NONE, mockPreparedModel))); in TEST()