From e6652dec003b75acea1e7c51efafb5f2121e312d Mon Sep 17 00:00:00 2001 From: "szym@chromium.org" Date: Mon, 7 Nov 2011 21:22:47 +0000 Subject: Remove HostResolverImpl from Mock*HostResolver. MockHostResolver should not depend on the job dispatch machinery of HostResolverImpl. This implementation aims to be more readable/reliable while providing the same testing utility. MockHostResolver does not use extra threads hence cannot support WaitingHostResolverProc. To mock slow resolution, HangingHostResolver is provided for unit_tests:PredictorTest. Updated host_resolver_impl_unittest to test HostResolverImpl directly (rather than through MockHostResolver). BUG=99889 TEST=./net_unittests ; ./unit_tests --gtest_filter='PredictorTest.*' ; ./jingle_unittests Review URL: http://codereview.chromium.org/8267001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108910 0039d316-1c4b-4281-b951-d872f2087c98 --- jingle/notifier/communicator/xmpp_connection_generator_unittest.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'jingle/notifier') diff --git a/jingle/notifier/communicator/xmpp_connection_generator_unittest.cc b/jingle/notifier/communicator/xmpp_connection_generator_unittest.cc index 04da3df..b57a3c3 100644 --- a/jingle/notifier/communicator/xmpp_connection_generator_unittest.cc +++ b/jingle/notifier/communicator/xmpp_connection_generator_unittest.cc @@ -5,6 +5,7 @@ #include "jingle/notifier/communicator/xmpp_connection_generator.h" #include "base/basictypes.h" +#include "base/message_loop.h" #include "jingle/notifier/communicator/connection_options.h" #include "jingle/notifier/communicator/connection_settings.h" #include "net/base/host_port_pair.h" -- cgit v1.1