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

Unified Diff: sync/internal_api/sync_backup_manager_unittest.cc

Issue 442403003: Update SyncManager::Init to use a GURL for the sync server URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sync_client.cc too. Created 6 years, 4 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/sync_backup_manager_unittest.cc
diff --git a/sync/internal_api/sync_backup_manager_unittest.cc b/sync/internal_api/sync_backup_manager_unittest.cc
index c0753540c1d3a176e3666aa222891791fcac9b3c..33e01c5237b4b95330241543a588fa8e5e4bcb70 100644
--- a/sync/internal_api/sync_backup_manager_unittest.cc
+++ b/sync/internal_api/sync_backup_manager_unittest.cc
@@ -16,6 +16,7 @@
#include "sync/test/test_directory_backing_store.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "url/gurl.h"
using ::testing::_;
using ::testing::Invoke;
@@ -61,11 +62,20 @@ class SyncBackupManagerTest : public syncer::SyncManager::Observer,
base::RunLoop run_loop;
manager->Init(temp_dir_.path(),
MakeWeakHandle(base::WeakPtr<JsEventHandler>()),
- "", 0, true, scoped_ptr<HttpPostProviderFactory>().Pass(),
+ GURL("https://example.com/"),
+ scoped_ptr<HttpPostProviderFactory>().Pass(),
std::vector<scoped_refptr<ModelSafeWorker> >(),
- NULL, NULL, SyncCredentials(), "", "", "", &factory,
- NULL, scoped_ptr<UnrecoverableErrorHandler>().Pass(),
- NULL, NULL);
+ NULL,
+ NULL,
+ SyncCredentials(),
+ "",
+ "",
+ "",
+ &factory,
+ NULL,
+ scoped_ptr<UnrecoverableErrorHandler>().Pass(),
+ NULL,
+ NULL);
loop_.PostTask(FROM_HERE, run_loop.QuitClosure());
run_loop.Run();
}
@@ -157,4 +167,3 @@ TEST_F(SyncBackupManagerTest, FailToInitialize) {
} // anonymous namespace
} // namespace syncer
-

Powered by Google App Engine
This is Rietveld 408576698