Index: net/dns/dns_transaction_unittest.cc |
diff --git a/net/dns/dns_transaction_unittest.cc b/net/dns/dns_transaction_unittest.cc |
index 800e394d26bf4c4839526cbaa85538ba99aefa44..f5a897390a5e640a992a2ce06f04c45983cb8772 100644 |
--- a/net/dns/dns_transaction_unittest.cc |
+++ b/net/dns/dns_transaction_unittest.cc |
@@ -47,7 +47,7 @@ class DnsSocketData { |
writes_.push_back(MockWrite(mode, |
reinterpret_cast<const char*>(length.get()), |
sizeof(uint16), num_reads_and_writes())); |
- lengths_.push_back(length.release()); |
+ lengths_.push_back(length.Pass()); |
} |
writes_.push_back(MockWrite(mode, query_->io_buffer()->data(), |
query_->io_buffer()->size(), |
@@ -67,12 +67,12 @@ class DnsSocketData { |
reads_.push_back(MockRead(mode, |
reinterpret_cast<const char*>(length.get()), |
sizeof(uint16), num_reads_and_writes())); |
- lengths_.push_back(length.release()); |
+ lengths_.push_back(length.Pass()); |
} |
reads_.push_back(MockRead(mode, response->io_buffer()->data(), |
response->io_buffer()->size(), |
num_reads_and_writes())); |
- responses_.push_back(response.release()); |
+ responses_.push_back(response.Pass()); |
} |
// Adds pre-built DnsResponse. |
@@ -359,7 +359,7 @@ class DnsTransactionTest : public testing::Test { |
CHECK(socket_factory_.get()); |
transaction_ids_.push_back(data->query_id()); |
socket_factory_->AddSocketDataProvider(data->GetProvider()); |
- socket_data_.push_back(data.release()); |
+ socket_data_.push_back(data.Pass()); |
} |
// Add expected query for |dotted_name| and |qtype| with |id| and response |