Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 11 of 11) 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/include/
Dupdate_includes.sh49 ${DBUS_GENERATOR} "${xmls[@]}" --mock="${mockh}" --proxy="${proxyh}"
73 generate mock "libcros" \
76 generate mock "shill" \
/system/firewalld/
Dlibfirewalld-client-test.pc.in5 Description: firewalld client interface mock library
/system/update_engine/
Dlibupdate_engine-client-test.pc.in5 Description: update_engine client interface mock library
/system/connectivity/shill/
Dlibshill-client-test.pc.in5 Description: shill client interface mock library
/system/connectivity/apmanager/
Dlibapmanager-client-test.pc.in5 Description: apmanager client interface mock library
/system/extras/perfprofd/tests/
DREADME.txt34 mock utilities layer and then have a test driver that invokes the
51 | mockutils | mock implementations of perfprofd_sleep,
/system/core/adb/
Dtest_device.py36 import mock
91 @mock.patch('adb.device.get_devices')
97 @mock.patch('adb.device.get_devices')
104 @mock.patch('adb.device.get_devices')
111 @mock.patch('adb.device.get_devices')
119 @mock.patch('adb.device.get_devices')
125 @mock.patch('adb.device.get_devices')
/system/core/metricsd/
Dmetrics.gyp154 'uploader/mock/sender_mock.cc',
DAndroid.mk57 uploader/mock/sender_mock.cc \