| Index: net/dns/mock_mdns_socket_factory.h
|
| diff --git a/net/dns/mock_mdns_socket_factory.h b/net/dns/mock_mdns_socket_factory.h
|
| index 1ecc4be01d29a14fde8fa4483ec324c454b86447..be9953beeeb66b918e9a8f4bcebb7b523d1c96a6 100644
|
| --- a/net/dns/mock_mdns_socket_factory.h
|
| +++ b/net/dns/mock_mdns_socket_factory.h
|
| @@ -22,16 +22,21 @@ class MockMDnsDatagramServerSocket : public DatagramServerSocket {
|
|
|
| MOCK_METHOD1(ListenInternal, int(const std::string& address));
|
|
|
| - MOCK_METHOD4(RecvFrom, int(IOBuffer* buffer, int size,
|
| - IPEndPoint* address,
|
| - const CompletionCallback& callback));
|
| -
|
| - virtual int SendTo(IOBuffer* buf, int buf_len, const IPEndPoint& address,
|
| + MOCK_METHOD4(RecvFrom,
|
| + int(IOBuffer* buffer,
|
| + int size,
|
| + IPEndPoint* address,
|
| + const CompletionCallback& callback));
|
| +
|
| + virtual int SendTo(IOBuffer* buf,
|
| + int buf_len,
|
| + const IPEndPoint& address,
|
| const CompletionCallback& callback) OVERRIDE;
|
|
|
| - MOCK_METHOD3(SendToInternal, int(const std::string& packet,
|
| - const std::string address,
|
| - const CompletionCallback& callback));
|
| + MOCK_METHOD3(SendToInternal,
|
| + int(const std::string& packet,
|
| + const std::string address,
|
| + const CompletionCallback& callback));
|
|
|
| MOCK_METHOD1(SetReceiveBufferSize, int(int32 size));
|
| MOCK_METHOD1(SetSendBufferSize, int(int32 size));
|
| @@ -58,10 +63,14 @@ class MockMDnsDatagramServerSocket : public DatagramServerSocket {
|
|
|
| void SetResponsePacket(std::string response_packet);
|
|
|
| - int HandleRecvNow(IOBuffer* buffer, int size, IPEndPoint* address,
|
| + int HandleRecvNow(IOBuffer* buffer,
|
| + int size,
|
| + IPEndPoint* address,
|
| const CompletionCallback& callback);
|
|
|
| - int HandleRecvLater(IOBuffer* buffer, int size, IPEndPoint* address,
|
| + int HandleRecvLater(IOBuffer* buffer,
|
| + int size,
|
| + IPEndPoint* address,
|
| const CompletionCallback& callback);
|
|
|
| private:
|
| @@ -82,12 +91,14 @@ class MockMDnsSocketFactory : public MDnsSocketFactory {
|
| MOCK_METHOD1(OnSendTo, void(const std::string&));
|
|
|
| private:
|
| - int SendToInternal(const std::string& packet, const std::string& address,
|
| + int SendToInternal(const std::string& packet,
|
| + const std::string& address,
|
| const CompletionCallback& callback);
|
|
|
| // The latest receive callback is always saved, since the MDnsConnection
|
| // does not care which socket a packet is received on.
|
| - int RecvFromInternal(IOBuffer* buffer, int size,
|
| + int RecvFromInternal(IOBuffer* buffer,
|
| + int size,
|
| IPEndPoint* address,
|
| const CompletionCallback& callback);
|
|
|
|
|