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

Unified Diff: sync/internal_api/sync_rollback_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_rollback_manager_unittest.cc
diff --git a/sync/internal_api/sync_rollback_manager_unittest.cc b/sync/internal_api/sync_rollback_manager_unittest.cc
index 11f875f56a0f4ad97967ce72403eaf1d50ad11e9..14e62672547466f03e436d75df34d563d897bf37 100644
--- a/sync/internal_api/sync_rollback_manager_unittest.cc
+++ b/sync/internal_api/sync_rollback_manager_unittest.cc
@@ -18,6 +18,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::DoDefault;
@@ -114,14 +115,23 @@ class SyncRollbackManagerTest : public testing::Test,
storage_option);
base::RunLoop run_loop;
- manager->Init(temp_dir_.path(),
- MakeWeakHandle(base::WeakPtr<JsEventHandler>()),
- "", 0, true, scoped_ptr<HttpPostProviderFactory>().Pass(),
- std::vector<scoped_refptr<ModelSafeWorker> >(1,
- worker_.get()),
- NULL, delegate, SyncCredentials(), "", "", "", &factory,
- NULL, scoped_ptr<UnrecoverableErrorHandler>().Pass(),
- NULL, NULL);
+ manager->Init(
+ temp_dir_.path(),
+ MakeWeakHandle(base::WeakPtr<JsEventHandler>()),
+ GURL("https://example.com/"),
+ scoped_ptr<HttpPostProviderFactory>().Pass(),
+ std::vector<scoped_refptr<ModelSafeWorker> >(1, worker_.get()),
+ NULL,
+ delegate,
+ SyncCredentials(),
+ "",
+ "",
+ "",
+ &factory,
+ NULL,
+ scoped_ptr<UnrecoverableErrorHandler>().Pass(),
+ NULL,
+ NULL);
loop_.PostTask(FROM_HERE, run_loop.QuitClosure());
run_loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698