| Index: net/base/mock_host_resolver.h
|
| ===================================================================
|
| --- net/base/mock_host_resolver.h (revision 85332)
|
| +++ net/base/mock_host_resolver.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -11,6 +11,7 @@
|
| #include "base/synchronization/waitable_event.h"
|
| #include "net/base/host_resolver_impl.h"
|
| #include "net/base/host_resolver_proc.h"
|
| +#include "net/base/net_api.h"
|
|
|
| namespace net {
|
|
|
| @@ -37,7 +38,7 @@
|
| // re-map one hostname to another as well.
|
|
|
| // Base class shared by MockHostResolver and MockCachingHostResolver.
|
| -class MockHostResolverBase : public HostResolver {
|
| +class NET_TEST MockHostResolverBase : public HostResolver {
|
| public:
|
| virtual ~MockHostResolverBase();
|
|
|
| @@ -101,7 +102,7 @@
|
| // a replacement host string. It then uses the system host resolver to return
|
| // a socket address. Generally the replacement should be an IPv4 literal so
|
| // there is no network dependency.
|
| -class RuleBasedHostResolverProc : public HostResolverProc {
|
| +class NET_TEST RuleBasedHostResolverProc : public HostResolverProc {
|
| public:
|
| explicit RuleBasedHostResolverProc(HostResolverProc* previous);
|
|
|
| @@ -152,7 +153,7 @@
|
| };
|
|
|
| // Using WaitingHostResolverProc you can simulate very long lookups.
|
| -class WaitingHostResolverProc : public HostResolverProc {
|
| +class NET_TEST WaitingHostResolverProc : public HostResolverProc {
|
| public:
|
| explicit WaitingHostResolverProc(HostResolverProc* previous);
|
|
|
| @@ -180,7 +181,7 @@
|
| //
|
| // NOTE: Only use this as a catch-all safety net. Individual tests should use
|
| // MockHostResolver.
|
| -class ScopedDefaultHostResolverProc {
|
| +class NET_TEST ScopedDefaultHostResolverProc {
|
| public:
|
| ScopedDefaultHostResolverProc();
|
| explicit ScopedDefaultHostResolverProc(HostResolverProc* proc);
|
|
|