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

Unified Diff: components/cronet/stale_host_resolver_unittest.cc

Issue 2277453003: Make MockHostResolverProc destructor protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/stale_host_resolver_unittest.cc
diff --git a/components/cronet/stale_host_resolver_unittest.cc b/components/cronet/stale_host_resolver_unittest.cc
index cf3d6976952976ab9cff4f4caeafefcb07f5195e..1fb43e081edb96b25caba0da682b1afc4fc93d37 100644
--- a/components/cronet/stale_host_resolver_unittest.cc
+++ b/components/cronet/stale_host_resolver_unittest.cc
@@ -58,8 +58,6 @@ class MockHostResolverProc : public net::HostResolverProc {
public:
MockHostResolverProc() : HostResolverProc(nullptr) {}
- ~MockHostResolverProc() override {}
-
int Resolve(const std::string& hostname,
net::AddressFamily address_family,
net::HostResolverFlags host_resolver_flags,
@@ -68,6 +66,9 @@ class MockHostResolverProc : public net::HostResolverProc {
*address_list = MakeAddressList(kNetworkAddress);
return net::OK;
}
+
+ protected:
+ ~MockHostResolverProc() override {}
};
class StaleHostResolverTest : public testing::Test {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698