Searched refs:mock (Results 1 - 5 of 5) sorted by relevance

/system/core/fastboot/
H A Dsocket_test.cpp21 // if the mock expectations aren't met during a test.
209 // but the general idea is that we intercept calls to socket_send_buffers() using a lambda mock
240 // Create a mock function for custom socket_send_buffers() behavior. This function will
284 SocketMock mock; local
286 mock.ExpectSend("foo");
287 EXPECT_TRUE(SendString(&mock, "foo"));
289 mock.ExpectSend("abc");
290 mock.ExpectSend("123");
291 EXPECT_TRUE(SendString(&mock, "abc"));
292 EXPECT_TRUE(SendString(&mock, "12
296 SocketMock* mock = new SocketMock; local
316 SocketMock mock; local
334 SocketMock* mock = new SocketMock; local
364 SocketMock mock; local
375 SocketMock* mock = new SocketMock; local
[all...]
H A Dtcp_test.cpp36 std::unique_ptr<SocketMock> mock(new SocketMock);
37 mock->ExpectSend("FB01");
38 mock->AddReceive("FB01");
41 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error));
46 std::unique_ptr<SocketMock> mock(new SocketMock);
47 mock->ExpectSend("FB01");
48 mock->AddReceive("FB99");
51 EXPECT_NE(nullptr, tcp::internal::Connect(std::move(mock), &error));
56 std::unique_ptr<SocketMock> mock(new SocketMock);
57 mock
[all...]
/system/update_engine/include/
H A Dupdate_includes.sh35 # Generate a DBus proxy and/or proxy mock in the passed |dir| for the provided
37 # The parameter |kind| determines whether it should generate the mock only
38 # (mock), the proxy only (proxy) or both (both).
49 ${DBUS_GENERATOR} "${xmls[@]}" --mock="${mockh}" --proxy="${proxyh}"
63 if [[ "${kind}" == "mock" ]]; then
73 generate mock "libcros" \
76 generate mock "shill" \
/system/core/adb/
H A Dtest_device.py36 import mock namespace
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/
H A DAndroid.mk57 uploader/mock/sender_mock.cc \

Completed in 177 milliseconds