Home
last modified time | relevance | path

Searched refs:SocketMock (Results 1 – 5 of 5) sorted by relevance

/system/core/fastboot/
Dsocket_mock.cpp33 SocketMock::SocketMock() : Socket(INVALID_SOCKET) {} in SocketMock() function in SocketMock
35 SocketMock::~SocketMock() { in ~SocketMock()
41 bool SocketMock::Send(const void* data, size_t length) { in Send()
65 bool SocketMock::Send(std::vector<cutils_socket_buffer_t> buffers) { in Send()
73 ssize_t SocketMock::Receive(void* data, size_t length, int /*timeout_ms*/) { in Receive()
105 int SocketMock::Close() { in Close()
109 std::unique_ptr<Socket> SocketMock::Accept() { in Accept()
125 void SocketMock::ExpectSend(std::string message) { in ExpectSend()
129 void SocketMock::ExpectSendFailure(std::string message) { in ExpectSendFailure()
133 void SocketMock::AddReceive(std::string message) { in AddReceive()
[all …]
Dtcp_test.cpp36 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
46 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
56 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
65 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
75 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
85 std::unique_ptr<SocketMock> mock(new SocketMock); in TEST()
98 mock_ = new SocketMock; in SetUp()
124 SocketMock* mock_ = nullptr;
Dsocket_mock.h53 class SocketMock : public Socket {
55 SocketMock();
56 ~SocketMock() override;
97 DISALLOW_COPY_AND_ASSIGN(SocketMock);
Dsocket_test.cpp284 SocketMock mock; in TEST()
296 SocketMock* mock = new SocketMock; in TEST()
316 SocketMock mock; in TEST()
334 SocketMock* mock = new SocketMock; in TEST()
364 SocketMock mock; in TEST()
366 SocketMock* mock_handler = new SocketMock; in TEST()
367 mock.AddAccept(std::unique_ptr<SocketMock>(mock_handler)); in TEST()
375 SocketMock* mock = new SocketMock; in TEST()
Dudp_test.cpp69 UdpConnectTest() : mock_socket_(new SocketMock) {} in UdpConnectTest()
79 mock_socket_.reset(new SocketMock); in UdpConnect()
84 std::unique_ptr<SocketMock> mock_socket_;
314 mock_socket_ = new SocketMock; in InitializeTransport()
343 SocketMock* mock_socket_ = nullptr;