Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 7 of 7) sorted by relevance

/system/core/fastboot/
Dsocket_test.cpp284 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 …]
Dtcp_test.cpp36 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/
Dlibupdate_engine-client-test.pc.in5 Description: update_engine client interface mock library
/system/sepolicy/vendor/
Dhal_evs_default.te1 # evs_mock mock hardware driver service
/system/extras/perfprofd/tests/
DREADME.txt40 mock utilities layer and then have a test driver that invokes the
57 | mockutils | mock implementations of perfprofd_sleep,
/system/update_engine/scripts/
Dpayload_info_unittest.py24 import mock
192 with mock.patch.object(update_payload, 'Payload', return_value=payload), \
/system/netd/resolv/
DREADME.md114 For unit testing, we would like to be able to mock out `DnsTlsSocket`. This is