| Index: net/dns/mock_host_resolver.h
|
| diff --git a/net/dns/mock_host_resolver.h b/net/dns/mock_host_resolver.h
|
| index 3593fbdfe9183eaa1a8c3039cd79018ee746b469..ea116423eb70dc5b6ba7b0b5ea97df5e4f6f091d 100644
|
| --- a/net/dns/mock_host_resolver.h
|
| +++ b/net/dns/mock_host_resolver.h
|
| @@ -69,9 +69,7 @@ class MockHostResolverBase : public HostResolver,
|
| // If set_ondemand_mode() is set then Resolve() returns IO_PENDING and
|
| // ResolveAllPending() must be explicitly invoked to resolve all requests
|
| // that are pending.
|
| - void set_ondemand_mode(bool is_ondemand) {
|
| - ondemand_mode_ = is_ondemand;
|
| - }
|
| + void set_ondemand_mode(bool is_ondemand) { ondemand_mode_ = is_ondemand; }
|
|
|
| // HostResolver methods:
|
| virtual int Resolve(const RequestInfo& info,
|
| @@ -96,14 +94,10 @@ class MockHostResolverBase : public HostResolver,
|
| bool has_pending_requests() const { return !requests_.empty(); }
|
|
|
| // The number of times that Resolve() has been called.
|
| - size_t num_resolve() const {
|
| - return num_resolve_;
|
| - }
|
| + size_t num_resolve() const { return num_resolve_; }
|
|
|
| // The number of times that ResolveFromCache() has been called.
|
| - size_t num_resolve_from_cache() const {
|
| - return num_resolve_from_cache_;
|
| - }
|
| + size_t num_resolve_from_cache() const { return num_resolve_from_cache_; }
|
|
|
| // Returns the RequestPriority of the last call to Resolve() (or
|
| // DEFAULT_PRIORITY if Resolve() hasn't been called yet).
|
| @@ -168,8 +162,7 @@ class RuleBasedHostResolverProc : public HostResolverProc {
|
|
|
| // Any hostname matching the given pattern will be replaced with the given
|
| // replacement value. Usually, replacement should be an IP address literal.
|
| - void AddRule(const std::string& host_pattern,
|
| - const std::string& replacement);
|
| + void AddRule(const std::string& host_pattern, const std::string& replacement);
|
|
|
| // Same as AddRule(), but further restricts to |address_family|.
|
| void AddRuleForAddressFamily(const std::string& host_pattern,
|
|
|