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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_impl_unittest.cc

Issue 73723006: Allow customization of HttpPostProviderFactory via ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
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).

Powered by Google App Engine
This is Rietveld 408576698