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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc

Issue 1308313003: Componentize chrome/common/sync_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
index 62781573c970bf4d86b8dab155d5349115d85535..6931bf8f366fb9affb27bf7165ec133ddf726ec7 100644
--- a/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
+++ b/chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc
@@ -13,11 +13,12 @@
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
+#include "chrome/common/channel_info.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/sync_util.h"
#include "chrome/test/base/testing_profile.h"
#include "components/signin/core/browser/profile_oauth2_token_service.h"
#include "components/sync_driver/data_type_controller.h"
+#include "components/sync_driver/sync_util.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/oauth2_token_service.h"
@@ -104,7 +105,8 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
void TestSwitchDisablesType(syncer::ModelTypeSet types) {
command_line_->AppendSwitchASCII(switches::kDisableSyncTypes,
syncer::ModelTypeSetToString(types));
- GURL sync_service_url = GetSyncServiceURL(*command_line_);
+ GURL sync_service_url =
+ GetSyncServiceURL(*command_line_, chrome::GetChannel());
ProfileOAuth2TokenService* token_service =
ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get());
scoped_ptr<ProfileSyncService> pss(new ProfileSyncService(
@@ -112,7 +114,7 @@ class ProfileSyncComponentsFactoryImplTest : public testing::Test {
new ProfileSyncComponentsFactoryImpl(
profile_.get(),
command_line_.get(),
- GetSyncServiceURL(*command_line_),
+ GetSyncServiceURL(*command_line_, chrome::GetChannel()),
token_service,
profile_->GetRequestContext())),
profile_.get(),
@@ -141,7 +143,7 @@ TEST_F(ProfileSyncComponentsFactoryImplTest, CreatePSSDefault) {
new ProfileSyncComponentsFactoryImpl(
profile_.get(),
command_line_.get(),
- GetSyncServiceURL(*command_line_),
+ GetSyncServiceURL(*command_line_, chrome::GetChannel()),
token_service,
profile_->GetRequestContext())),
profile_.get(),
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698