Searched refs:mock (Results 1 – 7 of 7) sorted by relevance
/system/core/fastboot/ |
D | socket_test.cpp | 284 SocketMock mock; in TEST() local 286 mock.ExpectSend("foo"); in TEST() 287 EXPECT_TRUE(SendString(&mock, "foo")); in TEST() 289 mock.ExpectSend("abc"); in TEST() 290 mock.ExpectSend("123"); in TEST() 291 EXPECT_TRUE(SendString(&mock, "abc")); in TEST() 292 EXPECT_TRUE(SendString(&mock, "123")); in TEST() 296 SocketMock* mock = new SocketMock; in TEST() local 298 mock->ExpectSendFailure("foo"); in TEST() 299 EXPECT_FALSE(SendString(mock, "foo")); in TEST() [all …]
|
D | tcp_test.cpp | 36 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local 37 mock->ExpectSend("FB01"); in TEST() 38 mock->AddReceive("FB01"); in TEST() 41 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST() 46 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local 47 mock->ExpectSend("FB01"); in TEST() 48 mock->AddReceive("FB99"); in TEST() 51 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error)); in TEST() 56 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST() local 57 mock->ExpectSendFailure("FB01"); in TEST() [all …]
|
/system/update_engine/ |
D | libupdate_engine-client-test.pc.in | 5 Description: update_engine client interface mock library
|
/system/sepolicy/vendor/ |
D | hal_evs_default.te | 1 # evs_mock mock hardware driver service
|
/system/extras/perfprofd/tests/ |
D | README.txt | 40 mock utilities layer and then have a test driver that invokes the 57 | mockutils | mock implementations of perfprofd_sleep,
|
/system/update_engine/scripts/ |
D | payload_info_unittest.py | 24 import mock 192 with mock.patch.object(update_payload, 'Payload', return_value=payload), \
|
/system/netd/resolv/ |
D | README.md | 114 For unit testing, we would like to be able to mock out `DnsTlsSocket`. This is
|