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

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

Issue 1310553005: [Sync] Replace ProfileSyncComponentsFactory with SyncClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really fix GN 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
Index: chrome/browser/sync/profile_sync_service_android_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_android_unittest.cc b/chrome/browser/sync/profile_sync_service_android_unittest.cc
deleted file mode 100644
index 150cd390d95e5a65835ace8eb872d57eabae8430..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/profile_sync_service_android_unittest.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <algorithm>
-#include <vector>
-
-#include "base/command_line.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string_util.h"
-#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
-#include "chrome/browser/sync/profile_sync_components_factory_impl.h"
-#include "chrome/browser/sync/profile_sync_service.h"
-#include "chrome/browser/sync/profile_sync_service_android.h"
-#include "chrome/browser/sync/supervised_user_signin_manager_wrapper.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 "content/public/test/test_browser_thread_bundle.h"
-#include "sync/internal_api/public/base/model_type.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-class ProfileSyncServiceAndroidTest : public testing::Test {
- public:
- ProfileSyncServiceAndroidTest()
- : command_line_(base::CommandLine::NO_PROGRAM) {}
- ~ProfileSyncServiceAndroidTest() override {}
-
- void SetUp() override {
- ProfileOAuth2TokenService* token_service =
- ProfileOAuth2TokenServiceFactory::GetForProfile(&profile_);
- ProfileSyncComponentsFactory* factory =
- new ProfileSyncComponentsFactoryImpl(
- &profile_,
- &command_line_,
- GURL(),
- token_service,
- profile_.GetRequestContext());
- sync_service_.reset(new ProfileSyncService(
- make_scoped_ptr(factory),
- &profile_,
- scoped_ptr<SupervisedUserSigninManagerWrapper>(),
- token_service,
- browser_sync::MANUAL_START));
- factory->RegisterDataTypes(sync_service_.get());
- }
-
- protected:
- syncer::ModelTypeSet GetRegisteredDataTypes() {
- sync_driver::DataTypeController::StateMap controller_states;
- sync_service_->GetDataTypeControllerStates(&controller_states);
- syncer::ModelTypeSet model_types;
- for (sync_driver::DataTypeController::StateMap::const_iterator it =
- controller_states.begin();
- it != controller_states.end(); ++it) {
- model_types.Put(it->first);
- }
- return model_types;
- }
-
- private:
- base::CommandLine command_line_;
- content::TestBrowserThreadBundle thread_bundle_;
- TestingProfile profile_;
- scoped_ptr<ProfileSyncService> sync_service_;
-};
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698