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

Unified Diff: sync/internal_api/syncapi_unittest.cc

Issue 10701046: sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 8 years, 5 months 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: sync/internal_api/syncapi_unittest.cc
diff --git a/sync/internal_api/syncapi_unittest.cc b/sync/internal_api/syncapi_unittest.cc
index b22b58585c2c95cbe4a4649b64f34590ececabce..cb21e8329e252d94b2c291201e7c5bba25f7034c 100644
--- a/sync/internal_api/syncapi_unittest.cc
+++ b/sync/internal_api/syncapi_unittest.cc
@@ -33,6 +33,7 @@
#include "sync/internal_api/public/read_node.h"
#include "sync/internal_api/public/read_transaction.h"
#include "sync/internal_api/public/sync_manager.h"
+#include "sync/internal_api/public/test/test_internal_components_factory.h"
#include "sync/internal_api/public/test/test_user_share.h"
#include "sync/internal_api/public/write_node.h"
#include "sync/internal_api/public/write_transaction.h"
@@ -772,7 +773,9 @@ class SyncManagerTest : public testing::Test,
&extensions_activity_monitor_, this,
credentials,
sync_notifier_mock_, "",
- syncer::SyncManager::TEST_IN_MEMORY,
+ scoped_ptr<InternalComponentsFactory>(
+ new TestInternalComponentsFactory(
+ TestInternalComponentsFactory::IN_MEMORY)),
&encryptor_,
&handler_,
NULL);

Powered by Google App Engine
This is Rietveld 408576698