Index: chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc |
diff --git a/chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc b/chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc |
index 217ed048bdca546c5c4ea19e1f5c0ab123e8ee0d..cf64ba9919259a22d59c813640a1a4f851649bdf 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc |
+++ b/chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc |
@@ -28,6 +28,8 @@ |
#include "net/url_request/test_url_fetcher_factory.h" |
#include "sync/internal_api/public/base/model_type.h" |
#include "sync/internal_api/public/engine/model_safe_worker.h" |
+#include "sync/internal_api/public/http_bridge_factory_factory.h" |
+#include "sync/internal_api/public/http_post_provider_factory_factory.h" |
#include "sync/internal_api/public/sync_manager_factory.h" |
#include "sync/internal_api/public/test/fake_sync_manager.h" |
#include "sync/internal_api/public/util/experiments.h" |
@@ -161,6 +163,9 @@ class SyncBackendHostTest : public testing::Test { |
enabled_types_.Put(syncer::SEARCH_ENGINES); |
enabled_types_.Put(syncer::AUTOFILL); |
enabled_types_.Put(syncer::EXPERIMENTS); |
+ |
+ http_post_provider_factory_factory_.reset( |
+ new syncer::HttpBridgeFactoryFactory()); |
} |
virtual void TearDown() OVERRIDE { |
@@ -193,7 +198,8 @@ class SyncBackendHostTest : public testing::Test { |
fake_manager_factory_.PassAs<syncer::SyncManagerFactory>(), |
scoped_ptr<syncer::UnrecoverableErrorHandler>( |
new syncer::TestUnrecoverableErrorHandler).Pass(), |
- NULL); |
+ NULL, |
+ http_post_provider_factory_factory_.get()); |
base::RunLoop run_loop; |
BrowserThread::PostDelayedTask(BrowserThread::UI, FROM_HERE, |
run_loop.QuitClosure(), |
@@ -260,6 +266,8 @@ class SyncBackendHostTest : public testing::Test { |
scoped_ptr<FakeSyncManagerFactory> fake_manager_factory_; |
FakeSyncManager* fake_manager_; |
syncer::ModelTypeSet enabled_types_; |
+ scoped_ptr<syncer::HttpPostProviderFactoryFactory> |
+ http_post_provider_factory_factory_; |
}; |
// Test basic initialization with no initial types (first time initialization). |