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

Unified Diff: net/dns/mock_mdns_socket_factory.cc

Issue 1475553002: Remove ScopedVector from CreateSockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove {} 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_mdns_socket_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/mock_mdns_socket_factory.cc
diff --git a/net/dns/mock_mdns_socket_factory.cc b/net/dns/mock_mdns_socket_factory.cc
index 88c0dcfa22306400aa908952c7632edd56f04c0e..84359a4a4fd7a895b693921c905251fea5c01d5f 100644
--- a/net/dns/mock_mdns_socket_factory.cc
+++ b/net/dns/mock_mdns_socket_factory.cc
@@ -65,14 +65,14 @@ MockMDnsSocketFactory::~MockMDnsSocketFactory() {
}
void MockMDnsSocketFactory::CreateSockets(
- ScopedVector<DatagramServerSocket>* sockets) {
+ std::vector<scoped_ptr<DatagramServerSocket>>* sockets) {
CreateSocket(ADDRESS_FAMILY_IPV4, sockets);
CreateSocket(ADDRESS_FAMILY_IPV6, sockets);
}
void MockMDnsSocketFactory::CreateSocket(
AddressFamily address_family,
- ScopedVector<DatagramServerSocket>* sockets) {
+ std::vector<scoped_ptr<DatagramServerSocket>>* sockets) {
scoped_ptr<testing::NiceMock<MockMDnsDatagramServerSocket> > new_socket(
new testing::NiceMock<MockMDnsDatagramServerSocket>(address_family));
« no previous file with comments | « net/dns/mock_mdns_socket_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698