Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1425)

Unified Diff: net/dns/mock_mdns_socket_factory.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/dns/mock_host_resolver.h ('k') | net/dns/mock_mdns_socket_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9d9c68214fb6e1bcc84d4d64c1ca3c2f37abef25..a5b14222ce577e87165989b09282aa55d5144fbe 100644
--- a/net/dns/mock_mdns_socket_factory.h
+++ b/net/dns/mock_mdns_socket_factory.h
@@ -5,6 +5,8 @@
#ifndef NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
#define NET_DNS_MOCK_MDNS_SOCKET_FACTORY_H_
+#include <stdint.h>
+
#include <string>
#include <vector>
@@ -37,8 +39,8 @@ class MockMDnsDatagramServerSocket : public DatagramServerSocket {
const std::string address,
const CompletionCallback& callback));
- MOCK_METHOD1(SetReceiveBufferSize, int(int32 size));
- MOCK_METHOD1(SetSendBufferSize, int(int32 size));
+ MOCK_METHOD1(SetReceiveBufferSize, int(int32_t size));
+ MOCK_METHOD1(SetSendBufferSize, int(int32_t size));
MOCK_METHOD0(Close, void());
@@ -52,7 +54,7 @@ class MockMDnsDatagramServerSocket : public DatagramServerSocket {
MOCK_CONST_METHOD1(JoinGroup, int(const IPAddressNumber& group_address));
MOCK_CONST_METHOD1(LeaveGroup, int(const IPAddressNumber& address));
- MOCK_METHOD1(SetMulticastInterface, int(uint32 interface_index));
+ MOCK_METHOD1(SetMulticastInterface, int(uint32_t interface_index));
MOCK_METHOD1(SetMulticastTimeToLive, int(int ttl));
MOCK_METHOD1(SetMulticastLoopbackMode, int(bool loopback));
@@ -81,7 +83,7 @@ class MockMDnsSocketFactory : public MDnsSocketFactory {
void CreateSockets(
std::vector<scoped_ptr<DatagramServerSocket>>* sockets) override;
- void SimulateReceive(const uint8* packet, int size);
+ void SimulateReceive(const uint8_t* packet, int size);
MOCK_METHOD1(OnSendTo, void(const std::string&));
« no previous file with comments | « net/dns/mock_host_resolver.h ('k') | net/dns/mock_mdns_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698