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

Unified Diff: sync/internal_api/sync_manager_impl_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_manager_impl_unittest.cc
diff --git a/sync/internal_api/sync_manager_impl_unittest.cc b/sync/internal_api/sync_manager_impl_unittest.cc
index f5533dd991ac9829d396c9e33341fb41db5a03a4..2752b30ee63d26b05718e4aff658b3163e2aab3f 100644
--- a/sync/internal_api/sync_manager_impl_unittest.cc
+++ b/sync/internal_api/sync_manager_impl_unittest.cc
@@ -73,6 +73,7 @@
#include "sync/util/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "url/gurl.h"
using base::ExpectDictStringValue;
using testing::_;
@@ -818,9 +819,7 @@ class SyncManagerTest : public testing::Test,
sync_manager_.Init(
temp_dir_.path(),
WeakHandle<JsEventHandler>(),
- "bogus",
- 0,
- false,
+ GURL("https://example.com/"),
scoped_ptr<HttpPostProviderFactory>(new TestHttpPostProviderFactory()),
workers,
extensions_activity_.get(),
@@ -831,8 +830,8 @@ class SyncManagerTest : public testing::Test,
std::string(), // bootstrap tokens
scoped_ptr<InternalComponentsFactory>(GetFactory()).get(),
&encryptor_,
- scoped_ptr<UnrecoverableErrorHandler>(
- new TestUnrecoverableErrorHandler).Pass(),
+ scoped_ptr<UnrecoverableErrorHandler>(new TestUnrecoverableErrorHandler)
+ .Pass(),
NULL,
&cancelation_signal_);

Powered by Google App Engine
This is Rietveld 408576698