Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 10 of 10) 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/iot/attestation/at-factory-tool/
Dfastbootsh_unittest.py20 from mock import patch
Dfastbootsubp_unittest.py21 from mock import patch
Datftman_unittest.py30 from mock import call
31 from mock import MagicMock
32 from mock import patch
Datft_unittest.py23 from mock import call
24 from mock import MagicMock
25 from mock import patch
/system/netd/server/dns/
DREADME.md114 For unit testing, we would like to be able to mock out `DnsTlsSocket`. This is